|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An KeyedEventBranch represents a group of events to which listeners may subscribe. Each KeyedEventBranch is identified by a slash delimited event key. Listeners may subscribe to events which match this key.
Each instance of KeyedEventBranch is identified by an event key. The root of the event key hierarchy is "*". The root key "*" identifies all events and is implicitly or explicitly included in all event keys. For example, if the set of event keys includes
Level 1: "*"
Level 2: "Manager", "PM"
Level 3: "Manager/STARTED", "Manager/SHUTDOWN", "PM/CREATE", "PM/DELETE"
Level 4: "Manager/STARTED/PM", "Manager/SHUTDOWN/PM", "Manager/STARTED/LockManager",
"PM/CREATE/Customer", "PM/DELETE/Customer"
See the KeyedEventDispatcher for implementation of the Event Key Structure.
Supported API: true
Extendable: true
KeyedEventDispatcher
,
StandardKeyedEventBranch
Field Summary | |
static String |
EVENT_CLASS_NAME
Property name for the event class. |
static String |
EVENT_TYPE
Property name for the event type. |
static String |
TOSTRING_DELIMITER
The delimiter for the toString representation. |
static String |
TOSTRING_PREFIX
The prefix for the toString representation. |
Method Summary | |
void |
addEventListener(KeyedEventListener listener)
Supported API: true |
void |
dispatchEvent(Object eventObject)
Supported API: true |
void |
dispatchMultiObjectEvent(Object eventObject)
Supported API: true |
void |
dispatchVetoableEvent(Object eventObject)
Synchronously dispatch event notification to all listeners. |
void |
dispatchVetoableMultiObjectEvent(Object eventObject)
Synchronously dispatch event notification to all listeners. |
String |
getEventClassName()
Gets the value of the attribute: eventClassName; Return the fully qualified class name for the event, e.g. |
String |
getEventKey()
Gets the value of the attribute: eventKey; Return the event key for this branch. |
String |
getEventType()
Gets the value of the attribute: eventType; The type of the event, e.g. |
void |
removeAllEventsListener()
Supported API: false |
void |
removeEventListener(KeyedEventListener listener)
Supported API: true |
void |
setEventClassName(String a_EventClassName)
Sets the value of the attribute: eventClassName; Return the fully qualified class name for the event, e.g. |
void |
setEventType(String a_EventType)
Sets the value of the attribute: eventType; The type of the event, e.g. |
Field Detail |
public static final String EVENT_CLASS_NAME
public static final String EVENT_TYPE
public static final String TOSTRING_PREFIX
public static final String TOSTRING_DELIMITER
Method Detail |
public String getEventKey()
public String getEventType()
public void setEventType(String a_EventType) throws PropertyVetoException
a_EventType
-
PropertyVetoException
public String getEventClassName()
public void setEventClassName(String a_EventClassName) throws PropertyVetoException
a_EventClassName
-
PropertyVetoException
public void addEventListener(KeyedEventListener listener)
listener
- public void removeEventListener(KeyedEventListener listener)
listener
- public void removeAllEventsListener()
public void dispatchEvent(Object eventObject)
eventObject
- public void dispatchVetoableEvent(Object eventObject) throws WTException
eventObject
-
WTException
public void dispatchMultiObjectEvent(Object eventObject)
eventObject
- public void dispatchVetoableMultiObjectEvent(Object eventObject) throws WTException
eventObject
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |