Module MaterialFX
Class AbstractSingleSelectionModel<T>
java.lang.Object
io.github.palexdev.materialfx.selection.base.AbstractSingleSelectionModel<T>
- All Implemented Interfaces:
ISingleSelectionModel<T>
- Direct Known Subclasses:
SingleSelectionModel
public abstract class AbstractSingleSelectionModel<T>
extends Object
implements ISingleSelectionModel<T>
Abstract base class for all SingleSelectionModels.
This class holds a property for the items list. Controls that uses this selection model are
responsible for changes in the source list, so if anything changes there be sure to keep the
selection model in a consistent state.
Also holds a reference for SingleSelectionManager, the class that is effectively
responsible for updating/managing the selection model' state.
-
Property Summary
Properties inherited from interface io.github.palexdev.materialfx.selection.base.ISingleSelectionModel
selectedIndex, selectedItem -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ObjectProperty<ObservableList<T>>protected final SingleSelectionManager<T> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSingleSelectionModel(ObservableValue<? extends ObservableList<T>> items) protected -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.palexdev.materialfx.selection.base.ISingleSelectionModel
clearSelection, getSelectedIndex, getSelectedItem, selectedIndexProperty, selectedItemProperty, selectIndex, selectItem
-
Field Details
-
items
-
selectionManager
-
-
Constructor Details
-
AbstractSingleSelectionModel
-
AbstractSingleSelectionModel
-
-
Method Details
-
getUnmodifiableItems
- Returns:
- an unmodifiable copy of the items list
-
getItems
- Returns:
- the items list
-