Class TreeDataGrid.CollapseEvent<E>

java.lang.Object
java.util.EventObject
io.jmix.ui.component.TreeDataGrid.CollapseEvent<E>
Type Parameters:
E - item type
All Implemented Interfaces:
HasUserOriginated, Serializable
Enclosing interface:
TreeDataGrid<E>

public static class TreeDataGrid.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(TreeDataGrid<E> source, E collapsedItem, boolean userOriginated)
      Constructor for the collapse event.
      Parameters:
      source - the TreeDataGrid from which this event originates
      collapsedItem - the collapsed item
      userOriginated - whether this event was triggered by user interaction or programmatically
  • Method Details

    • getSource

      public TreeDataGrid<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.