java.awt.event
Class InvocationEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--java.awt.AWTEvent
              |
              +--java.awt.event.InvocationEvent
All Implemented Interfaces:
ActiveEvent, Serializable
public class InvocationEvent
extends AWTEvent
implements ActiveEvent

An event which executes the run() method on a Runnable when dispatched by the AWT event dispatcher thread. This class can be used as a reference implementation of ActiveEvent rather than declaring a new class and defining dispatch().

Instances of this class are placed on the EventQueue by calls to invokeLater and invokeAndWait. Client code can use this fact to write replacement functions for invokeLater and invokeAndWait without writing special-case code in any AWTEventListener objects.

Since:
1.2
See Also:
ActiveEvent, EventQueue.invokeLater(java.lang.Runnable), EventQueue.invokeAndWait(java.lang.Runnable), AWTEventListener, Serialized Form

 

Field Summary

protected  boolean catchExceptions
    Set to true if dispatch() catches Exception and stores it in the exception instance variable.
static int INVOCATION_DEFAULT
    The default id for all InvocationEvents.
static int INVOCATION_FIRST
    Marks the first integer id for the range of invocation event ids.
static int INVOCATION_LAST