Module MaterialFX
Class AbstractMultipleSelectionModel<T>
java.lang.Object
io.github.palexdev.materialfx.selection.base.AbstractMultipleSelectionModel<T>
- All Implemented Interfaces:
IMultipleSelectionModel<T>
- Direct Known Subclasses:
MultipleSelectionModel
public abstract class AbstractMultipleSelectionModel<T>
extends Object
implements IMultipleSelectionModel<T>
Abstract base class for all MultipleSelectionModels.
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 MultipleSelectionManager, 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.IMultipleSelectionModel
selection -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ObjectProperty<ObservableList<T>>protected final MultipleSelectionManager<T> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractMultipleSelectionModel(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.IMultipleSelectionModel
allowsMultipleSelection, clearSelection, deselectIndex, deselectIndexes, deselectItem, deselectItems, expandSelection, getSelectedValues, getSelection, replaceSelection, replaceSelection, selectIndex, selectIndexes, selectionProperty, selectItem, selectItems, setAllowsMultipleSelection, setSelection
-
Field Details
-
items
-
selectionManager
-
-
Constructor Details
-
AbstractMultipleSelectionModel
-
AbstractMultipleSelectionModel
-
-
Method Details
-
getItems
- Returns:
- an unmodifiable copy of the items list
-