SwingEventMonitor
extends AWTEventMonitor
by adding a suite of
listeners conditionally installed on every Swing component instance
in the Java Virtual Machine. The events captured by these listeners
are made available through a unified set of listeners supported by
SwingEventMonitor
. With this, all the individual events on each of the
AWT and Swing 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.
Because this class extends AWTEventMonitor
, it is not
necessary to use this class and AWTEventMonitor
at the same time.
If you want to monitor both AWT and Swing components, you should
use just this class.
AWTEventMonitor
Modifier and Type | Class and Description |
---|---|
pack-priv static class | SwingEventMonitor.
SwingEventListener is the class that does all the work for SwingEventMonitor. |
Modifier and Type | Field and Description |
---|---|
protected static final EventListenerList | listenerList
The master list of all listeners registered by other classes. |
private static final SwingEventMonitor. | swingListener
The actual listener that is installed on the component instances. |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public static void | addAncestorListener(AncestorListener
the listener to add l)Adds the specified listener to receive all |
public static void | addCaretListener(CaretListener
the listener to add l)Adds the specified listener to receive all |
public static void | addCellEditorListener(CellEditorListener
the listener to add l)Adds the specified listener to receive all
|
public static void | addChangeListener(ChangeListener
the listener to add l)Adds the specified listener to receive all |
public static void | addColumnModelListener(TableColumnModelListener
the listener to add l)Adds the specified listener to receive all |
public static void | addDocumentListener(DocumentListener
the listener to add l)Adds the specified listener to receive all |
public static void | addInternalFrameListener(InternalFrameListener
the listener to add l)Adds the specified listener to receive all |
public static void | addListDataListener(ListDataListener
the listener to add l)Adds the specified listener to receive all |
public static void | addListSelectionListener(ListSelectionListener
the listener to add l)Adds the specified listener to receive all |
public static void | addMenuListener(MenuListener
the listener to add l)Adds the specified listener to receive all |
public static void | addPopupMenuListener(PopupMenuListener
the listener to add l)Adds the specified listener to receive all |
public static void | addPropertyChangeListener(PropertyChangeListener
the listener to add l)Adds the specified listener to receive all |
public static void | addTableModelListener(TableModelListener
the listener to add l)Adds the specified listener to receive all |
public static void | addTreeExpansionListener(TreeExpansionListener
the listener to add l)Adds the specified listener to receive all |
public static void | addTreeModelListener(TreeModelListener
the listener to add l)Adds the specified listener to receive all |
public static void | addTreeSelectionListener(TreeSelectionListener
the listener to add l)Adds the specified listener to receive all |
public static void | addUndoableEditListener(UndoableEditListener
the listener to add l)Adds the specified listener to receive all |
public static void | addVetoableChangeListener(VetoableChangeListener
the listener to add l)Adds the specified listener to receive all |
public static void | removeAncestorListener(AncestorListener
the listener to remove l)Removes the specified listener so it no longer receives
|
public static void | removeCaretListener(CaretListener
the listener to remove l)Removes the specified listener so it no longer receives
|
public static void | removeCellEditorListener(CellEditorListener
the listener to remove l)Removes the specified listener so it no longer receives
|
public static void | removeChangeListener(ChangeListener
the listener to remove l)Removes the specified listener so it no longer receives
|
public static void | removeColumnModelListener(TableColumnModelListener
the listener to remove l)Removes the specified listener so it no longer receives
|
public static void | removeDocumentListener(DocumentListener
the listener to remove l)Removes the specified listener so it no longer receives
|
public static void | removeInternalFrameListener(InternalFrameListener
the listener to remove l)Removes the specified listener so it no longer receives
|
public static void | removeListDataListener(ListDataListener
the listener to remove l)Removes the specified listener so it no longer receives
|
public static void | removeListSelectionListener(ListSelectionListener
the listener to remove l)Removes the specified listener so it no longer receives
|
public static void | removeMenuListener(MenuListener
the listener to remove l)Removes the specified listener so it no longer receives
|
public static void | removePopupMenuListener(PopupMenuListener
the listener to remove l)Removes the specified listener so it no longer receives
|
public static void | removePropertyChangeListener(PropertyChangeListener
the listener to remove l)Removes the specified listener so it no longer receives
|
public static void | removeTableModelListener(TableModelListener
the listener to remove l)Removes the specified listener so it no longer receives
|
public static void | removeTreeExpansionListener(TreeExpansionListener
the listener to remove l)Removes the specified listener so it no longer receives
|
public static void | removeTreeModelListener(TreeModelListener
the listener to remove l)Removes the specified listener so it no longer receives
|
public static void | removeTreeSelectionListener(TreeSelectionListener
the listener to remove l)Removes the specified listener so it no longer receives
|
public static void | removeUndoableEditListener(UndoableEditListener
the listener to remove l)Removes the specified listener so it no longer receives
|
public static void | removeVetoableChangeListener(VetoableChangeListener
the listener to remove l)Removes the specified listener so it no longer receives
|