API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt. EventQueue View Source
Author(s)
Thomas Ball
Fred Ecks
David Mendenhall
Since
1.1
Version
1.105, 07/11/06
Serial
Hierarchy
 Object
      EventQueue
Implements
Subclasses
Description
public class EventQueue
  EventQueue is a platform-independent class that queues events, both from the underlying peer classes and from trusted application classes.
See also:   
Constructors
public EventQueue ()
Methods
Hide/Show inherited methods
pack-privatefinal void detachDispatchThread ()
protected void dispatchEvent (AWTEvent event)
  Dispatches an event.
publicstatic AWTEvent getCurrentEvent ()
  Returns the the event currently being dispatched by the EventQueue associated with the calling thread.
pack-privatefinal EventDispatchThread getDispatchThread ()
publicstatic long getMostRecentEventTime ()
  Returns the timestamp of the most recent event that had a timestamp, and that was dispatched from the EventQueue associated with the calling thread.
pack-privatesynchronized long getMostRecentEventTimeEx ()
 
public AWTEvent getNextEvent () throws InterruptedException
  Removes an event from the EventQueue and returns it.
pack-private AWTEvent getNextEvent (int id) throws InterruptedException
pack-privatefinal void initDispatchThread ()
publicstatic void invokeAndWait (Runnable runnable) throws InterruptedException InvocationTargetException
  Causes runnable to have its run method called in the dispatch thread of the system EventQueue.
publicstatic void invokeLater (Runnable runnable)
  Causes runnable to have its run method called in the dispatch thread of the system EventQueue.
publicstatic boolean isDispatchThread ()
  Returns true if the calling thread is the current AWT EventQueue's dispatch thread.
publicsynchronized AWTEvent peekEvent ()
  Returns the first event on the EventQueue without removing it.
publicsynchronized AWTEvent peekEvent (int id)
  Returns the first event with the specified id, if any.
protected void pop () throws EmptyStackException
  Stops dispatching events using this EventQueue.
public void postEvent (AWTEvent theEvent)
  Posts a 1.1-style event to the EventQueue.
pack-privatefinal void postEventPrivate (AWTEvent theEvent)
  Posts a 1.1-style event to the EventQueue.
publicsynchronized void push (EventQueue newEventQueue)
  Replaces the existing EventQueue with the specified one.
pack-privatefinal void removeSourceEvents (Object source, boolean removeAllEvents)
pack-privatestatic void setCurrentEventAndMostRecentTime (AWTEvent e)
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar