Class SelectionChangeListener.SelectionChange<E>
java.lang.Object
de.bernd_michaely.common.desktop.fx.collections.selection.SelectionChangeListener.SelectionChange<E>
- Type Parameters:
E
- the list element type
- Enclosing interface:
- SelectionChangeListener<E>
Contains information about a selection change to a
SelectableList
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Enum to describe details about the kind of selection change. -
Method Summary
Modifier and TypeMethodDescriptionint
getFrom()
Returns the begin of the selection range.@Nullable SelectableList<E>
getList()
Returns the source list.Returns the type of selection change.int
getTo()
Returns the end of the selection range.boolean
Returns true, iff the selection range is empty.toString()
-
Method Details
-
getList
Returns the source list.- Returns:
- the source list
-
getFrom
public int getFrom()Returns the begin of the selection range.- Returns:
- the begin of the selection range
-
getTo
public int getTo()Returns the end of the selection range.- Returns:
- the end of the selection range
-
isEmptyRange
public boolean isEmptyRange()Returns true, iff the selection range is empty.- Returns:
- true, iff the selection range is empty
-
getSelectionChangeType
public @Nullable SelectionChangeListener.SelectionChange.SelectionChangeType getSelectionChangeType()Returns the type of selection change.- Returns:
- the type of selection change
-
toString
-