Interface ControlEvent<C>

Type Parameters:
C - the control type
All Superinterfaces:
Event
All Known Subinterfaces:
ValueEvent<C,V>

public interface ControlEvent<C> extends Event
A control's Post event: something happened, such as a press or a close. It fires after the fact, whether the user or code caused it, and cannot be canceled.

Only Strata creates events. Do not implement this interface.

  • Method Details

    • control

      C control()
      Returns the control that fired the event. For a control that is a component this is also the event's target. For one that is not, the target is a component that stands for it: a radio group's SELECTED is aimed at the button newly selected, or at the one that lost the selection when it was cleared, and an overlay's CLOSED at the overlay's content.
      Returns:
      the control, typed as the attribute or control that declares the event type