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

public Class SwingEventMonitor

extends AWTEventMonitor
Class Inheritance
Imports
java.util.*, java.beans.*, java.awt.*, java.awt.event.*, javax.swing.*, javax.swing.event.*, javax.swing.table.*, javax.swing.tree.*, javax.swing.text.*, javax.swing.undo.*, javax.accessibility.*

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.

See Also
AWTEventMonitor

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
SwingEventMonitor.SwingEventListener

SwingEventListener is the class that does all the work for SwingEventMonitor.

Field Summary

Modifier and TypeField and Description
protected static final EventListenerList
listenerList

The master list of all listeners registered by other classes.

private static final SwingEventMonitor.SwingEventListener
swingListener

The actual listener that is installed on the component instances.

Constructor Summary

AccessConstructor and Description
public
SwingEventMonitor()

Constructs a SwingEventMonitor.

Method Summary

Modifier and TypeMethod and Description
public static void
addAncestorListener(AncestorListener
the listener to add
l
)

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

public static void
addCaretListener(CaretListener
the listener to add
l
)

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

public static void
addCellEditorListener(CellEditorListener
the listener to add
l
)

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

public static void
addChangeListener(ChangeListener
the listener to add
l
)

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

public static void
addColumnModelListener(TableColumnModelListener
the listener to add
l
)

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

public static void
addDocumentListener(DocumentListener
the listener to add
l
)

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

public static void
addInternalFrameListener(InternalFrameListener
the listener to add
l
)

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

public static void
addListDataListener(ListDataListener
the listener to add
l
)

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

public static void
addListSelectionListener(ListSelectionListener
the listener to add
l
)

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

public static void
addMenuListener(MenuListener
the listener to add
l
)

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

public static void
addPopupMenuListener(PopupMenuListener
the listener to add
l
)

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

public static void
addPropertyChangeListener(PropertyChangeListener
the listener to add
l
)

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

public static void
addTableModelListener(TableModelListener
the listener to add
l
)

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

public static void
addTreeExpansionListener(TreeExpansionListener
the listener to add
l
)

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

public static void
addTreeModelListener(TreeModelListener
the listener to add
l
)

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

public static void
addTreeSelectionListener(TreeSelectionListener
the listener to add
l
)

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

public static void
addUndoableEditListener(UndoableEditListener
the listener to add
l
)

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

public static void
addVetoableChangeListener(VetoableChangeListener
the listener to add
l
)

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

public static void
removeAncestorListener(AncestorListener
the listener to remove
l
)

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

public static void
removeCaretListener(CaretListener
the listener to remove
l
)

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

public static void
removeCellEditorListener(CellEditorListener
the listener to remove
l
)

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

public static void
removeChangeListener(ChangeListener
the listener to remove
l
)

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

public static void
removeColumnModelListener(TableColumnModelListener
the listener to remove
l
)

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

public static void
removeDocumentListener(DocumentListener
the listener to remove
l
)

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

public static void
removeInternalFrameListener(InternalFrameListener
the listener to remove
l
)

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

public static void
removeListDataListener(ListDataListener
the listener to remove
l
)

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

public static void
removeListSelectionListener(ListSelectionListener
the listener to remove
l
)

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

public static void
removeMenuListener(MenuListener
the listener to remove
l
)

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

public static void
removePopupMenuListener(PopupMenuListener
the listener to remove
l
)

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

public static void
removePropertyChangeListener(PropertyChangeListener
the listener to remove
l
)

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

public static void
removeTableModelListener(TableModelListener
the listener to remove
l
)

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

public static void
removeTreeExpansionListener(TreeExpansionListener
the listener to remove
l
)

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

public static void
removeTreeModelListener(TreeModelListener
the listener to remove
l
)

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

public static void
removeTreeSelectionListener(TreeSelectionListener
the listener to remove
l
)

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

public static void
removeUndoableEditListener(UndoableEditListener
the listener to remove
l
)

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

public static void
removeVetoableChangeListener(VetoableChangeListener
the listener to remove
l
)

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

Inherited from com.sun.java.accessibility.util.AWTEventMonitor:
addActionListeneraddAdjustmentListeneraddComponentListeneraddContainerListeneraddFocusListeneraddItemListeneraddKeyListeneraddMouseListeneraddMouseMotionListeneraddTextListeneraddWindowListenergetComponentWithFocusremoveActionListenerremoveAdjustmentListenerremoveComponentListenerremoveContainerListenerremoveFocusListenerremoveItemListenerremoveKeyListenerremoveMouseListenerremoveMouseMotionListenerremoveTextListenerremoveWindowListener