|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.dpml.util.EventQueue
A abstract base class that established an event queue and handles event dispatch operations for listeners declared in classes extending this base class.
Constructor Summary | |
EventQueue(Logger logger)
Creation of a new model. |
|
EventQueue(String name)
Creation of a new event queue. |
Method Summary | |
void |
enqueueEvent(EventObject event)
Enqueue an event for delivery to registered listeners unless there are no registered listeners. |
void |
enqueueEvent(EventObject event,
boolean waitForCompletion)
Enqueue an event for delivery to registered listeners unless there are no registered listeners. |
void |
terminateDispatchThread()
Terminate the dispatch thread. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EventQueue(String name)
name
- the name used to construct a logging channelpublic EventQueue(Logger logger) throws NullPointerException
logger
- the assigned logging channel
NullPointerException
- if the supplied logging channel is nullMethod Detail |
public void terminateDispatchThread()
public void enqueueEvent(EventObject event)
event
- the event object to add to the queuepublic void enqueueEvent(EventObject event, boolean waitForCompletion)
event
- the event object to add to the queuewaitForCompletion
- if TRUE the implementation will apply
the event to the event source event handler and return on
copmpletion of evetn delivery
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |