Class ControllerEvent

java.lang.Object
java.util.EventObject
org.moeaframework.util.mvc.ControllerEvent
All Implemented Interfaces:
Serializable

public class ControllerEvent extends EventObject
An event fired by a controller. Use the event type to identify different types of changes that are occurring, limiting the scope of changes to the UI.
See Also:
  • Constructor Details

    • ControllerEvent

      public ControllerEvent(Controller controller, String eventType)
      Constructs a new controller event of the specified type.
      Parameters:
      controller - the controller from which this event originates
      eventType - the type of this event
  • Method Details

    • getEventType

      public String getEventType()
      Returns the type of this event.
      Returns:
      the type of this event.
    • getSource

      public Controller getSource()
      Overrides:
      getSource in class EventObject