Java Doc for EventDispatchThread.java in  » 6.0-JDK-Core » AWT » java » awt » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » AWT » java.awt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.lang.Thread
      java.awt.EventDispatchThread

EventDispatchThread
class EventDispatchThread extends Thread (Code)
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.
author:
   Tom Ball
author:
   Amy Fowler
author:
   Fred Ecks
author:
   David Mendenhall
version:
   1.66, 05/05/07
since:
   1.1

Inner Class :class StopDispatchEvent extends AWTEvent implements ActiveEvent


Constructor Summary
 EventDispatchThread(ThreadGroup group, String name, EventQueue queue)
    

Method Summary
 voidaddEventFilter(EventFilter filter)
    
 EventQueuegetEventQueue()
    
 booleanisDispatching(EventQueue eq)
    
 voidpumpEvents(Conditional cond)
    
 voidpumpEvents(int id, Conditional cond)
    
 voidpumpEventsForFilter(Conditional cond, EventFilter filter)
    
 voidpumpEventsForFilter(int id, Conditional cond, EventFilter filter)
    
 voidpumpEventsForHierarchy(Conditional cond, Component modalComponent)
    
 voidpumpEventsForHierarchy(int id, Conditional cond, Component modalComponent)
    
 booleanpumpOneEventForFilters(int id)
    
 voidremoveEventFilter(EventFilter filter)
    
public  voidrun()
    
public  voidstopDispatching()
    
 voidstopDispatchingImpl(boolean wait)
    
public  voidstopDispatchingLater()
    


Constructor Detail
EventDispatchThread
EventDispatchThread(ThreadGroup group, String name, EventQueue queue)(Code)




Method Detail
addEventFilter
void addEventFilter(EventFilter filter)(Code)



getEventQueue
EventQueue getEventQueue()(Code)



isDispatching
boolean isDispatching(EventQueue eq)(Code)



pumpEvents
void pumpEvents(Conditional cond)(Code)



pumpEvents
void pumpEvents(int id, Conditional cond)(Code)



pumpEventsForFilter
void pumpEventsForFilter(Conditional cond, EventFilter filter)(Code)



pumpEventsForFilter
void pumpEventsForFilter(int id, Conditional cond, EventFilter filter)(Code)



pumpEventsForHierarchy
void pumpEventsForHierarchy(Conditional cond, Component modalComponent)(Code)



pumpEventsForHierarchy
void pumpEventsForHierarchy(int id, Conditional cond, Component modalComponent)(Code)



pumpOneEventForFilters
boolean pumpOneEventForFilters(int id)(Code)



removeEventFilter
void removeEventFilter(EventFilter filter)(Code)



run
public void run()(Code)



stopDispatching
public void stopDispatching()(Code)



stopDispatchingImpl
void stopDispatchingImpl(boolean wait)(Code)



stopDispatchingLater
public void stopDispatchingLater()(Code)



Fields inherited from java.lang.Thread
final public static int MAX_PRIORITY(Code)(Java Doc)
final public static int MIN_PRIORITY(Code)(Java Doc)
final public static int NORM_PRIORITY(Code)(Java Doc)

Methods inherited from java.lang.Thread
public static int activeCount()(Code)(Java Doc)
final public void checkAccess()(Code)(Java Doc)
native public int countStackFrames()(Code)(Java Doc)
native public static Thread currentThread()(Code)(Java Doc)
public void destroy()(Code)(Java Doc)
public static void dumpStack()(Code)(Java Doc)
public static int enumerate(Thread tarray)(Code)(Java Doc)
public static Map<Thread, StackTraceElement[]> getAllStackTraces()(Code)(Java Doc)
public ClassLoader getContextClassLoader()(Code)(Java Doc)
public static UncaughtExceptionHandler getDefaultUncaughtExceptionHandler()(Code)(Java Doc)
public long getId()(Code)(Java Doc)
final public String getName()(Code)(Java Doc)
final public int getPriority()(Code)(Java Doc)
public StackTraceElement[] getStackTrace()(Code)(Java Doc)
public State getState()(Code)(Java Doc)
final public ThreadGroup getThreadGroup()(Code)(Java Doc)
public UncaughtExceptionHandler getUncaughtExceptionHandler()(Code)(Java Doc)
native public static boolean holdsLock(Object obj)(Code)(Java Doc)
public void interrupt()(Code)(Java Doc)
public static boolean interrupted()(Code)(Java Doc)
final native public boolean isAlive()(Code)(Java Doc)
final public boolean isDaemon()(Code)(Java Doc)
public boolean isInterrupted()(Code)(Java Doc)
final public synchronized void join(long millis) throws InterruptedException(Code)(Java Doc)
final public synchronized void join(long millis, int nanos) throws InterruptedException(Code)(Java Doc)
final public void join() throws InterruptedException(Code)(Java Doc)
final public void resume()(Code)(Java Doc)
public void run()(Code)(Java Doc)
public void setContextClassLoader(ClassLoader cl)(Code)(Java Doc)
final public void setDaemon(boolean on)(Code)(Java Doc)
public static void setDefaultUncaughtExceptionHandler(UncaughtExceptionHandler eh)(Code)(Java Doc)
final public void setName(String name)(Code)(Java Doc)
final public void setPriority(int newPriority)(Code)(Java Doc)
public void setUncaughtExceptionHandler(UncaughtExceptionHandler eh)(Code)(Java Doc)
native public static void sleep(long millis) throws InterruptedException(Code)(Java Doc)
public static void sleep(long millis, int nanos) throws InterruptedException(Code)(Java Doc)
public synchronized void start()(Code)(Java Doc)
final public void stop()(Code)(Java Doc)
final public synchronized void stop(Throwable obj)(Code)(Java Doc)
final public void suspend()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
native public static void yield()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.