viewtify

viewtify.ui.helper

SelectableHelper<Self, E>

  • SelfSelectableHelperSelf, E

    The type of the implementing class, enabling method chaining.

  • E

    The type of the elements in the selection model.

An interface providing methods for handling selection in UI elements.

selectionModelProperty()SelectionModelE

SelectionModelE

The SelectionModel for the implementing class.

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

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

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

kiss.SignalBoolean

A Signal indicating the presence of a selection.

Provides a Signal that emits true when there is a selection, and false otherwise.

hasNoSelection()kiss.SignalBoolean

kiss.SignalBoolean

A Signal indicating the absence of a selection.

Provides a Signal that emits true when there is no selection, and false otherwise.

mode(SelectionModemode)Self

SelectionModemode

The SelectionMode to set.

Self

The implementing class instance for method chaining.

Configures the SelectionMode.

selectedItem()kiss.VariableE

kiss.VariableE

A Variable containing the latest selected item.

Gets the latest selected item as a Variable.

selectedItems()javafx.collections.ObservableListE

javafx.collections.ObservableListE

An ObservableList containing the selected items.

Gets a live-state list of the selected items.

selectedIndices()javafx.collections.ObservableListInteger

javafx.collections.ObservableListInteger

An ObservableList containing the selected indices.

Gets a live-state list of the selected indices.

snapshotSelectedItems()ListE

ListE

An ObservableList containing the selected items.

Gets a snapshoted list of the selected items.

select(Eitem)Self

Eitem

The item to select.

Self

The implementing class instance for method chaining.

Selects the specified item.

selectAt(intindex)Self

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

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

The item to unselect.

Self

The implementing class instance for method chaining.

Clears the selection of the specified item.

unselectAt(intindex)Self

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

kiss.SignalE

A Signal containing the selected item.

Provides a Signal that emits the selected item.

whenSelected(ConsumerEselected)Self

ConsumerEselected

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.