|public class java.awt
Java SE 6
EventQueueis a platform-independent class that queues events, both from the underlying peer classes and from trusted application classes.
It encapsulates asynchronous event dispatch machinery which
extracts events from the queue and dispatches them by calling
EventQueue with the event to be dispatched
as an argument. The particular behavior of this machinery is
implementation-dependent. The only requirements are that events
which were actually enqueued to this queue (note that events
being posted to the
EventQueue can be coalesced)
AWTEventA is enqueued to the
AWTEventB then event B will not be dispatched before event A.
Some browsers partition applets in different code bases into
separate contexts, and establish walls between these contexts.
In such a scenario, there will be one
per context. Other browsers place all applets into the same
context, implying that there will be only a single, global
EventQueue for all applets. This behavior is
implementation-dependent. Consult your browser's documentation
for more information.
For information on the threading issues of the event dispatch machinery, see AWT Threading Issues.
|protected void||dispatchEvent(AWTEvent event) Details
Dispatches an event. The manner in which the event is dispatched depends upon the type of the event and the type of the event's source object:
|public static void||invokeAndWait(Runnable runnable) throws InterruptedException, InvocationTargetException Details
|public static void||invokeLater(Runnable runnable) Details
|public AWTEvent||peekEvent() Details
Returns the first event on the
|public AWTEvent||peekEvent(int id) Details
Returns the first event with the specified id, if any.
|protected void||pop() throws EmptyStackException Details
Stops dispatching events using this
Warning: To avoid deadlock, do not declare this method synchronized in a subclass.
|public void||postEvent(AWTEvent theEvent) Details
Posts a 1.1-style event to the
|public void||push(EventQueue newEventQueue) Details
|public static AWTEvent||getCurrentEvent() Details
Returns the the event currently being dispatched by the
|public static boolean||isDispatchThread() Details
Returns true if the calling thread is the current AWT
|public static long||getMostRecentEventTime() Details
Returns the timestamp of the most recent event that had a timestamp, and that was dispatched from the
|public AWTEvent||getNextEvent() throws InterruptedException Details
Removes an event from the
|About DocWeb · Bundles · Export · Export All||Top 10 · Statistics · Login|
Java SE 6· Copyright © 1994-2013 Sun Microsystems, Inc.
All rights reserved. Use is subject to license terms