Class Table.SelectionEvent<E>

java.lang.Object
java.util.EventObject
io.jmix.ui.component.Table.SelectionEvent<E>
All Implemented Interfaces:
HasUserOriginated, Serializable
Enclosing interface:
Table<E>

public static class Table.SelectionEvent<E> extends EventObject implements HasUserOriginated
Event sent when the selection changes. It specifies what in a selection has changed, and where the selection took place.
See Also:
  • Field Details

    • selected

      protected final Set<E> selected
    • userOriginated

      protected final boolean userOriginated
  • Constructor Details

    • SelectionEvent

      public SelectionEvent(Table<E> component, Set<E> selected, boolean userOriginated)
      Constructor for a selection event.
      Parameters:
      component - the Table from which this event originates
      selected - items that are currently selected
  • Method Details

    • getSource

      public Table<E> getSource()
      Overrides:
      getSource in class EventObject
    • getSelected

      public Set<E> getSelected()
      A Set of 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: 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.