java.lang.Object
javafx.scene.control.SelectionModel<T>
javafx.scene.control.MultipleSelectionModel<T>
com.dlsc.gemsfx.util.EmptySelectionModel<T>
- Type Parameters:
T
- the model object type
public class EmptySelectionModel<T>
extends javafx.scene.control.MultipleSelectionModel<T>
A "do nothing" selection model.
-
Property Summary
Properties inherited from class javafx.scene.control.MultipleSelectionModel
selectionMode
Properties inherited from class javafx.scene.control.SelectionModel
selectedIndex, selectedItem
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearAndSelect
(int index) void
void
clearSelection
(int index) javafx.collections.ObservableList<Integer>
javafx.collections.ObservableList<T>
boolean
isEmpty()
boolean
isSelected
(int index) void
select
(int index) void
void
void
void
selectIndices
(int index, int... indices) void
void
void
Methods inherited from class javafx.scene.control.MultipleSelectionModel
getSelectionMode, selectionModeProperty, selectRange, setSelectionMode
Methods inherited from class javafx.scene.control.SelectionModel
getSelectedIndex, getSelectedItem, selectedIndexProperty, selectedItemProperty, setSelectedIndex, setSelectedItem
-
Constructor Details
-
EmptySelectionModel
public EmptySelectionModel()
-
-
Method Details
-
getSelectedIndices
- Specified by:
getSelectedIndices
in classjavafx.scene.control.MultipleSelectionModel<T>
-
getSelectedItems
- Specified by:
getSelectedItems
in classjavafx.scene.control.MultipleSelectionModel<T>
-
selectIndices
public void selectIndices(int index, int... indices) - Specified by:
selectIndices
in classjavafx.scene.control.MultipleSelectionModel<T>
-
selectAll
public void selectAll()- Specified by:
selectAll
in classjavafx.scene.control.MultipleSelectionModel<T>
-
selectFirst
public void selectFirst()- Specified by:
selectFirst
in classjavafx.scene.control.MultipleSelectionModel<T>
-
selectLast
public void selectLast()- Specified by:
selectLast
in classjavafx.scene.control.MultipleSelectionModel<T>
-
clearAndSelect
public void clearAndSelect(int index) - Specified by:
clearAndSelect
in classjavafx.scene.control.SelectionModel<T>
-
select
public void select(int index) - Specified by:
select
in classjavafx.scene.control.SelectionModel<T>
-
select
- Specified by:
select
in classjavafx.scene.control.SelectionModel<T>
-
clearSelection
public void clearSelection(int index) - Specified by:
clearSelection
in classjavafx.scene.control.SelectionModel<T>
-
clearSelection
public void clearSelection()- Specified by:
clearSelection
in classjavafx.scene.control.SelectionModel<T>
-
isSelected
public boolean isSelected(int index) - Specified by:
isSelected
in classjavafx.scene.control.SelectionModel<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in classjavafx.scene.control.SelectionModel<T>
-
selectPrevious
public void selectPrevious()- Specified by:
selectPrevious
in classjavafx.scene.control.SelectionModel<T>
-
selectNext
public void selectNext()- Specified by:
selectNext
in classjavafx.scene.control.SelectionModel<T>
-