Type Parameters:
E - the list element type
All Superinterfaces:
Selectable

public interface ListSelectionHandler<E> extends Selectable
Interface to describe information and actions related to the selection of objects containing a list of selectable items.
See Also:
  • Property Details

  • Method Details

    • numSelectedProperty

      ReadOnlyIntegerProperty numSelectedProperty()
      Property indicating the number of selected items.
      See Also:
    • getNumSelected

      default int getNumSelected()
      Returns the number of selected items.
      Returns:
      the number of selected items
    • noneSelectedProperty

      ReadOnlyBooleanProperty noneSelectedProperty()
      Returns a property which evaluates to true, iff there are no selected items.
      See Also:
    • isNoneSelected

      default boolean isNoneSelected()
      Returns true, iff there are no selected items.
      Returns:
      true, iff there are no selected items
    • allSelectedProperty

      ReadOnlyBooleanProperty allSelectedProperty()
      Returns a property which evaluates to true, iff there are no unselected items.
      See Also:
    • isAllSelected

      default boolean isAllSelected()
      Returns true, iff there are no unselected items.
      Returns:
      true, iff there are no unselected items
    • sizeProperty

      ReadOnlyIntegerProperty sizeProperty()
      Property indicating the list size;
      See Also:
    • getSize

      default int getSize()
      Returns the value of the size property.
      Returns:
      the value of the size property
    • size

      default int size()
      Description copied from interface: Selectable
      Return the number of list items.
      Specified by:
      size in interface Selectable
      Returns:
      the number of list items
    • emptyProperty

      ReadOnlyBooleanProperty emptyProperty()
      Property to indicate an empty list.
      See Also:
    • isEmpty

      default boolean isEmpty()
      Returns the value of the empty property.
      Returns:
      the value of the empty property
    • streamSelected

      Stream<? extends E> streamSelected()
      Stream all selected elements.
      Returns:
      a stream of all selected elements
    • streamUnselected

      Stream<? extends E> streamUnselected()
      Stream all unselected elements.
      Returns:
      a stream of all unselected elements
    • getSourceList

      SelectableList<E> getSourceList()
      Returns the given source list.
      Returns:
      the given source list
    • getTransformationList

      TransformationList<E,E> getTransformationList()
      Returns the given transformation list.
      Returns:
      the given transformation list
    • headListProperty

      Returns the head of the transformation list or the source list, if no transformations are in use.
      See Also:
    • getHeadList

      default ReadOnlyListProperty<E> getHeadList()
      Gets the value of the property headList.
      Property description:
      Returns the head of the transformation list or the source list, if no transformations are in use.
    • get

      E get(int index)
      Returns the head list item at the given index.
      Parameters:
      index - the given index, including any transformations
      Returns:
      the head list item at the given index
    • isTransformed

      default boolean isTransformed()
      Returns true, iff a transformation list is set.
      Returns:
      true, iff a transformation list is set