public abstract class SingleThreadedEventListener extends Object implements AWTEventListener
Window.show generates WINDOW_OPENED (and possibly hierarchy and other events) to any listeners from whatever thread the method was invoked on.
NOTE: 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 and Description |
---|
SingleThreadedEventListener() |
Modifier and Type | Method and Description |
---|---|
void |
eventDispatched(AWTEvent event)
Event reception callback.
|
protected void |
processDeferredEvents()
Process 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 threadsafe.
|
public void eventDispatched(AWTEvent event)
eventDispatched
in interface AWTEventListener
protected void processDeferredEvents()
protected abstract void processEvent(AWTEvent event)
Abbot is hosted on