Package ch.bailu.gtk.gtk
Klasse ListItem
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.gtk.ListItem
- Alle implementierten Schnittstellen:
PointerInterface
- Bekannte direkte Unterklassen:
ColumnViewCell
Used by list widgets to represent items in a [iface@Gio.ListModel].
`GtkListItem` objects are managed by the list widget (with its factory)
and cannot be created by applications, but they need to be populated
by application code. This is done by calling [method@Gtk.ListItem.set_child].
`GtkListItem` objects exist in 2 stages:
1. The unbound stage where the listitem is not currently connected to
an item in the list. In that case, the [property@Gtk.ListItem:item]
property is set to %NULL.
2. The bound stage where the listitem references an item from the list.
The [property@Gtk.ListItem:item] property is not %NULL.
`GtkListItem` objects are managed by the list widget (with its factory)
and cannot be created by applications, but they need to be populated
by application code. This is done by calling [method@Gtk.ListItem.set_child].
`GtkListItem` objects exist in 2 stages:
1. The unbound stage where the listitem is not currently connected to
an item in the list. In that case, the [property@Gtk.ListItem:item]
property is set to %NULL.
2. The bound stage where the listitem references an item from the list.
The [property@Gtk.ListItem:item] property is not %NULL.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGets the accessible description of @self.Gets the accessible label of @self.boolean
Checks if a list item has been set to be activatable via
gtk_list_item_set_activatable().getChild()
Gets the child previously set via gtk_list_item_set_child() or
%NULL if none was set.static ClassHandler
boolean
Checks if a list item has been set to be focusable via
gtk_list_item_set_focusable().static int
getItem()
Gets the model item that associated with @self.static long
static TypeSystem.TypeSize
int
Gets the position in the model that @self currently displays.boolean
Checks if a list item has been set to be selectable via
gtk_list_item_set_selectable().boolean
Checks if the item is displayed as selected.static long
static TypeSystem.TypeSize
void
setAccessibleDescription
(Str description) Sets the accessible description for the list item,
which may be used by e.g. screen readers.void
setAccessibleDescription
(String description) Sets the accessible description for the list item,
which may be used by e.g. screen readers.void
setAccessibleLabel
(Str label) Sets the accessible label for the list item,
which may be used by e.g. screen readers.void
setAccessibleLabel
(String label) Sets the accessible label for the list item,
which may be used by e.g. screen readers.void
setActivatable
(boolean activatable) Sets @self to be activatable.void
Sets the child to be used for this listitem.void
setFocusable
(boolean focusable) Sets @self to be focusable.void
setSelectable
(boolean selectable) Sets @self to be selectable.Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
ListItem
-
-
Methodendetails
-
getClassHandler
-
getAccessibleDescription
Gets the accessible description of @self.- Gibt zurück:
- the accessible description
-
getAccessibleLabel
Gets the accessible label of @self.- Gibt zurück:
- the accessible label
-
getActivatable
public boolean getActivatable()Checks if a list item has been set to be activatable via
gtk_list_item_set_activatable().- Gibt zurück:
- %TRUE if the item is activatable
-
getChild
Gets the child previously set via gtk_list_item_set_child() or
%NULL if none was set.- Gibt zurück:
- The child
-
getFocusable
public boolean getFocusable()Checks if a list item has been set to be focusable via
gtk_list_item_set_focusable().- Gibt zurück:
- %TRUE if the item is focusable
-
getItem
Gets the model item that associated with @self.
If @self is unbound, this function returns %NULL.- Gibt zurück:
- The item displayed
-
getPosition
public int getPosition()Gets the position in the model that @self currently displays.
If @self is unbound, %GTK_INVALID_LIST_POSITION is returned.- Gibt zurück:
- The position of this item
-
getSelectable
public boolean getSelectable()Checks if a list item has been set to be selectable via
gtk_list_item_set_selectable().
Do not confuse this function with [method@Gtk.ListItem.get_selected].- Gibt zurück:
- %TRUE if the item is selectable
-
getSelected
public boolean getSelected()Checks if the item is displayed as selected.
The selected state is maintained by the list widget and its model
and cannot be set otherwise.- Gibt zurück:
- %TRUE if the item is selected.
-
setAccessibleDescription
Sets the accessible description for the list item,
which may be used by e.g. screen readers.- Parameter:
description
- the description
-
setAccessibleDescription
Sets the accessible description for the list item,
which may be used by e.g. screen readers.- Parameter:
description
- the description
-
setAccessibleLabel
Sets the accessible label for the list item,
which may be used by e.g. screen readers.- Parameter:
label
- the label
-
setAccessibleLabel
Sets the accessible label for the list item,
which may be used by e.g. screen readers.- Parameter:
label
- the label
-
setActivatable
public void setActivatable(boolean activatable) Sets @self to be activatable.
If an item is activatable, double-clicking on the item, using
the Return key or calling gtk_widget_activate() will activate
the item. Activating instructs the containing view to handle
activation. `GtkListView` for example will be emitting the
[signal@Gtk.ListView::activate] signal.
By default, list items are activatable.- Parameter:
activatable
- if the item should be activatable
-
setChild
Sets the child to be used for this listitem.
This function is typically called by applications when
setting up a listitem so that the widget can be reused when
binding it multiple times.- Parameter:
child
- The list item's child or %NULL to unset
-
setFocusable
public void setFocusable(boolean focusable) Sets @self to be focusable.
If an item is focusable, it can be focused using the keyboard.
This works similar to [method@Gtk.Widget.set_focusable].
Note that if items are not focusable, the keyboard cannot be used to activate
them and selecting only works if one of the listitem's children is focusable.
By default, list items are focusable.- Parameter:
focusable
- if the item should be focusable
-
setSelectable
public void setSelectable(boolean selectable) Sets @self to be selectable.
If an item is selectable, clicking on the item or using the keyboard
will try to select or unselect the item. If this succeeds is up to
the model to determine, as it is managing the selected state.
Note that this means that making an item non-selectable has no
influence on the selected state at all. A non-selectable item
may still be selected.
By default, list items are selectable. When rebinding them to
a new item, they will also be reset to be selectable by GTK.- Parameter:
selectable
- if the item should be selectable
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-