Package ch.bailu.gtk.gtk
Class ListBox
- All Implemented Interfaces:
PointerInterface
`GtkListBox` is a vertical list.
A `GtkListBox` only contains `GtkListBoxRow` children. These rows can
by dynamically sorted and filtered, and headers can be added dynamically
depending on the row content. It also allows keyboard and mouse navigation
and selection like a typical list.
Using `GtkListBox` is often an alternative to `GtkTreeView`, especially
when the list contents has a more complicated layout than what is allowed
by a `GtkCellRenderer`, or when the contents is interactive (i.e. has a
button in it).
Although a `GtkListBox` must have only `GtkListBoxRow` children, you can
add any kind of widget to it via [method@Gtk.ListBox.prepend],
[method@Gtk.ListBox.append] and [method@Gtk.ListBox.insert] and a
`GtkListBoxRow` widget will automatically be inserted between the list
and the widget.
`GtkListBoxRows` can be marked as activatable or selectable. If a row is
activatable, [signal@Gtk.ListBox::row-activated] will be emitted for it when
the user tries to activate it. If it is selectable, the row will be marked
as selected when the user tries to select it.
# GtkListBox as GtkBuildable
The `GtkListBox` implementation of the `GtkBuildable` interface supports
setting a child as the placeholder by specifying “placeholder” as the “type”
attribute of a <child> element. See [method@Gtk.ListBox.set_placeholder]
for info.
# CSS nodes
`GtkListBox` uses a single CSS node named list. It may carry the .separators
style class, when the [property@Gtk.ListBox:show-separators] property is set.
Each `GtkListBoxRow` uses a single CSS node named row. The row nodes get the
.activatable style class added when appropriate.
The main list node may also carry style classes to select
the style of [list presentation](section-list-widget.html#list-styles):
.rich-list, .navigation-sidebar or .data-table.
# Accessibility
`GtkListBox` uses the %GTK_ACCESSIBLE_ROLE_LIST role and `GtkListBoxRow` uses
the %GTK_ACCESSIBLE_ROLE_LIST_ITEM role.
A `GtkListBox` only contains `GtkListBoxRow` children. These rows can
by dynamically sorted and filtered, and headers can be added dynamically
depending on the row content. It also allows keyboard and mouse navigation
and selection like a typical list.
Using `GtkListBox` is often an alternative to `GtkTreeView`, especially
when the list contents has a more complicated layout than what is allowed
by a `GtkCellRenderer`, or when the contents is interactive (i.e. has a
button in it).
Although a `GtkListBox` must have only `GtkListBoxRow` children, you can
add any kind of widget to it via [method@Gtk.ListBox.prepend],
[method@Gtk.ListBox.append] and [method@Gtk.ListBox.insert] and a
`GtkListBoxRow` widget will automatically be inserted between the list
and the widget.
`GtkListBoxRows` can be marked as activatable or selectable. If a row is
activatable, [signal@Gtk.ListBox::row-activated] will be emitted for it when
the user tries to activate it. If it is selectable, the row will be marked
as selected when the user tries to select it.
# GtkListBox as GtkBuildable
The `GtkListBox` implementation of the `GtkBuildable` interface supports
setting a child as the placeholder by specifying “placeholder” as the “type”
attribute of a <child> element. See [method@Gtk.ListBox.set_placeholder]
for info.
# CSS nodes
<!-- language="plain" --> list[.separators][.rich-list][.navigation-sidebar] ╰── row[.activatable]
`GtkListBox` uses a single CSS node named list. It may carry the .separators
style class, when the [property@Gtk.ListBox:show-separators] property is set.
Each `GtkListBoxRow` uses a single CSS node named row. The row nodes get the
.activatable style class added when appropriate.
The main list node may also carry style classes to select
the style of [list presentation](section-list-widget.html#list-styles):
.rich-list, .navigation-sidebar or .data-table.
# Accessibility
`GtkListBox` uses the %GTK_ACCESSIBLE_ROLE_LIST role and `GtkListBoxRow` uses
the %GTK_ACCESSIBLE_ROLE_LIST_ITEM role.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
Nested classes/interfaces inherited from class ch.bailu.gtk.gtk.Widget
Widget.OnDestroy, Widget.OnDirectionChanged, Widget.OnHide, Widget.OnKeynavFailed, Widget.OnMap, Widget.OnMnemonicActivate, Widget.OnMoveFocus, Widget.OnQueryTooltip, Widget.OnRealize, Widget.OnShow, Widget.OnStateFlagsChanged, Widget.OnTickCallback, Widget.OnUnmap, Widget.OnUnrealize
Nested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class ch.bailu.gtk.gtk.Widget
SIGNAL_ON_DESTROY, SIGNAL_ON_DIRECTION_CHANGED, SIGNAL_ON_HIDE, SIGNAL_ON_KEYNAV_FAILED, SIGNAL_ON_MAP, SIGNAL_ON_MNEMONIC_ACTIVATE, SIGNAL_ON_MOVE_FOCUS, SIGNAL_ON_QUERY_TOOLTIP, SIGNAL_ON_REALIZE, SIGNAL_ON_SHOW, SIGNAL_ON_STATE_FLAGS_CHANGED, SIGNAL_ON_UNMAP, SIGNAL_ON_UNREALIZE
Fields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Constructor Summary
ConstructorDescriptionListBox()
Creates a new `GtkListBox` container.ListBox
(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Append a widget to the list.Implements interfaceAccessible
.Implements interfaceBuildable
.Implements interfaceConstraintTarget
.void
bindModel
(ListModel model, ListBox.OnListBoxCreateWidgetFunc create_widget_func, Pointer user_data, ListBox.OnDestroyNotify user_data_free_func) Binds @model to @box.void
Add a drag highlight to a row.void
If a row has previously been highlighted via gtk_list_box_drag_highlight_row(),
it will have the highlight removed.boolean
Returns whether rows activate on single clicks.Gets the adjustment (if any) that the widget uses to
for vertical scrolling.static ClassHandler
static int
static long
static TypeSystem.TypeSize
getRowAtIndex
(int index_) Gets the n-th child in the list (not counting headers).getRowAtY
(int y) Gets the row at the @y position.Gets the selected row, or %NULL if no rows are selected.Creates a list of all selected children.int
Gets the selection mode of the listbox.boolean
Returns whether the list box should show separators
between rows.static long
static TypeSystem.TypeSize
void
Insert the @child into the @box at @position.void
Update the filtering for all rows.void
Update the separators for all rows.void
Update the sorting for all rows.Connect to signal "activate-cursor-row".onMoveCursor
(ListBox.OnMoveCursor signal) Connect to signal "move-cursor".onRowActivated
(ListBox.OnRowActivated signal) Connect to signal "row-activated".onRowSelected
(ListBox.OnRowSelected signal) Connect to signal "row-selected".onSelectAll
(ListBox.OnSelectAll signal) Connect to signal "select-all".Connect to signal "selected-rows-changed".Connect to signal "toggle-cursor-row".onUnselectAll
(ListBox.OnUnselectAll signal) Connect to signal "unselect-all".void
Prepend a widget to the list.void
Removes a child from @box.void
Select all children of @box, if the selection mode allows it.void
selectedForeach
(ListBox.OnListBoxForeachFunc func, Pointer data) Calls a function for each selected child.void
selectRow
(ListBoxRow row) Make @row the currently selected row.void
setActivateOnSingleClick
(boolean single) If @single is %TRUE, rows will be activated when you click on them,
otherwise you need to double-click.void
setAdjustment
(Adjustment adjustment) Sets the adjustment (if any) that the widget uses to
for vertical scrolling.void
setFilterFunc
(ListBox.OnListBoxFilterFunc filter_func, Pointer user_data, ListBox.OnDestroyNotify destroy) By setting a filter function on the @box one can decide dynamically which
of the rows to show.void
setHeaderFunc
(ListBox.OnListBoxUpdateHeaderFunc update_header, Pointer user_data, ListBox.OnDestroyNotify destroy) Sets a header function.void
setPlaceholder
(Widget placeholder) Sets the placeholder widget that is shown in the list when
it doesn't display any visible children.void
setSelectionMode
(int mode) Sets how selection works in the listbox.void
setShowSeparators
(boolean show_separators) Sets whether the list box should show separators
between rows.void
setSortFunc
(ListBox.OnListBoxSortFunc sort_func, Pointer user_data, ListBox.OnDestroyNotify destroy) Sets a sort function.void
Unselect all children of @box, if the selection mode allows it.void
unselectRow
(ListBoxRow row) Unselects a single row of @box, if the selection mode allows it.Methods inherited from class ch.bailu.gtk.gtk.Widget
actionSetEnabled, actionSetEnabled, activate, activateAction, activateAction, activateActionVariant, activateActionVariant, activateDefault, addController, addCssClass, addCssClass, addMnemonicLabel, addTickCallback, allocate, childFocus, computeBounds, computeExpand, computePoint, computeTransform, contains, createPangoContext, createPangoLayout, createPangoLayout, disposeTemplate, dragCheckThreshold, errorBell, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getCanFocus, getCanTarget, getChildVisible, getClipboard, getCssClasses, getCssName, getCursor, getDefaultDirection, getDirection, getDisplay, getFirstChild, getFocusable, getFocusChild, getFocusOnClick, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHeight, getHexpand, getHexpandSet, getLastChild, getLayoutManager, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getName, getNative, getNextSibling, getOpacity, getOverflow, getPangoContext, getParent, getPreferredSize, getPrevSibling, getPrimaryClipboard, getRealized, getReceivesDefault, getRequestMode, getRoot, getScaleFactor, getSensitive, getSettings, getSize, getSizeRequest, getStateFlags, getStyleContext, getTemplateChild, getTemplateChild, getTooltipMarkup, getTooltipText, getValign, getVexpand, getVexpandSet, getVisible, getWidth, grabFocus, hasCssClass, hasCssClass, hasDefault, hasFocus, hasVisibleFocus, hide, inDestruction, initTemplate, insertActionGroup, insertActionGroup, insertAfter, insertBefore, isAncestor, isDrawable, isFocus, isSensitive, isVisible, keynavFailed, listMnemonicLabels, map, measure, mnemonicActivate, observeChildren, observeControllers, onDestroy, onDirectionChanged, onHide, onKeynavFailed, onMap, onMnemonicActivate, onMoveFocus, onQueryTooltip, onRealize, onShow, onStateFlagsChanged, onUnmap, onUnrealize, pick, queueAllocate, queueDraw, queueResize, realize, removeController, removeCssClass, removeCssClass, removeMnemonicLabel, removeTickCallback, setCanFocus, setCanTarget, setChildVisible, setCssClasses, setCursor, setCursorFromName, setCursorFromName, setDefaultDirection, setDirection, setFocusable, setFocusChild, setFocusOnClick, setFontMap, setFontOptions, setHalign, setHasTooltip, setHexpand, setHexpandSet, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setName, setOpacity, setOverflow, setParent, setReceivesDefault, setSensitive, setSizeRequest, setStateFlags, setTooltipMarkup, setTooltipMarkup, setTooltipText, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, shouldLayout, show, sizeAllocate, snapshotChild, triggerTooltipQuery, unmap, unparent, unrealize, unsetStateFlags
Methods inherited from class 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
Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
SIGNAL_ON_ACTIVATE_CURSOR_ROW
- See Also:
-
SIGNAL_ON_MOVE_CURSOR
- See Also:
-
SIGNAL_ON_ROW_ACTIVATED
- See Also:
-
SIGNAL_ON_ROW_SELECTED
- See Also:
-
SIGNAL_ON_SELECT_ALL
- See Also:
-
SIGNAL_ON_SELECTED_ROWS_CHANGED
- See Also:
-
SIGNAL_ON_TOGGLE_CURSOR_ROW
- See Also:
-
SIGNAL_ON_UNSELECT_ALL
- See Also:
-
-
Constructor Details
-
ListBox
-
ListBox
public ListBox()Creates a new `GtkListBox` container.
-
-
Method Details
-
getClassHandler
-
append
Append a widget to the list.
If a sort function is set, the widget will
actually be inserted at the calculated position.- Parameters:
child
- the `GtkWidget` to add
-
bindModel
public void bindModel(@Nullable ListModel model, ListBox.OnListBoxCreateWidgetFunc create_widget_func, @Nullable Pointer user_data, ListBox.OnDestroyNotify user_data_free_func) Binds @model to @box.
If @box was already bound to a model, that previous binding is
destroyed.
The contents of @box are cleared and then filled with widgets that
represent items from @model. @box is updated whenever @model changes.
If @model is %NULL, @box is left empty.
It is undefined to add or remove widgets directly (for example, with
[method@Gtk.ListBox.insert]) while @box is bound to a model.
Note that using a model is incompatible with the filtering and sorting
functionality in `GtkListBox`. When using a model, filtering and sorting
should be implemented by the model.- Parameters:
model
- the `GListModel` to be bound to @boxcreate_widget_func
- a function that creates widgets for items or %NULL in case you also passed %NULL as @modeluser_data
- user data passed to @create_widget_funcuser_data_free_func
- function for freeing @user_data
-
dragHighlightRow
Add a drag highlight to a row.
This is a helper function for implementing DnD onto a `GtkListBox`.
The passed in @row will be highlighted by setting the
%GTK_STATE_FLAG_DROP_ACTIVE state and any previously highlighted
row will be unhighlighted.
The row will also be unhighlighted when the widget gets
a drag leave event.- Parameters:
row
- a `GtkListBoxRow`
-
dragUnhighlightRow
public void dragUnhighlightRow()If a row has previously been highlighted via gtk_list_box_drag_highlight_row(),
it will have the highlight removed. -
getActivateOnSingleClick
public boolean getActivateOnSingleClick()Returns whether rows activate on single clicks.- Returns:
- %TRUE if rows are activated on single click, %FALSE otherwise
-
getAdjustment
Gets the adjustment (if any) that the widget uses to
for vertical scrolling.- Returns:
- the adjustment
-
getRowAtIndex
Gets the n-th child in the list (not counting headers).
If @index_ is negative or larger than the number of items in the
list, %NULL is returned.- Parameters:
index_
- the index of the row- Returns:
- the child `GtkWidget`
-
getRowAtY
Gets the row at the @y position.- Parameters:
y
- position- Returns:
- the row
-
getSelectedRow
Gets the selected row, or %NULL if no rows are selected.
Note that the box may allow multiple selection, in which
case you should use [method@Gtk.ListBox.selected_foreach] to
find all selected rows.- Returns:
- the selected row
-
getSelectedRows
Creates a list of all selected children.- Returns:
- A `GList` containing the `GtkWidget` for each selected child. Free with g_list_free() when done.
-
getSelectionMode
public int getSelectionMode()Gets the selection mode of the listbox.- Returns:
- a `GtkSelectionMode`
-
getShowSeparators
public boolean getShowSeparators()Returns whether the list box should show separators
between rows.- Returns:
- %TRUE if the list box shows separators
-
insert
Insert the @child into the @box at @position.
If a sort function is
set, the widget will actually be inserted at the calculated position.
If @position is -1, or larger than the total number of items in the
@box, then the @child will be appended to the end.- Parameters:
child
- the `GtkWidget` to addposition
- the position to insert @child in
-
invalidateFilter
public void invalidateFilter()Update the filtering for all rows.
Call this when result
of the filter function on the @box is changed due
to an external factor. For instance, this would be used
if the filter function just looked for a specific search
string and the entry with the search string has changed. -
invalidateHeaders
public void invalidateHeaders()Update the separators for all rows.
Call this when result
of the header function on the @box is changed due
to an external factor. -
invalidateSort
public void invalidateSort()Update the sorting for all rows.
Call this when result
of the sort function on the @box is changed due
to an external factor. -
prepend
Prepend a widget to the list.
If a sort function is set, the widget will
actually be inserted at the calculated position.- Parameters:
child
- the `GtkWidget` to add
-
remove
Removes a child from @box.- Parameters:
child
- the child to remove
-
selectAll
public void selectAll()Select all children of @box, if the selection mode allows it. -
selectRow
Make @row the currently selected row.- Parameters:
row
- The row to select
-
selectedForeach
Calls a function for each selected child.
Note that the selection cannot be modified from within this function.- Parameters:
func
- the function to call for each selected childdata
- user data to pass to the function
-
setActivateOnSingleClick
public void setActivateOnSingleClick(boolean single) If @single is %TRUE, rows will be activated when you click on them,
otherwise you need to double-click.- Parameters:
single
- a boolean
-
setAdjustment
Sets the adjustment (if any) that the widget uses to
for vertical scrolling.
For instance, this is used to get the page size for
PageUp/Down key handling.
In the normal case when the @box is packed inside
a `GtkScrolledWindow` the adjustment from that will
be picked up automatically, so there is no need
to manually do that.- Parameters:
adjustment
- the adjustment
-
setFilterFunc
public void setFilterFunc(ListBox.OnListBoxFilterFunc filter_func, @Nullable Pointer user_data, ListBox.OnDestroyNotify destroy) By setting a filter function on the @box one can decide dynamically which
of the rows to show.
For instance, to implement a search function on a list that
filters the original list to only show the matching rows.
The @filter_func will be called for each row after the call, and
it will continue to be called each time a row changes (via
[method@Gtk.ListBoxRow.changed]) or when [method@Gtk.ListBox.invalidate_filter]
is called.
Note that using a filter function is incompatible with using a model
(see [method@Gtk.ListBox.bind_model]).- Parameters:
filter_func
- callback that lets you filter which rows to showuser_data
- user data passed to @filter_funcdestroy
- destroy notifier for @user_data
-
setHeaderFunc
public void setHeaderFunc(ListBox.OnListBoxUpdateHeaderFunc update_header, @Nullable Pointer user_data, ListBox.OnDestroyNotify destroy) Sets a header function.
By setting a header function on the @box one can dynamically add headers
in front of rows, depending on the contents of the row and its position
in the list.
For instance, one could use it to add headers in front of the first item
of a new kind, in a list sorted by the kind.
The @update_header can look at the current header widget using
[method@Gtk.ListBoxRow.get_header] and either update the state of the widget
as needed, or set a new one using [method@Gtk.ListBoxRow.set_header]. If no
header is needed, set the header to %NULL.
Note that you may get many calls @update_header to this for a particular
row when e.g. changing things that don’t affect the header. In this case
it is important for performance to not blindly replace an existing header
with an identical one.
The @update_header function will be called for each row after the call,
and it will continue to be called each time a row changes (via
[method@Gtk.ListBoxRow.changed]) and when the row before changes (either
by [method@Gtk.ListBoxRow.changed] on the previous row, or when the previous
row becomes a different row). It is also called for all rows when
[method@Gtk.ListBox.invalidate_headers] is called.- Parameters:
update_header
- callback that lets you add row headersuser_data
- user data passed to @update_headerdestroy
- destroy notifier for @user_data
-
setPlaceholder
Sets the placeholder widget that is shown in the list when
it doesn't display any visible children.- Parameters:
placeholder
- a `GtkWidget`
-
setSelectionMode
public void setSelectionMode(int mode) Sets how selection works in the listbox.- Parameters:
mode
- The `GtkSelectionMode`
-
setShowSeparators
public void setShowSeparators(boolean show_separators) Sets whether the list box should show separators
between rows.- Parameters:
show_separators
- %TRUE to show separators
-
setSortFunc
public void setSortFunc(ListBox.OnListBoxSortFunc sort_func, @Nullable Pointer user_data, ListBox.OnDestroyNotify destroy) Sets a sort function.
By setting a sort function on the @box one can dynamically reorder
the rows of the list, based on the contents of the rows.
The @sort_func will be called for each row after the call, and will
continue to be called each time a row changes (via
[method@Gtk.ListBoxRow.changed]) and when [method@Gtk.ListBox.invalidate_sort]
is called.
Note that using a sort function is incompatible with using a model
(see [method@Gtk.ListBox.bind_model]).- Parameters:
sort_func
- the sort functionuser_data
- user data passed to @sort_funcdestroy
- destroy notifier for @user_data
-
unselectAll
public void unselectAll()Unselect all children of @box, if the selection mode allows it. -
unselectRow
Unselects a single row of @box, if the selection mode allows it.- Parameters:
row
- the row to unselected
-
onActivateCursorRow
Connect to signal "activate-cursor-row".
SeeListBox.OnActivateCursorRow.onActivateCursorRow()
for signal description.
FieldSIGNAL_ON_ACTIVATE_CURSOR_ROW
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onMoveCursor
Connect to signal "move-cursor".
SeeListBox.OnMoveCursor.onMoveCursor(int, int, boolean, boolean)
for signal description.
FieldSIGNAL_ON_MOVE_CURSOR
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onRowActivated
Connect to signal "row-activated".
SeeListBox.OnRowActivated.onRowActivated(ch.bailu.gtk.gtk.ListBoxRow)
for signal description.
FieldSIGNAL_ON_ROW_ACTIVATED
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onRowSelected
Connect to signal "row-selected".
SeeListBox.OnRowSelected.onRowSelected(ch.bailu.gtk.gtk.ListBoxRow)
for signal description.
FieldSIGNAL_ON_ROW_SELECTED
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onSelectAll
Connect to signal "select-all".
SeeListBox.OnSelectAll.onSelectAll()
for signal description.
FieldSIGNAL_ON_SELECT_ALL
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onSelectedRowsChanged
Connect to signal "selected-rows-changed".
SeeListBox.OnSelectedRowsChanged.onSelectedRowsChanged()
for signal description.
FieldSIGNAL_ON_SELECTED_ROWS_CHANGED
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onToggleCursorRow
Connect to signal "toggle-cursor-row".
SeeListBox.OnToggleCursorRow.onToggleCursorRow()
for signal description.
FieldSIGNAL_ON_TOGGLE_CURSOR_ROW
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onUnselectAll
Connect to signal "unselect-all".
SeeListBox.OnUnselectAll.onUnselectAll()
for signal description.
FieldSIGNAL_ON_UNSELECT_ALL
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
asAccessible
Implements interfaceAccessible
. Call this to get access to interface functions.- Overrides:
asAccessible
in classWidget
- Returns:
Accessible
-
asBuildable
Implements interfaceBuildable
. Call this to get access to interface functions.- Overrides:
asBuildable
in classWidget
- Returns:
Buildable
-
asConstraintTarget
Implements interfaceConstraintTarget
. Call this to get access to interface functions.- Overrides:
asConstraintTarget
in classWidget
- Returns:
ConstraintTarget
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-