viewtify.ui.helper
SelectableHelper<Self, E>
Self, E>SelfSelectableHelperSelf,EThe type of the implementing class, enabling method chaining.
EThe type of the elements in the selection model.
AbstractComboBoxT,Self,WUIComboBoxTUIComboCheckBoxTUIListViewEUISelectPaneUITabPaneUITableViewRowVUITreeTableViewRowV
An interface providing methods for handling selection in UI elements.
selectionModelProperty()SelectionModelE
ESelectionModel |
The |
Retrieves the SelectionModel.
isSelected()boolean
boolean |
true if there is a selection, false otherwise. |
Checks if there is any current selection.
isNotSelected()boolean
boolean |
true if there is no selection, false otherwise. |
Checks if there is no current selection.
isSelectedAt(intindex)boolean
intindex)intindex |
The index to check. |
boolean |
true if the item at the index is selected, false otherwise. |
Checks if an item at the specified index is currently selected.
isNotSelectedAt(intindex)boolean
intindex)intindex |
The index to check. |
boolean |
true if the item at the index is not selected, false otherwise. |
Checks if an item at the specified index is not currently selected.
hasSelection()kiss.SignalBoolean
Booleankiss.Signal |
A |
Provides a Signal that emits true when there is a selection, and
false otherwise.
hasNoSelection()kiss.SignalBoolean
Booleankiss.Signal |
A |
Provides a Signal that emits true when there is no selection, and
false otherwise.
mode(SelectionModemode)Self
SelectionModemode)SelectionModemode |
The |
Self |
The implementing class instance for method chaining. |
Configures the SelectionMode.
selectedItem()kiss.VariableE
Ekiss.Variable |
A |
Gets the latest selected item as a Variable.
selectedItems()javafx.collections.ObservableListE
Ejavafx.collections.ObservableList |
An |
Gets a live-state list of the selected items.
selectedIndices()javafx.collections.ObservableListInteger
Integerjavafx.collections.ObservableList |
An |
Gets a live-state list of the selected indices.
snapshotSelectedItems()ListE
EList |
An |
Gets a snapshoted list of the selected items.
select(Eitem)Self
Eitem)Eitem |
The item to select. |
Self |
The implementing class instance for method chaining. |
Selects the specified item.
selectAt(intindex)Self
intindex)intindex |
The index of the item to select. |
Self |
The implementing class instance for method chaining. |
Selects the item at the specified index.
selectAll()Self
Self |
The implementing class instance for method chaining. |
Select all items.
toggleAt(intindex)Self
intindex)intindex |
The index of the item to toggle. |
Self |
The implementing class instance for method chaining. |
Toggles the selection state of the item at the specified index.
selectNext()Self
Self |
The implementing class instance for method chaining. |
Moves the selection to the next item.
selectPrevious()Self
Self |
The implementing class instance for method chaining. |
Moves the selection to the previous item.
selectFirst()Self
Self |
The implementing class instance for method chaining. |
Selects the first item in the list.
selectLast()Self
Self |
The implementing class instance for method chaining. |
Selects the last item in the list.
unselect()Self
Self |
The implementing class instance for method chaining. |
Clears the selection.
unselect(Eitem)Self
Eitem)Eitem |
The item to unselect. |
Self |
The implementing class instance for method chaining. |
Clears the selection of the specified item.
unselectAt(intindex)Self
intindex)intindex |
The index of the item to unselect. |
Self |
The implementing class instance for method chaining. |
Clears the selection of the item at the specified index.
selected()kiss.SignalE
Ekiss.Signal |
A |
Provides a Signal that emits the selected item.
whenSelected(ConsumerEselected)Self
ConsumerEselected)Consumerselected |
The consumer to be called with the selected item. |
Self |
The implementing class instance for method chaining. |
Registers a consumer to be called when an item is selected.