viewtify.ui.helper
SelectableHelper
<Self
, E
>
Self
, E
>Self
SelectableHelper
Self
,E
The type of the implementing class, enabling method chaining.
E
The type of the elements in the selection model.
AbstractComboBox
T
,Self
,W
UIComboBox
T
UIComboCheckBox
T
UIListView
E
UISelectPane
UITabPane
UITableView
RowV
UITreeTableView
RowV
An interface providing methods for handling selection in UI elements.
selectionModelProperty
()
SelectionModelE
E
SelectionModel |
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
(int
index
)
boolean
int
index
)int index |
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
(int
index
)
boolean
int
index
)int index |
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
Boolean
kiss.Signal |
A |
Provides a Signal that emits true
when there is a selection, and
false
otherwise.
hasNoSelection
()
kiss.SignalBoolean
Boolean
kiss.Signal |
A |
Provides a Signal that emits true
when there is no selection, and
false
otherwise.
mode
(SelectionMode
mode
)
Self
SelectionMode
mode
)SelectionMode mode |
The |
Self |
The implementing class instance for method chaining. |
Configures the SelectionMode
.
selectedItem
()
kiss.VariableE
E
kiss.Variable |
A |
Gets the latest selected item as a Variable.
selectedItems
()
javafx.collections.ObservableListE
E
javafx.collections.ObservableList |
An |
Gets a live-state list of the selected items.
selectedIndices
()
javafx.collections.ObservableListInteger
Integer
javafx.collections.ObservableList |
An |
Gets a live-state list of the selected indices.
snapshotSelectedItems
()
ListE
E
List |
An |
Gets a snapshoted list of the selected items.
select
(E
item
)
Self
E
item
)E item |
The item to select. |
Self |
The implementing class instance for method chaining. |
Selects the specified item.
selectAt
(int
index
)
Self
int
index
)int index |
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
(int
index
)
Self
int
index
)int index |
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
(E
item
)
Self
E
item
)E item |
The item to unselect. |
Self |
The implementing class instance for method chaining. |
Clears the selection of the specified item.
unselectAt
(int
index
)
Self
int
index
)int index |
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
E
kiss.Signal |
A |
Provides a Signal that emits the selected item.
whenSelected
(ConsumerE
selected
)
Self
ConsumerE
selected
)Consumer selected |
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.