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 attached JThumbnailPane

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)
  • Constructor Details

    • JThumbnailSelectionModel

      public JThumbnailSelectionModel()
      Create a new empty JThumbnailPane selection model.
    • JThumbnailSelectionModel

      public JThumbnailSelectionModel(List<T> items)
      Create a new JThumbnailPane selection model based on the given items.
      Parameters:
      items - the items that have to be managed by this selection model
  • Method Details

    • getSelectedIndices

      public javafx.collections.ObservableList<Integer> getSelectedIndices()
      Specified by:
      getSelectedIndices in class javafx.scene.control.MultipleSelectionModel<T>
    • getSelectedItems

      public javafx.collections.ObservableList<T> getSelectedItems()
      Specified by:
      getSelectedItems in class javafx.scene.control.MultipleSelectionModel<T>
    • selectIndices

      public void selectIndices(int index, int... indices)
      Specified by:
      selectIndices in class javafx.scene.control.MultipleSelectionModel<T>
    • selectAll

      public void selectAll()
      Specified by:
      selectAll in class javafx.scene.control.MultipleSelectionModel<T>
    • selectFirst

      public void selectFirst()
      Specified by:
      selectFirst in class javafx.scene.control.MultipleSelectionModel<T>
    • selectLast

      public void selectLast()
      Specified by:
      selectLast in class javafx.scene.control.MultipleSelectionModel<T>
    • clearAndSelect

      public void clearAndSelect(int index)
      Specified by:
      clearAndSelect in class javafx.scene.control.SelectionModel<T>
    • select

      public void select(int index)
      Specified by:
      select in class javafx.scene.control.SelectionModel<T>
    • select

      public void select(T obj)
      Specified by:
      select in class javafx.scene.control.SelectionModel<T>
    • clearSelection

      public void clearSelection(int index)
      Specified by:
      clearSelection in class javafx.scene.control.SelectionModel<T>
    • clearSelection

      public void clearSelection()
      Specified by:
      clearSelection in class javafx.scene.control.SelectionModel<T>
    • isSelected

      public boolean isSelected(int index)
      Specified by:
      isSelected in class javafx.scene.control.SelectionModel<T>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in class javafx.scene.control.SelectionModel<T>
    • selectPrevious

      public void selectPrevious()
      Specified by:
      selectPrevious in class javafx.scene.control.SelectionModel<T>
    • selectNext

      public void selectNext()
      Specified by:
      selectNext in class javafx.scene.control.SelectionModel<T>