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
FieldsModifier and TypeFieldDescriptionprotected final booleanFields inherited from class java.util.EventObject
source - 
Constructor Summary
ConstructorsConstructorDescriptionSelectionEvent(Table<E> component, Set<E> selected, boolean userOriginated) Constructor for a selection event. - 
Method Summary
Modifier and TypeMethodDescriptionASetof all the items that are currently selected.booleanReturns 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:
 getSourcein classEventObject
 - 
getSelected
ASetof 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:HasUserOriginatedReturns whether this event was triggered by user interaction or programmatically.- Specified by:
 isUserOriginatedin interfaceHasUserOriginated- Returns:
 trueif this event originates by user interaction,falseotherwise.
 
 -