Module MaterialFX
Interface ISingleSelectionModel<T>
- All Known Implementing Classes:
AbstractSingleSelectionModel,ComboBoxSelectionModel,SingleSelectionModel
public interface ISingleSelectionModel<T>
Public API that every SingleSelectionModel must implement.
-
Property Summary
PropertiesTypePropertyDescriptionThe selected index property as a read-only property.The selected item property as a read-only property. -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the selection.intThe selected index property as a read-only property.The selected item property as a read-only property.voidselectIndex(int index) Selects the given index.voidselectItem(T item) Selects the given item.
-
Property Details
-
selectedIndex
ReadOnlyIntegerProperty selectedIndexPropertyThe selected index property as a read-only property. Selection should always be updated with the dedicated methods.- See Also:
-
selectedItem
ReadOnlyObjectProperty<T> selectedItemPropertyThe selected item property as a read-only property. Selection should always be updated with the dedicated methods.- See Also:
-
-
Method Details
-
clearSelection
void clearSelection()Clears the selection. -
selectIndex
void selectIndex(int index) Selects the given index. -
selectItem
Selects the given item. -
getSelectedIndex
int getSelectedIndex()- Returns:
- the current selected index
-
selectedIndexProperty
ReadOnlyIntegerProperty selectedIndexProperty()The selected index property as a read-only property. Selection should always be updated with the dedicated methods.- See Also:
-
getSelectedItem
T getSelectedItem()- Returns:
- the current selected item
-
selectedItemProperty
ReadOnlyObjectProperty<T> selectedItemProperty()The selected item property as a read-only property. Selection should always be updated with the dedicated methods.- See Also:
-