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
Enclosing interface:
Tree<E>

public static class Tree.CollapseEvent<E> extends EventObject implements HasUserOriginated
An event that is fired when an item is collapsed.
See Also:
  • Field Details

    • collapsedItem

      protected final E collapsedItem
    • userOriginated

      protected final boolean userOriginated
  • Constructor Details

    • CollapseEvent

      public CollapseEvent(Tree<E> source, E collapsedItem, boolean userOriginated)
      Constructor for the collapse event.
      Parameters:
      source - the Tree from which this event originates
      collapsedItem - the collapsed item
      userOriginated - whether this event was triggered by user interaction or programmatically
  • Method Details

    • getSource

      public Tree<E> getSource()
      Overrides:
      getSource in class EventObject
    • getCollapsedItem

      public E 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 interface HasUserOriginated
      Returns:
      true if this event originates by user interaction, false otherwise.