Package io.jmix.ui.component
Class TreeDataGrid.ExpandEvent<E>
java.lang.Object
java.util.EventObject
io.jmix.ui.component.TreeDataGrid.ExpandEvent<E>
- Type Parameters:
E
- item type
- All Implemented Interfaces:
HasUserOriginated
,Serializable
- Enclosing interface:
- TreeDataGrid<E>
An event that is fired when an item is expanded.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionExpandEvent
(TreeDataGrid<E> source, E expandedItem, boolean userOriginated) Constructor for the expand event. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether this event was triggered by user interaction or programmatically.Methods inherited from class java.util.EventObject
toString
-
Field Details
-
expandedItem
-
userOriginated
protected final boolean userOriginated
-
-
Constructor Details
-
ExpandEvent
Constructor for the expand event.- Parameters:
source
- the TreeDataGrid from which this event originatesexpandedItem
- the expanded itemuserOriginated
- whether this event was triggered by user interaction or programmatically
-
-
Method Details
-
getSource
- Overrides:
getSource
in classEventObject
-
getExpandedItem
- Returns:
- the expanded item
-
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.
-