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