Save This Page
Home » openjdk-7 » java » awt » [javadoc | source]
java.awt
class: EventDispatchThread [javadoc | source]
java.lang.Object
   java.lang.Thread
      java.awt.EventDispatchThread

All Implemented Interfaces:
    Runnable

Direct Known Subclasses:
    HeadlessEventDispatchThread

EventDispatchThread is a package-private AWT class which takes events off the EventQueue and dispatches them to the appropriate AWT components. The Thread starts a "permanent" event pump with a call to pumpEvents(Conditional) in its run() method. Event handlers can choose to block this event pump at any time, but should start a new pump (not a new EventDispatchThread) by again calling pumpEvents(Conditional). This secondary event pump will exit automatically as soon as the Condtional evaluate()s to false and an additional Event is pumped and dispatched.
Fields inherited from java.lang.Thread:
threadLocals,  inheritableThreadLocals,  parkBlocker,  MIN_PRIORITY,  NORM_PRIORITY,  MAX_PRIORITY
Constructor:
 EventDispatchThread(ThreadGroup group,
    String name,
    EventQueue queue) 
Method from java.awt.EventDispatchThread Summary:
addEventFilter,   getEventQueue,   pumpEvents,   pumpEvents,   pumpEventsForFilter,   pumpEventsForFilter,   pumpEventsForHierarchy,   pumpEventsForHierarchy,   pumpOneEventForFilters,   removeEventFilter,   run,   setEventQueue,   stopDispatching
Methods from java.lang.Thread:
activeCount,   blockedOn,   checkAccess,   clone,   countStackFrames,   currentThread,   destroy,   dumpStack,   enumerate,   getAllStackTraces,   getContextClassLoader,   getDefaultUncaughtExceptionHandler,   getId,   getName,   getPriority,   getStackTrace,   getState,   getThreadGroup,   getUncaughtExceptionHandler,   holdsLock,   interrupt,   interrupted,   isAlive,   isDaemon,   isInterrupted,   join,   join,   join,   processQueue,   resume,   run,   setContextClassLoader,   setDaemon,   setDefaultUncaughtExceptionHandler,   setName,   setPriority,   setUncaughtExceptionHandler,   sleep,   sleep,   start,   stop,   stop,   suspend,   toString,   yield
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.awt.EventDispatchThread Detail:
  void addEventFilter(EventFilter filter) 
 public synchronized EventQueue getEventQueue() 
  void pumpEvents(Conditional cond) 
  void pumpEvents(int id,
    Conditional cond) 
  void pumpEventsForFilter(Conditional cond,
    EventFilter filter) 
  void pumpEventsForFilter(int id,
    Conditional cond,
    EventFilter filter) 
  void pumpEventsForHierarchy(Conditional cond,
    Component modalComponent) 
  void pumpEventsForHierarchy(int id,
    Conditional cond,
    Component modalComponent) 
 boolean pumpOneEventForFilters(int id) 
  void removeEventFilter(EventFilter filter) 
 public  void run() 
 public synchronized  void setEventQueue(EventQueue eq) 
 public  void stopDispatching()