Package com.jidesoft.utils
Class RegistrationEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.jidesoft.utils.RegistrationEvent
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
RegistrationEvent
public class RegistrationEvent extends java.util.EventObjectAnAWTEventthat adds support for registration objects as the event source.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intREGISTRATION_ADDEDThis event is delivered when the a new object is registered.static intREGISTRATION_CLEAREDThis event is delivered when the whole registration is clearedstatic intREGISTRATION_EVENT_FIRSTThe first number in the range of IDs used forDockableFrameevents.static intREGISTRATION_EVENT_LASTThe last number in the range of IDs used forDockableFrameevents.static intREGISTRATION_REMOVEDThis event is delivered when the registered object is removed.
-
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 anRegistrationEventobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetContext()intgetId()java.lang.ObjectgetKey()java.lang.ObjectgetObject()java.lang.StringtoString()
-
-
-
Field Detail
-
REGISTRATION_EVENT_FIRST
public static final int REGISTRATION_EVENT_FIRST
The first number in the range of IDs used forDockableFrameevents.- See Also:
- Constant Field Values
-
REGISTRATION_EVENT_LAST
public static final int REGISTRATION_EVENT_LAST
The last number in the range of IDs used forDockableFrameevents.- 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 anRegistrationEventobject.- Parameters:
source- theRegistrationobject that originated the eventid- an integer indicating the type of event
-
-