Class JThumbnailSelectionModel<T>
java.lang.Object
javafx.scene.control.SelectionModel<T>
javafx.scene.control.MultipleSelectionModel<T>
org.jorigin.jfx.thumbnail.JThumbnailSelectionModel<T>
- Type Parameters:
T- the type of the objects that are managed by the attachedJThumbnailPane
public class JThumbnailSelectionModel<T>
extends javafx.scene.control.MultipleSelectionModel<T>
A
selection model that is used by JThumbnailPane- Author:
- Julien SEINTURIER - Université de Toulon / CNRS LIS umr 7020 - github.com/jorigin/jcommon (contact@jorigin.org)
-
Property Summary
Properties inherited from class javafx.scene.control.MultipleSelectionModel
selectionModeProperties inherited from class javafx.scene.control.SelectionModel
selectedIndex, selectedItem -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new emptyJThumbnailPaneselection model.JThumbnailSelectionModel(List<T> items) Create a newJThumbnailPaneselection model based on the givenitems. -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAndSelect(int index) voidvoidclearSelection(int index) javafx.collections.ObservableList<Integer> javafx.collections.ObservableList<T> booleanisEmpty()booleanisSelected(int index) voidselect(int index) voidvoidvoidvoidselectIndices(int index, int... indices) voidvoidvoidMethods inherited from class javafx.scene.control.MultipleSelectionModel
getSelectionMode, selectionModeProperty, selectRange, setSelectionModeMethods inherited from class javafx.scene.control.SelectionModel
getSelectedIndex, getSelectedItem, selectedIndexProperty, selectedItemProperty, setSelectedIndex, setSelectedItem
-
Constructor Details
-
JThumbnailSelectionModel
public JThumbnailSelectionModel()Create a new emptyJThumbnailPaneselection model. -
JThumbnailSelectionModel
Create a newJThumbnailPaneselection model based on the givenitems.- Parameters:
items- the items that have to be managed by this selection model
-
-
Method Details
-
getSelectedIndices
-
getSelectedItems
-
selectIndices
public void selectIndices(int index, int... indices) - Specified by:
selectIndicesin classjavafx.scene.control.MultipleSelectionModel<T>
-
selectAll
public void selectAll()- Specified by:
selectAllin classjavafx.scene.control.MultipleSelectionModel<T>
-
selectFirst
public void selectFirst()- Specified by:
selectFirstin classjavafx.scene.control.MultipleSelectionModel<T>
-
selectLast
public void selectLast()- Specified by:
selectLastin classjavafx.scene.control.MultipleSelectionModel<T>
-
clearAndSelect
public void clearAndSelect(int index) - Specified by:
clearAndSelectin classjavafx.scene.control.SelectionModel<T>
-
select
public void select(int index) - Specified by:
selectin classjavafx.scene.control.SelectionModel<T>
-
select
-
clearSelection
public void clearSelection(int index) - Specified by:
clearSelectionin classjavafx.scene.control.SelectionModel<T>
-
clearSelection
public void clearSelection()- Specified by:
clearSelectionin classjavafx.scene.control.SelectionModel<T>
-
isSelected
public boolean isSelected(int index) - Specified by:
isSelectedin classjavafx.scene.control.SelectionModel<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin classjavafx.scene.control.SelectionModel<T>
-
selectPrevious
public void selectPrevious()- Specified by:
selectPreviousin classjavafx.scene.control.SelectionModel<T>
-
selectNext
public void selectNext()- Specified by:
selectNextin classjavafx.scene.control.SelectionModel<T>
-