- java.lang.Object
- 
- com.sun.java.accessibility.util.AWTEventMonitor
- 
- com.sun.java.accessibility.util.SwingEventMonitor
 
 
- 
 
 public class SwingEventMonitor extends AWTEventMonitor SwingEventMonitorextendsAWTEventMonitorby 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 bySwingEventMonitor. 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 (seeEventIDfor 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 andAWTEventMonitorat the same time. If you want to monitor both AWT and Swing components, you should use just this class.- See Also:
- AWTEventMonitor
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected static EventListenerListlistenerListThe master list of all listeners registered by other classes.- 
Fields inherited from class com.sun.java.accessibility.util.AWTEventMonitoractionListener, adjustmentListener, componentListener, componentWithFocus, containerListener, focusListener, itemListener, keyListener, mouseListener, mouseMotionListener, textListener, windowListener
 
- 
 - 
Constructor SummaryConstructors Constructor Description SwingEventMonitor()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddAncestorListener(AncestorListener l)Adds the specified listener to receive allANCESTORevents on each component instance in the Java Virtual Machine as they occur.static voidaddCaretListener(CaretListener l)Adds the specified listener to receive allCARETevents on each component instance in the Java Virtual Machine as they occur.static voidaddCellEditorListener(CellEditorListener l)Adds the specified listener to receive allCELLEDITORevents on each component instance in the Java Virtual Machine as they occur.static voidaddChangeListener(ChangeListener l)Adds the specified listener to receive allCHANGEevents on each component instance in the Java Virtual Machine as they occur.static voidaddColumnModelListener(TableColumnModelListener l)Adds the specified listener to receive allCOLUMNMODELevents on each component instance in the Java Virtual Machine as they occur.static voidaddDocumentListener(DocumentListener l)Adds the specified listener to receive allDOCUMENTevents on each component instance in the Java Virtual Machine as they occur.static voidaddInternalFrameListener(InternalFrameListener l)Adds the specified listener to receive allINTERNALFRAMEevents on each component instance in the Java Virtual Machine as they occur.static voidaddListDataListener(ListDataListener l)Adds the specified listener to receive allLISTDATAevents on each component instance in the Java Virtual Machine as they occur.static voidaddListSelectionListener(ListSelectionListener l)Adds the specified listener to receive allLISTSELECTIONevents on each component instance in the Java Virtual Machine as they occur.static voidaddMenuListener(MenuListener l)Adds the specified listener to receive allMENUevents on each component instance in the Java Virtual Machine as they occur.static voidaddPopupMenuListener(PopupMenuListener l)Adds the specified listener to receive allPOPUPMENUevents on each component instance in the Java Virtual Machine as they occur.static voidaddPropertyChangeListener(PropertyChangeListener l)Adds the specified listener to receive allPROPERTYCHANGEevents on each component instance in the Java Virtual Machine as they occur.static voidaddTableModelListener(TableModelListener l)Adds the specified listener to receive allTABLEMODELevents on each component instance in the Java Virtual Machine as they occur.static voidaddTreeExpansionListener(TreeExpansionListener l)Adds the specified listener to receive allTREEEXPANSIONevents on each component instance in the Java Virtual Machine as they occur.static voidaddTreeModelListener(TreeModelListener l)Adds the specified listener to receive allTREEMODELevents on each component instance in the Java Virtual Machine as they occur.static voidaddTreeSelectionListener(TreeSelectionListener l)Adds the specified listener to receive allTREESELECTIONevents on each component instance in the Java Virtual Machine as they occur.static voidaddUndoableEditListener(UndoableEditListener l)Adds the specified listener to receive allUNDOABLEEDITevents on each component instance in the Java Virtual Machine as they occur.static voidaddVetoableChangeListener(VetoableChangeListener l)Adds the specified listener to receive allVETOABLECHANGEevents on each component instance in the Java Virtual Machine as they occur.static voidremoveAncestorListener(AncestorListener l)Removes the specified listener so it no longer receivesANCESTORevents when they occur.static voidremoveCaretListener(CaretListener l)Removes the specified listener so it no longer receivesCARETevents when they occur.static voidremoveCellEditorListener(CellEditorListener l)Removes the specified listener so it no longer receivesCELLEDITORevents when they occur.static voidremoveChangeListener(ChangeListener l)Removes the specified listener so it no longer receivesCHANGEevents when they occur.static voidremoveColumnModelListener(TableColumnModelListener l)Removes the specified listener so it no longer receivesCOLUMNMODELevents when they occur.static voidremoveDocumentListener(DocumentListener l)Removes the specified listener so it no longer receivesDOCUMENTevents when they occur.static voidremoveInternalFrameListener(InternalFrameListener l)Removes the specified listener so it no longer receivesINTERNALFRAMEevents when they occur.static voidremoveListDataListener(ListDataListener l)Removes the specified listener so it no longer receivesLISTDATAevents when they occur.static voidremoveListSelectionListener(ListSelectionListener l)Removes the specified listener so it no longer receivesLISTSELECTIONevents when they occur.static voidremoveMenuListener(MenuListener l)Removes the specified listener so it no longer receivesMENUevents when they occur.static voidremovePopupMenuListener(PopupMenuListener l)Removes the specified listener so it no longer receivesPOPUPMENUevents when they occur.static voidremovePropertyChangeListener(PropertyChangeListener l)Removes the specified listener so it no longer receivesPROPERTYCHANGEevents when they occur.static voidremoveTableModelListener(TableModelListener l)Removes the specified listener so it no longer receivesTABLEMODELevents when they occur.static voidremoveTreeExpansionListener(TreeExpansionListener l)Removes the specified listener so it no longer receivesTREEEXPANSIONevents when they occur.static voidremoveTreeModelListener(TreeModelListener l)Removes the specified listener so it no longer receivesTREEMODELevents when they occur.static voidremoveTreeSelectionListener(TreeSelectionListener l)Removes the specified listener so it no longer receivesTREESELECTIONevents when they occur.static voidremoveUndoableEditListener(UndoableEditListener l)Removes the specified listener so it no longer receivesUNDOABLEEDITevents when they occur.static voidremoveVetoableChangeListener(VetoableChangeListener l)Removes the specified listener so it no longer receivesVETOABLECHANGEevents when they occur.- 
Methods inherited from class com.sun.java.accessibility.util.AWTEventMonitoraddActionListener, addAdjustmentListener, addComponentListener, addContainerListener, addFocusListener, addItemListener, addKeyListener, addMouseListener, addMouseMotionListener, addTextListener, addWindowListener, getComponentWithFocus, removeActionListener, removeAdjustmentListener, removeComponentListener, removeContainerListener, removeFocusListener, removeItemListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeTextListener, removeWindowListener
 
- 
 
- 
- 
- 
Field Detail- 
listenerListprotected static final EventListenerList listenerList The master list of all listeners registered by other classes. This can only be publicly modified by calling the add or remove listener methods in this class.
 
- 
 - 
Method Detail- 
addAncestorListenerpublic static void addAncestorListener(AncestorListener l) Adds the specified listener to receive allANCESTORevents on each component instance in the Java Virtual Machine as they occur.Note: This listener is automatically added to all component instances created after this method is called. In addition, it is only added to component instances that support this listener type. - Parameters:
- l- the listener to add
- See Also:
- removeAncestorListener(javax.swing.event.AncestorListener)
 
 - 
removeAncestorListenerpublic static void removeAncestorListener(AncestorListener l) Removes the specified listener so it no longer receivesANCESTORevents when they occur.- Parameters:
- l- the listener to remove
- See Also:
- addAncestorListener(javax.swing.event.AncestorListener)
 
 - 
addCaretListenerpublic static void addCaretListener(CaretListener l) Adds the specified listener to receive allCARETevents on each component instance in the Java Virtual Machine as they occur.Note: This listener is automatically added to all component instances created after this method is called. In addition, it is only added to component instances that support this listener type. - Parameters:
- l- the listener to add
- See Also:
- removeCaretListener(javax.swing.event.CaretListener)
 
 - 
removeCaretListenerpublic static void removeCaretListener(CaretListener l) Removes the specified listener so it no longer receivesCARETevents when they occur.- Parameters:
- l- the listener to remove
- See Also:
- addCaretListener(javax.swing.event.CaretListener)
 
 - 
addCellEditorListenerpublic static void addCellEditorListener(CellEditorListener l) Adds the specified listener to receive allCELLEDITORevents on each component instance in the Java Virtual Machine as they occur.Note: This listener is automatically added to all component instances created after this method is called. In addition, it is only added to component instances that support this listener type. - Parameters:
- l- the listener to add
- See Also:
- removeCellEditorListener(javax.swing.event.CellEditorListener)
 
 - 
removeCellEditorListenerpublic static void removeCellEditorListener(CellEditorListener l) Removes the specified listener so it no longer receivesCELLEDITORevents when they occur.- Parameters:
- l- the listener to remove
- See Also:
- addCellEditorListener(javax.swing.event.CellEditorListener)
 
 - 
addChangeListenerpublic static void addChangeListener(ChangeListener l) Adds the specified listener to receive allCHANGEevents on each component instance in the Java Virtual Machine as they occur.Note: This listener is automatically added to all component instances created after this method is called. In addition, it is only added to component instances that support this listener type. - Parameters:
- l- the listener to add
- See Also:
- removeChangeListener(javax.swing.event.ChangeListener)
 
 - 
removeChangeListenerpublic static void removeChangeListener(ChangeListener l) Removes the specified listener so it no longer receivesCHANGEevents when they occur.- Parameters:
- l- the listener to remove
- See Also:
- addChangeListener(javax.swing.event.ChangeListener)
 
 - 
addColumnModelListenerpublic static void addColumnModelListener(TableColumnModelListener l) Adds the specified listener to receive allCOLUMNMODELevents on each component instance in the Java Virtual Machine as they occur.Note: This listener is automatically added to all component instances created after this method is called. In addition, it is only added to component instances that support this listener type. - Parameters:
- l- the listener to add
- See Also:
- removeColumnModelListener(javax.swing.event.TableColumnModelListener)
 
 - 
removeColumnModelListenerpublic static void removeColumnModelListener(TableColumnModelListener l) Removes the specified listener so it no longer receivesCOLUMNMODELevents when they occur.- Parameters:
- l- the listener to remove
- See Also:
- addColumnModelListener(javax.swing.event.TableColumnModelListener)
 
 - 
addDocumentListenerpublic static void addDocumentListener(DocumentListener l) Adds the specified listener to receive allDOCUMENTevents on each component instance in the Java Virtual Machine as they occur.Note: This listener is automatically added to all component instances created after this method is called. In addition, it is only added to component instances that support this listener type. - Parameters:
- l- the listener to add
- See Also:
- removeDocumentListener(javax.swing.event.DocumentListener)
 
 - 
removeDocumentListenerpublic static void removeDocumentListener(DocumentListener l) Removes the specified listener so it no longer receivesDOCUMENTevents when they occur.- Parameters:
- l- the listener to remove
- See Also:
- addDocumentListener(javax.swing.event.DocumentListener)
 
 - 
addListDataListenerpublic static void addListDataListener(ListDataListener l) Adds the specified listener to receive allLISTDATAevents on each component instance in the Java Virtual Machine as they occur.Note: This listener is automatically added to all component instances created after this method is called. In addition, it is only added to component instances that support this listener type. - Parameters:
- l- the listener to add
- See Also:
- removeListDataListener(javax.swing.event.ListDataListener)
 
 - 
removeListDataListenerpublic static void removeListDataListener(ListDataListener l) Removes the specified listener so it no longer receivesLISTDATAevents when they occur.- Parameters:
- l- the listener to remove
- See Also:
- addListDataListener(javax.swing.event.ListDataListener)
 
 - 
addListSelectionListenerpublic static void addListSelectionListener(ListSelectionListener l) Adds the specified listener to receive allLISTSELECTIONevents on each component instance in the Java Virtual Machine as they occur.Note: This listener is automatically added to all component instances created after this method is called. In addition, it is only added to component instances that support this listener type. - Parameters:
- l- the listener to add
- See Also:
- removeListSelectionListener(javax.swing.event.ListSelectionListener)
 
 - 
removeListSelectionListenerpublic static void removeListSelectionListener(ListSelectionListener l) Removes the specified listener so it no longer receivesLISTSELECTIONevents when they occur.- Parameters:
- l- the listener to remove
- See Also:
- addListSelectionListener(javax.swing.event.ListSelectionListener)
 
 - 
addMenuListenerpublic static void addMenuListener(MenuListener l) Adds the specified listener to receive allMENUevents on each component instance in the Java Virtual Machine as they occur.Note: This listener is automatically added to all component instances created after this method is called. In addition, it is only added to component instances that support this listener type. - Parameters:
- l- the listener to add
- See Also:
- removeMenuListener(javax.swing.event.MenuListener)
 
 - 
removeMenuListenerpublic static void removeMenuListener(MenuListener l) Removes the specified listener so it no longer receivesMENUevents when they occur.- Parameters:
- l- the listener to remove
- See Also:
- addMenuListener(javax.swing.event.MenuListener)
 
 - 
addPopupMenuListenerpublic static void addPopupMenuListener(PopupMenuListener l) Adds the specified listener to receive allPOPUPMENUevents on each component instance in the Java Virtual Machine as they occur.Note: This listener is automatically added to all component instances created after this method is called. In addition, it is only added to component instances that support this listener type. - Parameters:
- l- the listener to add
- See Also:
- removePopupMenuListener(javax.swing.event.PopupMenuListener)
 
 - 
removePopupMenuListenerpublic static void removePopupMenuListener(PopupMenuListener l) Removes the specified listener so it no longer receivesPOPUPMENUevents when they occur.- Parameters:
- l- the listener to remove
- See Also:
- addPopupMenuListener(javax.swing.event.PopupMenuListener)
 
 - 
addTableModelListenerpublic static void addTableModelListener(TableModelListener l) Adds the specified listener to receive allTABLEMODELevents on each component instance in the Java Virtual Machine as they occur.Note: This listener is automatically added to all component instances created after this method is called. In addition, it is only added to component instances that support this listener type. - Parameters:
- l- the listener to add
- See Also:
- removeTableModelListener(javax.swing.event.TableModelListener)
 
 - 
removeTableModelListenerpublic static void removeTableModelListener(TableModelListener l) Removes the specified listener so it no longer receivesTABLEMODELevents when they occur.- Parameters:
- l- the listener to remove
- See Also:
- addTableModelListener(javax.swing.event.TableModelListener)
 
 - 
addTreeExpansionListenerpublic static void addTreeExpansionListener(TreeExpansionListener l) Adds the specified listener to receive allTREEEXPANSIONevents on each component instance in the Java Virtual Machine as they occur.Note: This listener is automatically added to all component instances created after this method is called. In addition, it is only added to component instances that support this listener type. - Parameters:
- l- the listener to add
- See Also:
- removeTreeExpansionListener(javax.swing.event.TreeExpansionListener)
 
 - 
removeTreeExpansionListenerpublic static void removeTreeExpansionListener(TreeExpansionListener l) Removes the specified listener so it no longer receivesTREEEXPANSIONevents when they occur.- Parameters:
- l- the listener to remove
- See Also:
- addTreeExpansionListener(javax.swing.event.TreeExpansionListener)
 
 - 
addTreeModelListenerpublic static void addTreeModelListener(TreeModelListener l) Adds the specified listener to receive allTREEMODELevents on each component instance in the Java Virtual Machine as they occur.Note: This listener is automatically added to all component instances created after this method is called. In addition, it is only added to component instances that support this listener type. - Parameters:
- l- the listener to add
- See Also:
- removeTreeModelListener(javax.swing.event.TreeModelListener)
 
 - 
removeTreeModelListenerpublic static void removeTreeModelListener(TreeModelListener l) Removes the specified listener so it no longer receivesTREEMODELevents when they occur.- Parameters:
- l- the listener to remove
- See Also:
- addTreeModelListener(javax.swing.event.TreeModelListener)
 
 - 
addTreeSelectionListenerpublic static void addTreeSelectionListener(TreeSelectionListener l) Adds the specified listener to receive allTREESELECTIONevents on each component instance in the Java Virtual Machine as they occur.Note: This listener is automatically added to all component instances created after this method is called. In addition, it is only added to component instances that support this listener type. - Parameters:
- l- the listener to add
- See Also:
- removeTreeSelectionListener(javax.swing.event.TreeSelectionListener)
 
 - 
removeTreeSelectionListenerpublic static void removeTreeSelectionListener(TreeSelectionListener l) Removes the specified listener so it no longer receivesTREESELECTIONevents when they occur.- Parameters:
- l- the listener to remove
- See Also:
- addTreeSelectionListener(javax.swing.event.TreeSelectionListener)
 
 - 
addUndoableEditListenerpublic static void addUndoableEditListener(UndoableEditListener l) Adds the specified listener to receive allUNDOABLEEDITevents on each component instance in the Java Virtual Machine as they occur.Note: This listener is automatically added to all component instances created after this method is called. In addition, it is only added to component instances that support this listener type. - Parameters:
- l- the listener to add
- See Also:
- removeUndoableEditListener(javax.swing.event.UndoableEditListener)
 
 - 
removeUndoableEditListenerpublic static void removeUndoableEditListener(UndoableEditListener l) Removes the specified listener so it no longer receivesUNDOABLEEDITevents when they occur.- Parameters:
- l- the listener to remove
- See Also:
- addUndoableEditListener(javax.swing.event.UndoableEditListener)
 
 - 
addInternalFrameListenerpublic static void addInternalFrameListener(InternalFrameListener l) Adds the specified listener to receive allINTERNALFRAMEevents on each component instance in the Java Virtual Machine as they occur.Note: This listener is automatically added to all component instances created after this method is called. In addition, it is only added to component instances that support this listener type. - Parameters:
- l- the listener to add
- See Also:
- removeInternalFrameListener(javax.swing.event.InternalFrameListener)
 
 - 
removeInternalFrameListenerpublic static void removeInternalFrameListener(InternalFrameListener l) Removes the specified listener so it no longer receivesINTERNALFRAMEevents when they occur.- Parameters:
- l- the listener to remove
- See Also:
- addInternalFrameListener(javax.swing.event.InternalFrameListener)
 
 - 
addPropertyChangeListenerpublic static void addPropertyChangeListener(PropertyChangeListener l) Adds the specified listener to receive allPROPERTYCHANGEevents on each component instance in the Java Virtual Machine as they occur.Note: This listener is automatically added to all component instances created after this method is called. In addition, it is only added to component instances that support this listener type. - Parameters:
- l- the listener to add
- See Also:
- removePropertyChangeListener(java.beans.PropertyChangeListener)
 
 - 
removePropertyChangeListenerpublic static void removePropertyChangeListener(PropertyChangeListener l) Removes the specified listener so it no longer receivesPROPERTYCHANGEevents when they occur.- Parameters:
- l- the listener to remove
- See Also:
- addPropertyChangeListener(java.beans.PropertyChangeListener)
 
 - 
addVetoableChangeListenerpublic static void addVetoableChangeListener(VetoableChangeListener l) Adds the specified listener to receive allVETOABLECHANGEevents on each component instance in the Java Virtual Machine as they occur.Note: This listener is automatically added to all component instances created after this method is called. In addition, it is only added to component instances that support this listener type. - Parameters:
- l- the listener to add
- See Also:
- removeVetoableChangeListener(java.beans.VetoableChangeListener)
 
 - 
removeVetoableChangeListenerpublic static void removeVetoableChangeListener(VetoableChangeListener l) Removes the specified listener so it no longer receivesVETOABLECHANGEevents when they occur.- Parameters:
- l- the listener to remove
- See Also:
- addVetoableChangeListener(java.beans.VetoableChangeListener)
 
 
- 
 
-