Package io.jmix.ui.component
Class Tree.CollapseEvent<E>
java.lang.Object
java.util.EventObject
io.jmix.ui.component.Tree.CollapseEvent<E>
- Type Parameters:
E
- item type
- All Implemented Interfaces:
HasUserOriginated
,Serializable
An event that is fired when an item is collapsed.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionCollapseEvent
(Tree<E> source, E collapsedItem, boolean userOriginated) Constructor for the collapse 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
-
collapsedItem
-
userOriginated
protected final boolean userOriginated
-
-
Constructor Details
-
CollapseEvent
Constructor for the collapse event.- Parameters:
source
- the Tree from which this event originatescollapsedItem
- the collapsed itemuserOriginated
- whether this event was triggered by user interaction or programmatically
-
-
Method Details
-
getSource
- Overrides:
getSource
in classEventObject
-
getCollapsedItem
- Returns:
- the collapsed 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.
-