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.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | AWTEventMonitor.
AWTEventsListener is the class that does all the work for AWTEventMonitor. |
| Modifier and Type | Field and Description |
|---|---|
| private static ActionListener | |
| private static AdjustmentListener | |
| private static final AWTEventMonitor. | 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 |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | addActionListener(ActionListener
the listener to add l)Adds the specified listener to receive all |
| public static void | addAdjustmentListener(AdjustmentListener
the listener to add l)Adds the specified listener to receive all
|
| public static void | addComponentListener(ComponentListener
the listener to add l)Adds the specified listener to receive all |
| public static void | addContainerListener(ContainerListener
the listener to add l)Adds the specified listener to receive all |
| public static void | addFocusListener(FocusListener
the listener to add l)Adds the specified listener to receive all |
| public static void | addItemListener(ItemListener
the listener to add l)Adds the specified listener to receive all |
| public static void | addKeyListener(KeyListener
the listener to add l)Adds the specified listener to receive all |
| public static void | addMouseListener(MouseListener
the listener to add l)Adds the specified listener to receive all |
| public static void | addMouseMotionListener(MouseMotionListener
the listener to add l)Adds the specified listener to receive all mouse |
| public static void | addTextListener(TextListener
the listener to add l)Adds the specified listener to receive all |
| public static void | addWindowListener(WindowListener
the listener to add l)Adds the specified listener to receive all |
| public static Component | Returns: the component that has keyboard focusReturns 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
|
| public static void | removeAdjustmentListener(AdjustmentListener
the listener to remove l)Removes the specified listener so it no longer receives
|
| public static void | removeComponentListener(ComponentListener
the listener to remove l)Removes the specified listener so it no longer receives
|
| public static void | removeContainerListener(ContainerListener
the listener to remove l)Removes the specified listener so it no longer receives
|
| public static void | removeFocusListener(FocusListener
the listener to remove l)Removes the specified listener so it no longer receives |
| public static void | removeItemListener(ItemListener
the listener to remove l)Removes the specified listener so it no longer receives |
| public static void | removeKeyListener(KeyListener
the listener to remove l)Removes the specified listener so it no longer receives |
| public static void | removeMouseListener(MouseListener
the listener to remove l)Removes the specified listener so it no longer receives
|
| public static void | removeMouseMotionListener(MouseMotionListener
the listener to remove l)Removes the specified listener so it no longer receives
|
| public static void | removeTextListener(TextListener
the listener to remove l)Removes the specified listener so it no longer receives |
| public static void | removeWindowListener(WindowListener
the listener to remove l)Removes the specified listener so it no longer receives
|