Class ShortcutTriggeredEvent

java.lang.Object
java.util.EventObject
io.jmix.ui.component.ShortcutTriggeredEvent
All Implemented Interfaces:
Serializable

public class ShortcutTriggeredEvent extends EventObject
Describes shortcut triggered event. The event contains a data about source component and target component.
See Also:
  • Constructor Details

    • ShortcutTriggeredEvent

      public ShortcutTriggeredEvent(Component source, @Nullable Component target)
      Constructs a shortcut triggered event.
      Parameters:
      source - the component on which the Event initially occurred
      target - the component which was focused when the Event occurred
      Throws:
      IllegalArgumentException - if source is null
  • Method Details

    • getSource

      public Component getSource()
      Overrides:
      getSource in class EventObject
    • getTarget

      @Nullable public Component getTarget()
      Returns:
      the component which was focused when the Event occurred