Package io.jmix.ui

Class RemoveOperation.BeforeActionPerformedEvent<E>

java.lang.Object
java.util.EventObject
io.jmix.ui.RemoveOperation.BeforeActionPerformedEvent<E>
All Implemented Interfaces:
Serializable
Enclosing class:
RemoveOperation

public static class RemoveOperation.BeforeActionPerformedEvent<E> extends EventObject
Event sent before selected entities are removed.
See Also:
  • Field Details

    • items

      protected final List<E> items
    • actionPrevented

      protected boolean actionPrevented
  • Constructor Details

    • BeforeActionPerformedEvent

      public BeforeActionPerformedEvent(FrameOwner origin, List<E> items)
  • Method Details

    • getSource

      public FrameOwner getSource()
      Overrides:
      getSource in class EventObject
    • getScreen

      public FrameOwner getScreen()
    • getItems

      public List<E> getItems()
      Returns:
      the list of entities selected for removal
    • isActionPrevented

      public boolean isActionPrevented()
      Returns:
      whether the removal was prevented by invoking preventAction()
    • preventAction

      public void preventAction()
      Prevents the removal.