All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.accessibility.AWTEventMonitor

java.lang.Object
   |
   +----com.sun.java.accessibility.AWTEventMonitor

public class AWTEventMonitor
extends Object

The AWTEventMonitor implements a suite of listeners which are conditionally installed into every AWT 1.1.x component. The events captured by these listeners are then made available through a unified set of listeners that the AWTEventMonitor supports, thus funnelling all of the individual events on all AWT components within the VM 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 through the peering mechanism. 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.EventQueueMonitor
 

NOTE: This is a preliminary draft. The methods and name may change in future beta releases.


Variable Index

 o actionListener
 o adjustmentListener
 o awtListener
 o componentListener
 o componentWithFocus
 o containerListener
 o focusListener
 o itemListener
 o keyListener
 o mouseListener
 o mouseMotionListener
 o textListener
 o windowListener

Constructor Index

 o AWTEventMonitor()

Method Index

 o addActionListener(ActionListener)
Adds the specified listener to receive Action events when they occur.
 o addAdjustmentListener(AdjustmentListener)
Adds the specified listener to receive Adjustment events when they occur.
 o addComponentListener(ComponentListener)
Adds the specified listener to receive Component events when they occur.
 o addContainerListener(ContainerListener)
Adds the specified listener to receive Container events when they occur.
 o addFocusListener(FocusListener)
Adds the specified listener to receive Focus events when they occur.
 o addItemListener(ItemListener)
Adds the specified listener to receive Item events when they occur.
 o addKeyListener(KeyListener)
Adds the specified listener to receive Key events when they occur.
 o addMouseListener(MouseListener)
Adds the specified listener to receive Mouse events when they occur.
 o addMouseMotionListener(MouseMotionListener)
Adds the specified listener to receive Motion events when they occur.
 o addTextListener(TextListener)
Adds the specified listener to receive Text events when they occur.
 o addWindowListener(WindowListener)
Adds the specified listener to receive Window events when they occur.
 o getComponentWithFocus()
Returns the component that currently has 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
 o componentListener
 protected static ComponentListener componentListener
 o containerListener
 protected static ContainerListener containerListener
 o focusListener
 protected static FocusListener focusListener
 o keyListener
 protected static KeyListener keyListener
 o mouseListener
 protected static MouseListener mouseListener
 o mouseMotionListener
 protected static MouseMotionListener mouseMotionListener
 o windowListener
 protected static WindowListener windowListener
 o actionListener
 protected static ActionListener actionListener
 o adjustmentListener
 protected static AdjustmentListener adjustmentListener
 o itemListener
 protected static ItemListener itemListener
 o textListener
 protected static TextListener textListener
 o awtListener
 protected static AWTEventListener awtListener

Constructors

 o AWTEventMonitor
 public AWTEventMonitor()

Methods

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

 o addComponentListener
 public static void addComponentListener(ComponentListener l)
Adds the specified listener to receive Component events when they occur.

Parameters:
l - the listener to add
 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
 o addContainerListener
 public static void addContainerListener(ContainerListener l)
Adds the specified listener to receive Container events when they occur.

Parameters:
l - the listener to add
 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
 o addFocusListener
 public static void addFocusListener(FocusListener l)
Adds the specified listener to receive Focus events when they occur.

Parameters:
l - the listener to add
 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
 o addKeyListener
 public static void addKeyListener(KeyListener l)
Adds the specified listener to receive Key events when they occur.

Parameters:
l - the listener to add
 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
 o addMouseListener
 public static void addMouseListener(MouseListener l)
Adds the specified listener to receive Mouse events when they occur.

Parameters:
l - the listener to add
 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
 o addMouseMotionListener
 public static void addMouseMotionListener(MouseMotionListener l)
Adds the specified listener to receive Motion events when they occur.

Parameters:
l - the listener to add
 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
 o addWindowListener
 public static void addWindowListener(WindowListener l)
Adds the specified listener to receive Window events when they occur.

Parameters:
l - the listener to add
 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
 o addActionListener
 public static void addActionListener(ActionListener l)
Adds the specified listener to receive Action events when they occur.

Parameters:
l - the listener to add
 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
 o addAdjustmentListener
 public static void addAdjustmentListener(AdjustmentListener l)
Adds the specified listener to receive Adjustment events when they occur.

Parameters:
l - the listener to add
 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
 o addItemListener
 public static void addItemListener(ItemListener l)
Adds the specified listener to receive Item events when they occur.

Parameters:
l - the listener to add
 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
 o addTextListener
 public static void addTextListener(TextListener l)
Adds the specified listener to receive Text events when they occur.

Parameters:
l - the listener to add
 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

All Packages  Class Hierarchy  This Package  Previous  Next  Index