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
 


Variable Index

 o actionListener
The current list of registered ActionListener classes.
 o adjustmentListener
The current list of registered AdjustmentListener classes.
 o awtListener
The actual listener that is installed on the component instances.
 o componentListener
The current list of registered ComponentListener classes.
 o componentWithFocus
The current component with keyboard focus.
 o containerListener
The current list of registered ContainerListener classes.
 o focusListener
The current list of registered FocusListener classes.
 o itemListener
The current list of registered ItemListener classes.
 o keyListener
The current list of registered KeyListener classes.
 o mouseListener
The current list of registered MouseListener classes.
 o mouseMotionListener
The current list of registered MouseMotionListener classes.
 o textListener
The current list of registered TextListener classes.
 o windowListener
The current list of registered WindowListener classes.

Constructor Index

 o AWTEventMonitor()

Method Index

 o addActionListener(ActionListener)
Adds the specified listener to receive all Action events on each component instance in the Java Virtual Machine when they occur.
 o addAdjustmentListener(AdjustmentListener)
Adds the specified listener to receive all Adjustment events on each component instance in the Java Virtual Machine when they occur.
 o addComponentListener(ComponentListener)
Adds the specified listener to receive all Component events on each component instance in the Java Virtual Machine as they occur.
 o addContainerListener(ContainerListener)
Adds the specified listener to receive all Container events on each component instance in the Java Virtual Machine as they occur.
 o addFocusListener(FocusListener)
Adds the specified listener to receive all Focus events on each component instance in the Java Virtual Machine when they occur.
 o addItemListener(ItemListener)
Adds the specified listener to receive all Item events on each component instance in the Java Virtual Machine when they occur.
 o addKeyListener(KeyListener)
Adds the specified listener to receive all Key events on each component instance in the Java Virtual Machine when they occur.
 o addMouseListener(MouseListener)
Adds the specified listener to receive all Mouse events on each component instance in the Java Virtual Machine when they occur.
 o addMouseMotionListener(MouseMotionListener)
Adds the specified listener to receive all MouseMotion events on each component instance in the Java Virtual Machine when they occur.
 o addTextListener(TextListener)
Adds the specified listener to receive all Text events on each component instance in the Java Virtual Machine when they occur.
 o addWindowListener(WindowListener)
Adds the specified listener to receive all Window events on each component instance in the Java Virtual Machine when they occur.
 o getComponentWithFocus()
Returns the component that currently has keyboard focus.
 o removeActionListener(ActionListener)
Removes the specified listener so it no longer receives Action events when they occur.
 o removeAdjustmentListener(AdjustmentListener)
Removes the specified listener so it no longer receives Adjustment events when they occur.
 o removeComponentListener(ComponentListener)
Removes the specified listener so it no longer receives Component events when they occur.
 o removeContainerListener(ContainerListener)
Removes the specified listener so it no longer receives Container events when they occur.
 o removeFocusListener(FocusListener)
Removes the specified listener so it no longer receives Focus events when they occur.
 o removeItemListener(ItemListener)
Removes the specified listener so it no longer receives Item events when they occur.
 o removeKeyListener(KeyListener)
Removes the specified listener so it no longer receives Key events when they occur.
 o removeMouseListener(MouseListener)
Removes the specified listener so it no longer receives Mouse events when they occur.
 o removeMouseMotionListener(MouseMotionListener)
Removes the specified listener so it no longer receives Motion events when they occur.
 o removeTextListener(TextListener)
Removes the specified listener so it no longer receives Text events when they occur.
 o removeWindowListener(WindowListener)
Removes the specified listener so it no longer receives Window events when they occur.

Variables

 o componentWithFocus
 protected static Component componentWithFocus
The current component with keyboard focus.

See Also:
getComponentWithFocus
 o componentListener
 protected static ComponentListener componentListener
The current list of registered ComponentListener classes.

See Also:
addComponentListener, removeComponentListener
 o containerListener
 protected static ContainerListener containerListener
The current list of registered ContainerListener classes.

See Also:
addContainerListener, removeContainerListener
 o focusListener
 protected static FocusListener focusListener
The current list of registered FocusListener classes.

See Also:
addFocusListener, removeFocusListener
 o keyListener
 protected static KeyListener keyListener
The current list of registered KeyListener classes.

See Also:
addKeyListener, removeKeyListener
 o mouseListener
 protected static MouseListener mouseListener
The current list of registered MouseListener classes.

See Also:
addMouseListener, removeMouseListener
 o mouseMotionListener
 protected static MouseMotionListener mouseMotionListener
The current list of registered MouseMotionListener classes.

See Also:
addMouseMotionListener, removeMouseMotionListener
 o windowListener
 protected static WindowListener windowListener
The current list of registered WindowListener classes.

See Also:
addWindowListener, removeWindowListener
 o actionListener
 protected static ActionListener actionListener
The current list of registered ActionListener classes.

See Also:
addActionListener, removeActionListener
 o adjustmentListener
 protected static AdjustmentListener adjustmentListener
The current list of registered AdjustmentListener classes.

See Also:
addAdjustmentListener, removeAdjustmentListener
 o itemListener
 protected static ItemListener itemListener
The current list of registered ItemListener classes.

See Also:
addItemListener, removeItemListener
 o textListener
 protected static TextListener textListener
The current list of registered TextListener classes.

See Also:
addTextListener, removeTextListener
 o 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

Constructors

 o AWTEventMonitor
 public AWTEventMonitor()

Methods

 o getComponentWithFocus
 public static Component getComponentWithFocus()
Returns the component that currently has keyboard focus. The return value can be null.

 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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