Interface ListSelectionHandler<E>
- Type Parameters:
E
- the list element type
- All Superinterfaces:
Selectable
Interface to describe information and actions related to the selection of
objects containing a list of selectable items.
- See Also:
-
Property Summary
PropertiesTypePropertyDescriptionReturns a property which evaluates to true, iff there are no unselected items.Property to indicate an empty list.Returns the head of the transformation list or the source list, if no transformations are in use.Returns a property which evaluates to true, iff there are no selected items.Property indicating the number of selected items.Property indicating the list size; -
Nested Class Summary
Nested classes/interfaces inherited from interface de.bernd_michaely.common.desktop.fx.collections.selection.Selectable
Selectable.Action
-
Method Summary
Modifier and TypeMethodDescriptionReturns a property which evaluates to true, iff there are no unselected items.Property to indicate an empty list.get
(int index) Returns the head list item at the given index.default ReadOnlyListProperty<E>
Gets the value of the property headList.default int
Returns the number of selected items.default int
getSize()
Returns the value of the size property.Returns the given source list.Returns the given transformation list.Returns the head of the transformation list or the source list, if no transformations are in use.default boolean
Returns true, iff there are no unselected items.default boolean
isEmpty()
Returns the value of the empty property.default boolean
Returns true, iff there are no selected items.default boolean
Returns true, iff a transformation list is set.Returns a property which evaluates to true, iff there are no selected items.Property indicating the number of selected items.default int
size()
Return the number of list items.Property indicating the list size;Stream all selected elements.Stream all unselected elements.Methods inherited from interface de.bernd_michaely.common.desktop.fx.collections.selection.Selectable
getSourceIndex, invertSelection, isSelected, select, selectAll, selectAll, selectNone, selectRange, selectRangeBidirectional, selectRangeBidirectional, setSelected
-
Property Details
-
numSelected
ReadOnlyIntegerProperty numSelectedPropertyProperty indicating the number of selected items.- See Also:
-
noneSelected
ReadOnlyBooleanProperty noneSelectedPropertyReturns a property which evaluates to true, iff there are no selected items.- See Also:
-
allSelected
ReadOnlyBooleanProperty allSelectedPropertyReturns a property which evaluates to true, iff there are no unselected items.- See Also:
-
size
ReadOnlyIntegerProperty sizePropertyProperty indicating the list size;- See Also:
-
empty
ReadOnlyBooleanProperty emptyPropertyProperty to indicate an empty list.- See Also:
-
headList
ReadOnlyObjectProperty<ReadOnlyListProperty<E>> headListPropertyReturns the head of the transformation list or the source list, if no transformations are in use.- See Also:
-
-
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 interfaceSelectable
- 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 all selected elements.- Returns:
- a stream of all selected elements
-
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
ReadOnlyObjectProperty<ReadOnlyListProperty<E>> headListProperty()Returns the head of the transformation list or the source list, if no transformations are in use.- See Also:
-
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
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
-