Class EventManager


  • public class EventManager
    extends java.lang.Object
    The event system - the single, global event manager control the registration and delivery of events. An event is a label and an argument.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void register​(java.lang.Object object, EventType type, EventListener listener)  
      static void send​(java.lang.Object dest, Event event)
      Send an event to all listeners on an object for the event's type
      static void unregister​(java.lang.Object object, EventType type, EventListener listener)
      Unregister a listener for events
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • register

        public static void register​(java.lang.Object object,
                                    EventType type,
                                    EventListener listener)
      • unregister

        public static void unregister​(java.lang.Object object,
                                      EventType type,
                                      EventListener listener)
        Unregister a listener for events
      • send

        public static void send​(java.lang.Object dest,
                                Event event)
        Send an event to all listeners on an object for the event's type