public class InvocationEvent extends AWTEvent
run()
method on a
Runnable
when dispatched by the AWT event dispatcher thread.Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
_notifier
The (possibly null) object whose notifyAll() method will be called
as soon as the Runnable's run() method has returned.
|
protected java.lang.Runnable |
_runnable
The Runnable whose run() method will be called.
|
ACTION_PERFORMED, ADJUSTMENT_EVENT, FOCUS_GAINED, FOCUS_LOST, GARBAGE_COLLECTION, INVOCATION_EVENT, ITEM_STATE_CHANGED, KEY_PRESSED, KEY_TYPED, LIST_SELECTION, MOUSE_EVENT, PAINT_EVENT, RESERVED_ID_MAX, SCROLL_EVENT, SYNC_EVENT, WINDOW_CLOSING, WINDOW_OPENED
Constructor and Description |
---|
InvocationEvent(java.lang.Object source_,
java.lang.Runnable runnable_)
Constructs an InvocationEvent with the specified source which
will execute the Runnable's run() method when dispatched by
the AWT dispatch thread.
|
InvocationEvent(java.lang.Object source_,
java.lang.Runnable runnable_,
java.lang.Object notifier_)
Constructs an InvocationEvent with the specified source which
will execute the Runnable's run() method when dispatched by
the AWT dispatch thread.
|
Modifier and Type | Method and Description |
---|---|
void |
dispatch()
Executes the runnable's run() method and then (if the notifier
is non-null) calls the notifier's notifyAll() method.
|
protected java.lang.Runnable _runnable
protected java.lang.Object _notifier
public InvocationEvent(java.lang.Object source_, java.lang.Runnable runnable_)
source_
- the source of this event.runnable_
- the Runnable whose run() method will be called.
when the run() method has returned.public InvocationEvent(java.lang.Object source_, java.lang.Runnable runnable_, java.lang.Object notifier_)
source_
- the source of this event.runnable_
- the Runnable whose run() method will be called.notifier_
- the object whose notifyAll() method will be called
when the run() method has returned.