APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.java.accessibility.util

public Class AWTEventMonitor

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.java.accessibility.util.SwingEventMonitor
Imports
java.awt.*, java.awt.event.*, javax.swing.*, javax.swing.event.*

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 funneled 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.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
AWTEventMonitor.AWTEventsListener

AWTEventsListener is the class that does all the work for AWTEventMonitor.

Field Summary

Modifier and TypeField and Description
private static ActionListener
private static AdjustmentListener
private static final AWTEventMonitor.AWTEventsListener
awtListener

The actual listener that is installed on the component instances.

private static ComponentListener
private static Component
private static ContainerListener
private static FocusListener
private static ItemListener
private static KeyListener
private static MouseListener
private static MouseMotionListener
private static TextListener
private static WindowListener

Constructor Summary

AccessConstructor and Description
public
AWTEventMonitor()

Constructs an AWTEventMonitor.

Method Summary

Modifier and TypeMethod and Description
public static void
addActionListener(ActionListener
the listener to add
l
)

Adds the specified listener to receive all ACTION events on each component instance in the Java Virtual Machine when they occur.

public static void
addAdjustmentListener(AdjustmentListener
the listener to add
l
)

Adds the specified listener to receive all ADJUSTMENT events on each component instance in the Java Virtual Machine when they occur.

public static void
addComponentListener(ComponentListener
the listener to add
l
)

Adds the specified listener to receive all COMPONENT events on each component instance in the Java Virtual Machine as they occur.

public static void
addContainerListener(ContainerListener
the listener to add
l
)

Adds the specified listener to receive all CONTAINER events on each component instance in the Java Virtual Machine as they occur.

public static void
addFocusListener(FocusListener
the listener to add
l
)

Adds the specified listener to receive all FOCUS events on each component instance in the Java Virtual Machine when they occur.

public static void
addItemListener(ItemListener
the listener to add
l
)

Adds the specified listener to receive all ITEM events on each component instance in the Java Virtual Machine when they occur.

public static void
addKeyListener(KeyListener
the listener to add
l
)

Adds the specified listener to receive all KEY events on each component instance in the Java Virtual Machine when they occur.

public static void
addMouseListener(MouseListener
the listener to add
l
)

Adds the specified listener to receive all MOUSE events on each component instance in the Java Virtual Machine when they occur.

public static void
addMouseMotionListener(MouseMotionListener
the listener to add
l
)

Adds the specified listener to receive all mouse MOTION events on each component instance in the Java Virtual Machine when they occur.

public static void
addTextListener(TextListener
the listener to add
l
)

Adds the specified listener to receive all TEXT events on each component instance in the Java Virtual Machine when they occur.

public static void
addWindowListener(WindowListener
the listener to add
l
)

Adds the specified listener to receive all WINDOW events on each component instance in the Java Virtual Machine when they occur.

public static Component

Returns:

the component that has keyboard focus
getComponentWithFocus
()

Returns the component that currently has keyboard focus.

public static void
removeActionListener(ActionListener
the listener to remove
l
)

Removes the specified listener so it no longer receives ACTION events when they occur.

public static void
removeAdjustmentListener(AdjustmentListener
the listener to remove
l
)

Removes the specified listener so it no longer receives ADJUSTMENT events when they occur.

public static void
removeComponentListener(ComponentListener
the listener to remove
l
)

Removes the specified listener so it no longer receives COMPONENT events when they occur.

public static void
removeContainerListener(ContainerListener
the listener to remove
l
)

Removes the specified listener so it no longer receives CONTAINER events when they occur.

public static void
removeFocusListener(FocusListener
the listener to remove
l
)

Removes the specified listener so it no longer receives FOCUS events when they occur.

public static void
removeItemListener(ItemListener
the listener to remove
l
)

Removes the specified listener so it no longer receives ITEM events when they occur.

public static void
removeKeyListener(KeyListener
the listener to remove
l
)

Removes the specified listener so it no longer receives KEY events when they occur.

public static void
removeMouseListener(MouseListener
the listener to remove
l
)

Removes the specified listener so it no longer receives MOUSE events when they occur.

public static void
removeMouseMotionListener(MouseMotionListener
the listener to remove
l
)

Removes the specified listener so it no longer receives MOTION events when they occur.

public static void
removeTextListener(TextListener
the listener to remove
l
)

Removes the specified listener so it no longer receives TEXT events when they occur.

public static void
removeWindowListener(WindowListener
the listener to remove
l
)

Removes the specified listener so it no longer receives WINDOW events when they occur.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait