public class RegistrationEvent
extends java.util.EventObject
AWTEvent
that adds support for registration objects as the event source.Modifier and Type | Field and 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.
|
Constructor and 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. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getContext() |
int |
getId() |
java.lang.Object |
getKey() |
java.lang.Object |
getObject() |
java.lang.String |
toString() |
public static final int REGISTRATION_EVENT_FIRST
DockableFrame
events.public static final int REGISTRATION_EVENT_LAST
DockableFrame
events.public static final int REGISTRATION_ADDED
public static final int REGISTRATION_REMOVED
public static final int REGISTRATION_CLEARED
public RegistrationEvent(java.lang.Object source, int id)
source
- id
- must be equal to REGISTRATION_CLEARED.public RegistrationEvent(java.lang.Object source, int id, java.lang.Object object, java.lang.Object key, java.lang.Object context)
RegistrationEvent
object.source
- the Registration
object that originated the eventid
- an integer indicating the type of event