Class UiEvent

java.lang.Object
io.github.mmm.ui.api.event.UiEvent
All Implemented Interfaces:
AttributeReadProgrammatic
Direct Known Subclasses:
UiAttachingEvent, UiClickEvent, UiEnablingEvent, UiFocusEvent, UiSelectionEvent, UiValueChangeEvent, UiVisibilityEvent

public abstract class UiEvent extends Object implements AttributeReadProgrammatic
This is the interface for an event of the UI.
Since:
1.0.0
  • Constructor Details

  • Method Details

    • getSource

      public UiWidget getSource()
      Returns:
      the source object (widget) that sent this event.
    • isProgrammatic

      public boolean isProgrammatic()
      Specified by:
      isProgrammatic in interface AttributeReadProgrammatic
      Returns:
      true if this event was triggered by the program (e.g. via AttributeFeatureClick.click()), false if performed by an end-user interaction (e.g. keyboard, touch, or mouse).
    • getType

      public abstract UiEventType getType()
      Returns:
      the type of this event.
      See Also: