|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.larsan.urd.util.EventQueue
An abstract base class for asynchronouns event dispatching. This class is threaded and must be
started and stopped.
| Constructor Summary | |
EventQueue()
|
|
EventQueue(Executor exec)
|
|
| Method Summary | |
protected abstract void |
deliverEvent(java.lang.Object event,
java.lang.Object listener)
Invoke an event on a listener. |
protected abstract java.util.List |
getListeners()
Get a list of listeners. |
protected void |
queueEvent(java.lang.Object event)
Put an event in the queue. |
void |
run()
Run event queue. |
void |
start(java.lang.String threadName)
Start event queue with a thread name. |
void |
stop()
Stop this event queue. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EventQueue(Executor exec)
public EventQueue()
| Method Detail |
protected abstract java.util.List getListeners()
protected abstract void deliverEvent(java.lang.Object event,
java.lang.Object listener)
queueEvent method and from
the getListeners method.
event - Event object to deliverlistener - Listener to deliver event toprotected void queueEvent(java.lang.Object event)
event - Event to queuepublic void start(java.lang.String threadName)
threadName - Name of the thread to run this queuepublic void stop()
public void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||