|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EventProducer
An EventProducer is capable of dispatching events to listeners who have registered to receive those events.
| Method Summary | |
|---|---|
void |
addEventListener(java.lang.String event,
java.lang.Object callbackObject,
java.lang.String callbackMethod)
Adds an event listener to this EventProducer. |
void |
dispatchEvent(java.lang.String eventName,
Event evt)
Has the event producer dispatch an event. |
java.util.Map<java.lang.String,java.lang.Class<? extends Event>> |
getEventClassMap()
Returns a Map of declared events dispatched by the EventProducer keyed by event name and mapped to the event class that is dispatched. |
void |
removeEventListener(java.lang.String event,
java.lang.Object callbackObject,
java.lang.String callbackMethod)
Deregisters an event listener for an event from this EventProducer. |
| Method Detail |
|---|
void addEventListener(java.lang.String event,
java.lang.Object callbackObject,
java.lang.String callbackMethod)
event - - the event the listener is interested incallbackObject - - the object which will receive the event notificationcallbackMethod - - the method that will be invoked on callbackObject for the event notification
void removeEventListener(java.lang.String event,
java.lang.Object callbackObject,
java.lang.String callbackMethod)
event - - the event to longer be listened forcallbackObject - - the object which was receiving the event notificationcallbackMethod - - the method that was invoked on callbackObject for the event notificationjava.util.Map<java.lang.String,java.lang.Class<? extends Event>> getEventClassMap()
void dispatchEvent(java.lang.String eventName,
Event evt)
eventName - - the name of the event to dispatchevt - - the event Object for the event
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||