Additional top-level classes in compilation unit: ComponentEvtDispatchThread, EventQueueMonitorItem.
EventQueueMonitor class provides key core functionality for Assistive
Technologies (and other system-level technologies that need some of the same
things that Assistive Technology needs).
AWTEventMonitor, SwingEventMonitor
| Modifier and Type | Field and Description |
|---|---|
| private static ComponentEvtDispatchThread | cedt
Class that tells us what the component event dispatch thread is. |
| pack-priv static EventQueueMonitorItem | componentEventQueue
Queue that holds events for later processing. |
| pack-priv static Object | componentEventQueueLock
Handle the synchronization between the thing that populates the
component event dispatch thread ( |
| pack-priv static Component | |
| pack-priv static Point | |
| pack-priv static boolean | guiInitialized
Class variable stating whether the GUI subsystem has been initialized or not. |
| pack-priv static GUIInitializedListener | |
| pack-priv static MouseMotionListener | |
| pack-priv static TopLevelWindowListener | |
| pack-priv static Vector | |
| pack-priv static Window |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | addGUIInitializedListener(GUIInitializedListener
the listener to add l)Adds the specified listener to be notified when the GUI subsystem is initialized. |
| pack-priv static void | addTopLevelWindow(Component
the Container c)Add a Container to the list of top-level containers in the cache. |
| public static void | addTopLevelWindowListener(TopLevelWindowListener
the listener to add l)Adds the specified listener to be notified when a top level window is created or destroyed. |
| public void | eventDispatched(AWTEvent theEvent)
Implements java. Handle events as a result of registering a listener
on the |
| public static Accessible | Returns: theAccessible at the specified pointthe point to be accessed p)Obtain the |
| pack-priv static synchronized Component | Returns: the Component at the given Point on the screen in the given Container -- can be null if no Component is at that Pointthe Container to search c, Point the Point in screen coordinates p)Return the Component at the given Point on the screen in the given Container. |
| public static Point | Returns: the last recorded position of the mouse in screen coordinatesReturn the last recorded position of the mouse in screen coordinates. |
| pack-priv static synchronized Component | |
| public static Window[] | Returns: an array of top levelWindows in use in the Java Virtual MachineReturn the list of top level Windows in use in the Java Virtual Machine. |
| public static Window | Returns: the top levelWindow that currently has keyboard focusReturn the top level |
| public static boolean | Returns: true if the GUI subsystem has been initializedSays whether the GUI subsystem has been initialized or not. |
| public static void | |
| pack-priv static void | maybeNotifyAssistiveTechnologies()
Assisitive technologies that have
registered a |
| pack-priv static void | |
| pack-priv static void | queueComponentEvent(ComponentEvent
a e)ComponentEventQueue up a |
| public static void | removeGUIInitializedListener(GUIInitializedListener
the listener to remove l)Removes the specified listener to be notified when the GUI subsystem is initialized. |
| pack-priv static void | removeTopLevelWindow(Window w)
Removes a container from the list of top level containers in the cache. |
| public static void | removeTopLevelWindowListener(TopLevelWindowListener
the listener to remove l)Removes the specified listener to be notified when a top level window is created or destroyed. |
| pack-priv static void | updateCurrentMousePosition(MouseEvent
the MouseEvent that holds the new mouse position. mouseEvent)Update current mouse position. |
| cedt | back to summary |
|---|---|
| private static ComponentEvtDispatchThread cedt Class that tells us what the component event dispatch thread is. | |
| componentEventQueue | back to summary |
|---|---|
| pack-priv static EventQueueMonitorItem componentEventQueue Queue that holds events for later processing. | |
| componentEventQueueLock | back to summary |
|---|---|
| pack-priv static Object componentEventQueueLock Handle the synchronization between the thing that populates the
component event dispatch thread ( | |
| currentMouseComponent | back to summary |
|---|---|
| pack-priv static Component currentMouseComponent | |
| currentMousePosition | back to summary |
|---|---|
| pack-priv static Point currentMousePosition | |
| guiInitialized | back to summary |
|---|---|
| pack-priv static boolean guiInitialized Class variable stating whether the GUI subsystem has been initialized or not.
| |
| guiInitializedListener | back to summary |
|---|---|
| pack-priv static GUIInitializedListener guiInitializedListener | |
| mouseMotionListener | back to summary |
|---|---|
| pack-priv static MouseMotionListener mouseMotionListener | |
| topLevelWindowListener | back to summary |
|---|---|
| pack-priv static TopLevelWindowListener topLevelWindowListener | |
| topLevelWindows | back to summary |
|---|---|
| pack-priv static Vector<Container> topLevelWindows | |
| topLevelWindowWithFocus | back to summary |
|---|---|
| pack-priv static Window topLevelWindowWithFocus | |
| EventQueueMonitor | back to summary |
|---|---|
| public EventQueueMonitor() Create a new | |
| addGUIInitializedListener | back to summary |
|---|---|
| public static void addGUIInitializedListener(GUIInitializedListener l) Adds the specified listener to be notified when the GUI subsystem
is initialized. Assistive technologies should get the results of
| |
| addTopLevelWindow | back to summary |
|---|---|
| pack-priv static void addTopLevelWindow(Component c) Add a Container to the list of top-level containers in the cache. This follows the object's hierarchy up the tree until it finds the top most parent. If the parent is not already in the list of Containers, it adds it to the list.
| |
| addTopLevelWindowListener | back to summary |
|---|---|
| public static void addTopLevelWindowListener(TopLevelWindowListener l) Adds the specified listener to be notified when a top level window is created or destroyed.
| |
| eventDispatched | back to summary |
|---|---|
| public void eventDispatched(AWTEvent theEvent) Implements java. Handle events as a result of registering a listener
on the | |
| getAccessibleAt | back to summary |
|---|---|
| public static Accessible getAccessibleAt(Point p) Obtain the
| |
| getComponentAt | back to summary |
|---|---|
| pack-priv static synchronized Component getComponentAt(Container c, Point p) Return the Component at the given Point on the screen in the given Container. | |
| getCurrentMousePosition | back to summary |
|---|---|
| public static Point getCurrentMousePosition() Return the last recorded position of the mouse in screen coordinates.
| |
| getShowingComponentAt | back to summary |
|---|---|
| pack-priv static synchronized Component getShowingComponentAt(Container c, int x, int y) Internal test | |
| getTopLevelWindows | back to summary |
|---|---|
| public static Window[] getTopLevelWindows() Return the list of top level Windows in use in the Java Virtual Machine.
| |
| getTopLevelWindowWithFocus | back to summary |
|---|---|
| public static Window getTopLevelWindowWithFocus() Return the top level
| |
| isGUIInitialized | back to summary |
|---|---|
| public static boolean isGUIInitialized() Says whether the GUI subsystem has been initialized or not.
If this returns true, the assistive technology can freely
create GUI component instances. If the return value is false,
the assistive technology should register a
| |
| maybeInitialize | back to summary |
|---|---|
| public static void maybeInitialize() Tell the | |
| maybeNotifyAssistiveTechnologies | back to summary |
|---|---|
| pack-priv static void maybeNotifyAssistiveTechnologies() Assisitive technologies that have
registered a
| |
| processEvent | back to summary |
|---|---|
| pack-priv static void processEvent(AWTEvent theEvent) Process the event. This maintains the event cache in addition to calling all the registered listeners. Note The events that come through here are from peered Components.
| |
| queueComponentEvent | back to summary |
|---|---|
| pack-priv static void queueComponentEvent(ComponentEvent e) Queue up a
| |
| removeGUIInitializedListener | back to summary |
|---|---|
| public static void removeGUIInitializedListener(GUIInitializedListener l) Removes the specified listener to be notified when the GUI subsystem is initialized.
| |
| removeTopLevelWindow | back to summary |
|---|---|
| pack-priv static void removeTopLevelWindow(Window w) Removes a container from the list of top level containers in the cache. | |
| removeTopLevelWindowListener | back to summary |
|---|---|
| public static void removeTopLevelWindowListener(TopLevelWindowListener l) Removes the specified listener to be notified when a top level window is created or destroyed.
| |
| updateCurrentMousePosition | back to summary |
|---|---|
| pack-priv static void updateCurrentMousePosition(MouseEvent mouseEvent) Update current mouse position.
| |