|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventDispatcher
The EventDispatcher interface contains the method that is called by the Event Manager to complete the event delivery to the event listener.
Clients may implement this interface.
Method Summary | |
---|---|
void |
dispatchEvent(java.lang.Object eventListener,
java.lang.Object listenerObject,
int eventAction,
java.lang.Object eventObject)
This method is called once for each listener. |
Method Detail |
---|
void dispatchEvent(java.lang.Object eventListener, java.lang.Object listenerObject, int eventAction, java.lang.Object eventObject)
The method should properly log/handle any exceptions thrown by the called listener. The EventManager will ignore any Throwable thrown by this method in order to continue delivery of the event to the next listener.
eventListener
- This listener must be cast to the appropriate listener
class for the event to be delivered and the appropriate listener method
must then be called.listenerObject
- This is the optional companion object that was
specified when the listener was added to the EventListeners object.eventAction
- This value was passed to the ListenerQueue object via one of its
dispatchEvent* method calls. It can provide information (such
as which listener method to call) so that the EventDispatcher
can complete the delivery of the event to the listener.eventObject
- This object was passed to the ListenerQueue object via one of its
dispatchEvent* method calls. This object was created by the event source and
is passed to this method. It should contain all the necessary information (such
as what event object to pass) so that this method
can complete the delivery of the event to the listener.
This is typically the actual event object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |