|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.EventQueue | +--com.sun.java.accessibility.util.EventQueueMonitor
The EventQueueMonitor is an EventQueue subclass that provides key core functionality for Assistive Technologies (and other system-level technologies that need some of the same things that Assistive Technology needs).
For JDK1.1, this class is meant to be automatically loaded by the Toolkit when it starts up. In order for this to happen, this class needs to be in the CLASSPATH environment variable and the following line needs to be in the awt.properties file:
AWT.EventQueueClass=com.sun.java.accessibility.util.EventQueueMonitor
For JDK1.1, this class also looks for the AWT.assistive_technologies property in the awt.properties file. This is a comma-separated list of classes that represent assistive technologies that should run in the same Java Virtual Machine as the application. If this property exists, this class will load each class in the list and create a single instance of it in the current thread.
This class is commonly used with one or two other classes, AWTEventMonitor and SwingEventMonitor, that track all events generated by AWT obects and Swing objects respectively.
For JDK1.2, EventQueueMonitor merely needs to be in the CLASSPATH. The best way for this to happen is to place the jaccess.jar file in the standard extensions directory (e.g., $JDKHOME/jre/lib/ext). In addition, the specification of the assistive technologies should no longer be in awt.properties for JDK1.2. Instead, the assistive technologies should be specified using the 'assistive_technologies' property in $JDKHOME/jre/lib/accessibility.properties.
AWTEventMonitor
,
SwingEventMonitor
Constructor Summary | |
EventQueueMonitor()
Create a new EventQueueMonitor instance. |
Method Summary | |
static void |
addGUIInitializedListener(GUIInitializedListener l)
Adds the specified listener to be notified when the GUI subsystem is initialized. |
static void |
addTopLevelWindowListener(TopLevelWindowListener l)
Adds the specified listener to be notified when a top level window is created or destroyed. |
static javax.accessibility.Accessible |
getAccessibleAt(java.awt.Point p)
Obtain the Accessible object at the given point on the Screen. |
static java.awt.Point |
getCurrentMousePosition()
Return the last recorded position of the mouse in screen coordinates. |
static java.awt.Window[] |
getTopLevelWindows()
Return the list of top level Windows in use in the Java Virtual Machine. |
static java.awt.Window |
getTopLevelWindowWithFocus()
Return the top level Window that currently has keyboard focus. |
static boolean |
isGUIInitialized()
Says whether the GUI subsystem has been initialized or not. |
void |
postEvent(java.awt.AWTEvent theEvent)
Post a 1.1-style event to the EventQueue. |
static void |
removeGUIInitializedListener(GUIInitializedListener l)
Removed the specified listener to be notified when the GUI subsystem is initialized. |
static void |
removeTopLevelWindowListener(TopLevelWindowListener l)
Removed the specified listener to be notified when a top level window is created or destroyed. |
Methods inherited from class java.awt.EventQueue |
dispatchEvent,
getNextEvent,
invokeAndWait,
invokeLater,
isDispatchThread,
peekEvent,
peekEvent,
pop,
push |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public EventQueueMonitor()
Method Detail |
public void postEvent(java.awt.AWTEvent theEvent)
theEvent
- the AWTEventpublic static javax.accessibility.Accessible getAccessibleAt(java.awt.Point p)
public static boolean isGUIInitialized()
addGUIInitializedListener(com.sun.java.accessibility.util.GUIInitializedListener)
public static void addGUIInitializedListener(GUIInitializedListener l)
l
- the listener to addisGUIInitialized()
,
removeTopLevelWindowListener(com.sun.java.accessibility.util.TopLevelWindowListener)
public static void removeGUIInitializedListener(GUIInitializedListener l)
l
- the listener to removeaddGUIInitializedListener(com.sun.java.accessibility.util.GUIInitializedListener)
public static void addTopLevelWindowListener(TopLevelWindowListener l)
l
- the listener to addremoveTopLevelWindowListener(com.sun.java.accessibility.util.TopLevelWindowListener)
public static void removeTopLevelWindowListener(TopLevelWindowListener l)
l
- the listener to removeaddTopLevelWindowListener(com.sun.java.accessibility.util.TopLevelWindowListener)
public static java.awt.Point getCurrentMousePosition()
public static java.awt.Window[] getTopLevelWindows()
public static java.awt.Window getTopLevelWindowWithFocus()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |