All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.accessibility.util.AWTEventMonitor
java.lang.Object
|
+----com.sun.java.accessibility.util.AWTEventMonitor
- public class AWTEventMonitor
- extends Object
The AWTEventMonitor implements a suite of listeners that are
conditionally installed on every AWT component instance in the Java
Virtual Machine. The events captured by these listeners are made
available through a unified set of listeners supported by AWTEventMonitor.
With this, all the individual events on each of the AWT component
instances are funnelled into one set of listeners broken down by category
(see EventID
for the categories).
This class depends upon EventQueueMonitor, which provides the base
level support for capturing the top-level containers as they are created.
In order for this to happen, the EventQueueMonitor 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
-
actionListener
-
The current list of registered ActionListener classes.
-
adjustmentListener
-
The current list of registered AdjustmentListener classes.
-
awtListener
- The actual listener that is installed on the component instances.
-
componentListener
-
The current list of registered ComponentListener classes.
-
componentWithFocus
- The current component with keyboard focus.
-
containerListener
-
The current list of registered ContainerListener classes.
-
focusListener
-
The current list of registered FocusListener classes.
-
itemListener
-
The current list of registered ItemListener classes.
-
keyListener
-
The current list of registered KeyListener classes.
-
mouseListener
-
The current list of registered MouseListener classes.
-
mouseMotionListener
-
The current list of registered MouseMotionListener classes.
-
textListener
-
The current list of registered TextListener classes.
-
windowListener
-
The current list of registered WindowListener classes.
-
AWTEventMonitor()
-
-
addActionListener(ActionListener)
- Adds the specified listener to receive all Action events on each
component instance in the Java Virtual Machine when they occur.
-
addAdjustmentListener(AdjustmentListener)
- Adds the specified listener to receive all Adjustment events on
each component instance in the Java Virtual Machine when they occur.
-
addComponentListener(ComponentListener)
- Adds the specified listener to receive all Component events on each
component instance in the Java Virtual Machine as they occur.
-
addContainerListener(ContainerListener)
- Adds the specified listener to receive all Container events on each
component instance in the Java Virtual Machine as they occur.
-
addFocusListener(FocusListener)
- Adds the specified listener to receive all Focus events on each
component instance in the Java Virtual Machine when they occur.
-
addItemListener(ItemListener)
- Adds the specified listener to receive all Item events on each
component instance in the Java Virtual Machine when they occur.
-
addKeyListener(KeyListener)
- Adds the specified listener to receive all Key events on each
component instance in the Java Virtual Machine when they occur.
-
addMouseListener(MouseListener)
- Adds the specified listener to receive all Mouse events on each
component instance in the Java Virtual Machine when they occur.
-
addMouseMotionListener(MouseMotionListener)
- Adds the specified listener to receive all MouseMotion events on
each component instance in the Java Virtual Machine when they occur.
-
addTextListener(TextListener)
- Adds the specified listener to receive all Text events on each
component instance in the Java Virtual Machine when they occur.
-
addWindowListener(WindowListener)
- Adds the specified listener to receive all Window events on each
component instance in the Java Virtual Machine when they occur.
-
getComponentWithFocus()
- Returns the component that currently has keyboard focus.
-
removeActionListener(ActionListener)
- Removes the specified listener so it no longer receives Action events
when they occur.
-
removeAdjustmentListener(AdjustmentListener)
- Removes the specified listener so it no longer receives Adjustment
events when they occur.
-
removeComponentListener(ComponentListener)
- Removes the specified listener so it no longer receives Component
events when they occur.
-
removeContainerListener(ContainerListener)
- Removes the specified listener so it no longer receives Container
events when they occur.
-
removeFocusListener(FocusListener)
- Removes the specified listener so it no longer receives Focus events
when they occur.
-
removeItemListener(ItemListener)
- Removes the specified listener so it no longer receives Item events
when they occur.
-
removeKeyListener(KeyListener)
- Removes the specified listener so it no longer receives Key events
when they occur.
-
removeMouseListener(MouseListener)
- Removes the specified listener so it no longer receives Mouse events
when they occur.
-
removeMouseMotionListener(MouseMotionListener)
- Removes the specified listener so it no longer receives Motion events
when they occur.
-
removeTextListener(TextListener)
- Removes the specified listener so it no longer receives Text events
when they occur.
-
removeWindowListener(WindowListener)
- Removes the specified listener so it no longer receives Window events
when they occur.
componentWithFocus
protected static Component componentWithFocus
- The current component with keyboard focus.
- See Also:
- getComponentWithFocus
componentListener
protected static ComponentListener componentListener
- The current list of registered ComponentListener classes.
- See Also:
- addComponentListener, removeComponentListener
containerListener
protected static ContainerListener containerListener
- The current list of registered ContainerListener classes.
- See Also:
- addContainerListener, removeContainerListener
focusListener
protected static FocusListener focusListener
- The current list of registered FocusListener classes.
- See Also:
- addFocusListener, removeFocusListener
keyListener
protected static KeyListener keyListener
- The current list of registered KeyListener classes.
- See Also:
- addKeyListener, removeKeyListener
mouseListener
protected static MouseListener mouseListener
- The current list of registered MouseListener classes.
- See Also:
- addMouseListener, removeMouseListener
mouseMotionListener
protected static MouseMotionListener mouseMotionListener
- The current list of registered MouseMotionListener classes.
- See Also:
- addMouseMotionListener, removeMouseMotionListener
windowListener
protected static WindowListener windowListener
- The current list of registered WindowListener classes.
- See Also:
- addWindowListener, removeWindowListener
actionListener
protected static ActionListener actionListener
- The current list of registered ActionListener classes.
- See Also:
- addActionListener, removeActionListener
adjustmentListener
protected static AdjustmentListener adjustmentListener
- The current list of registered AdjustmentListener classes.
- See Also:
- addAdjustmentListener, removeAdjustmentListener
itemListener
protected static ItemListener itemListener
- The current list of registered ItemListener classes.
- See Also:
- addItemListener, removeItemListener
textListener
protected static TextListener textListener
- The current list of registered TextListener classes.
- See Also:
- addTextListener, removeTextListener
awtListener
protected static AWTEventListener awtListener
- 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.
- See Also:
- componentListener, containerListener, focusListener, keyListener, mouseListener, mouseMotionListener, windowListener, actionListener, adjustmentListener, itemListener, textListener
AWTEventMonitor
public AWTEventMonitor()
getComponentWithFocus
public static Component getComponentWithFocus()
- Returns the component that currently has keyboard focus. The return
value can be null.
addComponentListener
public static void addComponentListener(ComponentListener l)
- Adds the specified listener to receive all Component events on each
component 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 component instances that support this listener type.
- Parameters:
- l - the listener to add
- See Also:
- removeComponentListener
removeComponentListener
public static void removeComponentListener(ComponentListener l)
- Removes the specified listener so it no longer receives Component
events when they occur.
- Parameters:
- l - the listener to remove
- See Also:
- addComponentListener
addContainerListener
public static void addContainerListener(ContainerListener l)
- Adds the specified listener to receive all Container events on each
component 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 component instances that support this listener type.
- Parameters:
- l - the listener to add
- See Also:
- removeContainerListener
removeContainerListener
public static void removeContainerListener(ContainerListener l)
- Removes the specified listener so it no longer receives Container
events when they occur.
- Parameters:
- l - the listener to remove
- See Also:
- addContainerListener
addFocusListener
public static void addFocusListener(FocusListener l)
- Adds the specified listener to receive all Focus events on each
component instance in the Java Virtual Machine when 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 component instances that support this listener type.
- Parameters:
- l - the listener to add
- See Also:
- removeFocusListener
removeFocusListener
public static void removeFocusListener(FocusListener l)
- Removes the specified listener so it no longer receives Focus events
when they occur.
- Parameters:
- l - the listener to remove
- See Also:
- addFocusListener
addKeyListener
public static void addKeyListener(KeyListener l)
- Adds the specified listener to receive all Key events on each
component instance in the Java Virtual Machine when 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 component instances that support this listener type.
- Parameters:
- l - the listener to add
- See Also:
- removeKeyListener
removeKeyListener
public static void removeKeyListener(KeyListener l)
- Removes the specified listener so it no longer receives Key events
when they occur.
- Parameters:
- l - the listener to remove
- See Also:
- addKeyListener
addMouseListener
public static void addMouseListener(MouseListener l)
- Adds the specified listener to receive all Mouse events on each
component instance in the Java Virtual Machine when 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 component instances that support this listener type.
- Parameters:
- l - the listener to add
- See Also:
- removeMouseListener
removeMouseListener
public static void removeMouseListener(MouseListener l)
- Removes the specified listener so it no longer receives Mouse events
when they occur.
- Parameters:
- l - the listener to remove
- See Also:
- addMouseListener
addMouseMotionListener
public static void addMouseMotionListener(MouseMotionListener l)
- Adds the specified listener to receive all MouseMotion events on
each component instance in the Java Virtual Machine when 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 component instances that support this listener type.
- Parameters:
- l - the listener to add
- See Also:
- removeMouseMotionListener
removeMouseMotionListener
public static void removeMouseMotionListener(MouseMotionListener l)
- Removes the specified listener so it no longer receives Motion events
when they occur.
- Parameters:
- l - the listener to remove
- See Also:
- addMouseMotionListener
addWindowListener
public static void addWindowListener(WindowListener l)
- Adds the specified listener to receive all Window events on each
component instance in the Java Virtual Machine when 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 component instances that support this listener type.
- Parameters:
- l - the listener to add
- See Also:
- removeWindowListener
removeWindowListener
public static void removeWindowListener(WindowListener l)
- Removes the specified listener so it no longer receives Window events
when they occur.
- Parameters:
- l - the listener to remove
- See Also:
- addWindowListener
addActionListener
public static void addActionListener(ActionListener l)
- Adds the specified listener to receive all Action events on each
component instance in the Java Virtual Machine when 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 component instances that support this listener type.
- Parameters:
- l - the listener to add
- See Also:
- removeActionListener
removeActionListener
public static void removeActionListener(ActionListener l)
- Removes the specified listener so it no longer receives Action events
when they occur.
- Parameters:
- l - the listener to remove
- See Also:
- addActionListener
addAdjustmentListener
public static void addAdjustmentListener(AdjustmentListener l)
- Adds the specified listener to receive all Adjustment events on
each component instance in the Java Virtual Machine when 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 component instances that support this listener type.
- Parameters:
- l - the listener to add
- See Also:
- removeAdjustmentListener
removeAdjustmentListener
public static void removeAdjustmentListener(AdjustmentListener l)
- Removes the specified listener so it no longer receives Adjustment
events when they occur.
- Parameters:
- l - the listener to remove
- See Also:
- addAdjustmentListener
addItemListener
public static void addItemListener(ItemListener l)
- Adds the specified listener to receive all Item events on each
component instance in the Java Virtual Machine when 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 component instances that support this listener type.
- Parameters:
- l - the listener to add
- See Also:
- removeItemListener
removeItemListener
public static void removeItemListener(ItemListener l)
- Removes the specified listener so it no longer receives Item events
when they occur.
- Parameters:
- l - the listener to remove
- See Also:
- addItemListener
addTextListener
public static void addTextListener(TextListener l)
- Adds the specified listener to receive all Text events on each
component instance in the Java Virtual Machine when 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 component instances that support this listener type.
- Parameters:
- l - the listener to add
- See Also:
- removeTextListener
removeTextListener
public static void removeTextListener(TextListener l)
- Removes the specified listener so it no longer receives Text events
when they occur.
- Parameters:
- l - the listener to remove
- See Also:
- addTextListener
All Packages Class Hierarchy This Package Previous Next Index