Class RegistrationEvent

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    RegistrationEvent

    public class RegistrationEvent
    extends java.util.EventObject
    An AWTEvent that adds support for registration objects as the event source.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int REGISTRATION_ADDED
      This event is delivered when the a new object is registered.
      static int REGISTRATION_CLEARED
      This event is delivered when the whole registration is cleared
      static int REGISTRATION_EVENT_FIRST
      The first number in the range of IDs used for DockableFrame events.
      static int REGISTRATION_EVENT_LAST
      The last number in the range of IDs used for DockableFrame events.
      static int REGISTRATION_REMOVED
      This event is delivered when the registered object is removed.
      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      RegistrationEvent​(java.lang.Object source, int id)
      Create a REGISTRATION_CLEARED event.
      RegistrationEvent​(java.lang.Object source, int id, java.lang.Object object, java.lang.Object key, java.lang.Object context)
      Constructs an RegistrationEvent object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getContext()  
      int getId()  
      java.lang.Object getKey()  
      java.lang.Object getObject()  
      java.lang.String toString()  
      • Methods inherited from class java.util.EventObject

        getSource
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • REGISTRATION_EVENT_FIRST

        public static final int REGISTRATION_EVENT_FIRST
        The first number in the range of IDs used for DockableFrame events.
        See Also:
        Constant Field Values
      • REGISTRATION_EVENT_LAST

        public static final int REGISTRATION_EVENT_LAST
        The last number in the range of IDs used for DockableFrame events.
        See Also:
        Constant Field Values
      • REGISTRATION_ADDED

        public static final int REGISTRATION_ADDED
        This event is delivered when the a new object is registered.
        See Also:
        Constant Field Values
      • REGISTRATION_REMOVED

        public static final int REGISTRATION_REMOVED
        This event is delivered when the registered object is removed.
        See Also:
        Constant Field Values
      • REGISTRATION_CLEARED

        public static final int REGISTRATION_CLEARED
        This event is delivered when the whole registration is cleared
        See Also:
        Constant Field Values
    • Constructor Detail

      • RegistrationEvent

        public RegistrationEvent​(java.lang.Object source,
                                 int id)
        Create a REGISTRATION_CLEARED event.
        Parameters:
        source -
        id - must be equal to REGISTRATION_CLEARED.
      • RegistrationEvent

        public RegistrationEvent​(java.lang.Object source,
                                 int id,
                                 java.lang.Object object,
                                 java.lang.Object key,
                                 java.lang.Object context)
        Constructs an RegistrationEvent object.
        Parameters:
        source - the Registration object that originated the event
        id - an integer indicating the type of event
    • Method Detail

      • getKey

        public java.lang.Object getKey()
      • getContext

        public java.lang.Object getContext()
      • getObject

        public java.lang.Object getObject()
      • getId

        public int getId()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.util.EventObject