Additional top-level class in compilation unit: _AccessibleState.
AccessibilityEventMonitor implements a PropertyChange listener
on every UI object that implements interface Accessible in the Java
Virtual Machine. The events captured by these listeners are made available
through listeners supported by AccessibilityEventMonitor.
With this, all the individual events on each of the UI object
instances are funneled into one set of PropertyChange listeners.
This class depends upon EventQueueMonitor, which provides the base
level support for capturing the top-level containers as they are created.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | AccessibilityEventMonitor.
AccessibilityEventListener is the class that does all the work for AccessibilityEventMonitor. |
| Modifier and Type | Field and Description |
|---|---|
| private static final AccessibilityEventMonitor. | accessibilityListener
The actual listener that is installed on the component instances. |
| protected static final AccessibilityListenerList | listenerList
The current list of registered |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | addPropertyChangeListener(PropertyChangeListener
the listener to add l)Adds the specified listener to receive all PropertyChange events on each UI object instance in the Java Virtual Machine as they occur. |
| public static void | removePropertyChangeListener(PropertyChangeListener
the listener to remove l)Removes the specified listener so it no longer receives PropertyChange events when they occur. |
| accessibilityListener | back to summary |
|---|---|
| private static final AccessibilityEventMonitor. The actual listener that is installed on the component instances. This listener calls the other registered listeners when an event occurs. By doing things this way, the actual number of listeners installed on a component instance is drastically reduced. | |
| listenerList | back to summary |
|---|---|
| protected static final AccessibilityListenerList listenerList The current list of registered | |
| AccessibilityEventMonitor | back to summary |
|---|---|
| public AccessibilityEventMonitor() Constructs an | |
| addPropertyChangeListener | back to summary |
|---|---|
| public static void addPropertyChangeListener(PropertyChangeListener l) Adds the specified listener to receive all PropertyChange events on each UI object instance in the Java Virtual Machine as they occur. Note This listener is automatically added to all component instances created after this method is called. In addition, it is only added to UI object instances that support this listener type.
| |
| removePropertyChangeListener | back to summary |
|---|---|
| public static void removePropertyChangeListener(PropertyChangeListener l) Removes the specified listener so it no longer receives PropertyChange events when they occur.
| |
| Access | Constructor and Description |
|---|---|
| public | AccessibilityEventListener()
Create a new instance of this class and install it on each component instance in the virtual machine that supports any of the currently registered listeners in AccessibilityEventMonitor. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | installListeners()
Installs PropertyChange listeners on all Accessible objects based upon the current topLevelWindows cached by EventQueueMonitor. |
| protected void | installListeners(Accessible
the Accessible object to add listeners to a)Installs PropertyChange listeners to the Accessible object, and it's children (so long as the object isn't of TRANSIENT state). |
| private void | installListeners(AccessibleContext ac)
Installs PropertyChange listeners to the AccessibleContext object, and it's * children (so long as the object isn't of TRANSIENT state). |
| public void | propertyChange(PropertyChangeEvent e)
Implements java. This method gets called when a bound property is changed. |
| protected void | removeListeners()
Removes PropertyChange listeners on all Accessible objects based upon the topLevelWindows cached by EventQueueMonitor. |
| protected void | removeListeners(Accessible
the Accessible object to remove listeners from a)Removes PropertyChange listeners for the given Accessible object, it's children (so long as the object isn't of TRANSIENT state). |
| private void | removeListeners(AccessibleContext ac)
Removes PropertyChange listeners for the given AccessibleContext object, it's children (so long as the object isn't of TRANSIENT state). |
| public void | topLevelWindowCreated(Window w)
Implements com. Called when top level window is created. |
| public void | topLevelWindowDestroyed(Window w)
Implements com. Called when top level window is destroyed. |
| AccessibilityEventListener | back to summary |
|---|---|
| public AccessibilityEventListener() Create a new instance of this class and install it on each component instance in the virtual machine that supports any of the currently registered listeners in AccessibilityEventMonitor. Also registers itself as a TopLevelWindowListener with EventQueueMonitor so it can automatically add new listeners to new components.
| |
| installListeners | back to summary |
|---|---|
| protected void installListeners() Installs PropertyChange listeners on all Accessible objects based upon the current topLevelWindows cached by EventQueueMonitor.
| |
| installListeners | back to summary |
|---|---|
| protected void installListeners(Accessible a) Installs PropertyChange listeners to the Accessible object, and it's children (so long as the object isn't of TRANSIENT state).
| |
| installListeners | back to summary |
|---|---|
| private void installListeners(AccessibleContext ac) Installs PropertyChange listeners to the AccessibleContext object, and it's * children (so long as the object isn't of TRANSIENT state). | |
| propertyChange | back to summary |
|---|---|
| public void propertyChange(PropertyChangeEvent e) Implements java. Doc from java. This method gets called when a bound property is changed. | |
| removeListeners | back to summary |
|---|---|
| protected void removeListeners() Removes PropertyChange listeners on all Accessible objects based upon the topLevelWindows cached by EventQueueMonitor.
| |
| removeListeners | back to summary |
|---|---|
| protected void removeListeners(Accessible a) Removes PropertyChange listeners for the given Accessible object, it's children (so long as the object isn't of TRANSIENT state).
| |
| removeListeners | back to summary |
|---|---|
| private void removeListeners(AccessibleContext ac) Removes PropertyChange listeners for the given AccessibleContext object, it's children (so long as the object isn't of TRANSIENT state). | |
| topLevelWindowCreated | back to summary |
|---|---|
| public void topLevelWindowCreated(Window w) Implements com. Called when top level window is created. | |
| topLevelWindowDestroyed | back to summary |
|---|---|
| public void topLevelWindowDestroyed(Window w) Implements com. Called when top level window is destroyed. | |