|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.swing.listener.EventDispatchThreadedEventListener
@ThreadSafe public abstract class EventDispatchThreadedEventListener
Understands a
that ensures all events are handled on the event dispatch
thread.
AWTEventListener
NOTE from Abbot: Applet runners may run several simultaneous event dispatch threads when displaying multiple applets simultaneously. If this listener is installed in the parent context of those dispatch threads, it will be invoked on each of those threads, possibly simultaneously.
Constructor Summary | |
---|---|
EventDispatchThreadedEventListener()
|
Method Summary | |
---|---|
void |
eventDispatched(AWTEvent event)
If this method is called in the event dispatch thread, it processes the given event and the queued ones. |
protected void |
processDeferredEvents()
Processes any events that were generated off the event queue but not immediately handled. |
protected abstract void |
processEvent(AWTEvent event)
This method is not protected by any synchronization locks (nor should it be); in the presence of multiple simultaneous event dispatch threads, the listener must be thread-safe. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventDispatchThreadedEventListener()
Method Detail |
---|
public void eventDispatched(AWTEvent event)
eventDispatched
in interface AWTEventListener
event
- the event to process.protected void processDeferredEvents()
protected abstract void processEvent(AWTEvent event)
event
- the event to process.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |