Package io.jmix.ui.component
Class Table.SelectionEvent<E>
java.lang.Object
java.util.EventObject
io.jmix.ui.component.Table.SelectionEvent<E>
- All Implemented Interfaces:
HasUserOriginated
,Serializable
Event sent when the selection changes. It specifies what in a selection has changed, and where the
selection took place.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionSelectionEvent
(Table<E> component, Set<E> selected, boolean userOriginated) Constructor for a selection event. -
Method Summary
Modifier and TypeMethodDescriptionASet
of all the items that are currently selected.boolean
Returns whether this event was triggered by user interaction or programmatically.Methods inherited from class java.util.EventObject
toString
-
Field Details
-
selected
-
userOriginated
protected final boolean userOriginated
-
-
Constructor Details
-
SelectionEvent
Constructor for a selection event.- Parameters:
component
- the Table from which this event originatesselected
- items that are currently selected
-
-
Method Details
-
getSource
- Overrides:
getSource
in classEventObject
-
getSelected
ASet
of all the items that are currently selected.- Returns:
- a List of the items that are currently selected
-
isUserOriginated
public boolean isUserOriginated()Description copied from interface:HasUserOriginated
Returns whether this event was triggered by user interaction or programmatically.- Specified by:
isUserOriginated
in interfaceHasUserOriginated
- Returns:
true
if this event originates by user interaction,false
otherwise.
-