Class SwingEventMonitor

java.lang.Object
com.sun.java.accessibility.util.AWTEventMonitor
com.sun.java.accessibility.util.SwingEventMonitor

public class SwingEventMonitor extends AWTEventMonitor

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:
  • Field Details

    • listenerList

      protected 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.
  • Constructor Details

    • SwingEventMonitor

      public SwingEventMonitor()
      Constructs a SwingEventMonitor.
  • Method Details

    • addAncestorListener

      public static void addAncestorListener(AncestorListener l)
      Adds the specified listener to receive all ANCESTOR events 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

      public static void removeAncestorListener(AncestorListener l)
      Removes the specified listener so it no longer receives ANCESTOR events when they occur.
      Parameters:
      l - the listener to remove
      See Also:
    • addCaretListener

      public static void addCaretListener(CaretListener l)
      Adds the specified listener to receive all CARET events 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

      public static void removeCaretListener(CaretListener l)
      Removes the specified listener so it no longer receives CARET events when they occur.
      Parameters:
      l - the listener to remove
      See Also:
    • addCellEditorListener

      public static void addCellEditorListener(CellEditorListener l)
      Adds the specified listener to receive all CELLEDITOR events 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

      public static void removeCellEditorListener(CellEditorListener l)
      Removes the specified listener so it no longer receives CELLEDITOR events when they occur.
      Parameters:
      l - the listener to remove
      See Also:
    • addChangeListener

      public static void addChangeListener(ChangeListener l)
      Adds the specified listener to receive all CHANGE events 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

      public static void removeChangeListener(ChangeListener l)
      Removes the specified listener so it no longer receives CHANGE events when they occur.
      Parameters:
      l - the listener to remove
      See Also:
    • addColumnModelListener

      public static void addColumnModelListener(TableColumnModelListener l)
      Adds the specified listener to receive all COLUMNMODEL events 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

      public static void removeColumnModelListener(TableColumnModelListener l)
      Removes the specified listener so it no longer receives COLUMNMODEL events when they occur.
      Parameters:
      l - the listener to remove
      See Also:
    • addDocumentListener

      public static void addDocumentListener(DocumentListener l)
      Adds the specified listener to receive all DOCUMENT events 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

      public static void removeDocumentListener(DocumentListener l)
      Removes the specified listener so it no longer receives DOCUMENT events when they occur.
      Parameters:
      l - the listener to remove
      See Also:
    • addListDataListener

      public static void addListDataListener(ListDataListener l)
      Adds the specified listener to receive all LISTDATA events 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

      public static void removeListDataListener(ListDataListener l)
      Removes the specified listener so it no longer receives LISTDATA events when they occur.
      Parameters:
      l - the listener to remove
      See Also:
    • addListSelectionListener

      public static void addListSelectionListener(ListSelectionListener l)
      Adds the specified listener to receive all LISTSELECTION events 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

      public static void removeListSelectionListener(ListSelectionListener l)
      Removes the specified listener so it no longer receives LISTSELECTION events when they occur.
      Parameters:
      l - the listener to remove
      See Also:
    • addMenuListener

      public static void addMenuListener(MenuListener l)
      Adds the specified listener to receive all MENU events 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

      public static void removeMenuListener(MenuListener l)
      Removes the specified listener so it no longer receives MENU events when they occur.
      Parameters:
      l - the listener to remove
      See Also:
    • addPopupMenuListener

      public static void addPopupMenuListener(PopupMenuListener l)
      Adds the specified listener to receive all POPUPMENU events 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

      public static void removePopupMenuListener(PopupMenuListener l)
      Removes the specified listener so it no longer receives POPUPMENU events when they occur.
      Parameters:
      l - the listener to remove
      See Also:
    • addTableModelListener

      public static void addTableModelListener(TableModelListener l)
      Adds the specified listener to receive all TABLEMODEL events 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

      public static void removeTableModelListener(TableModelListener l)
      Removes the specified listener so it no longer receives TABLEMODEL events when they occur.
      Parameters:
      l - the listener to remove
      See Also:
    • addTreeExpansionListener

      public static void addTreeExpansionListener(TreeExpansionListener l)
      Adds the specified listener to receive all TREEEXPANSION events 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

      public static void removeTreeExpansionListener(TreeExpansionListener l)
      Removes the specified listener so it no longer receives TREEEXPANSION events when they occur.
      Parameters:
      l - the listener to remove
      See Also:
    • addTreeModelListener

      public static void addTreeModelListener(TreeModelListener l)
      Adds the specified listener to receive all TREEMODEL events 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

      public static void removeTreeModelListener(TreeModelListener l)
      Removes the specified listener so it no longer receives TREEMODEL events when they occur.
      Parameters:
      l - the listener to remove
      See Also:
    • addTreeSelectionListener

      public static void addTreeSelectionListener(TreeSelectionListener l)
      Adds the specified listener to receive all TREESELECTION events 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

      public static void removeTreeSelectionListener(TreeSelectionListener l)
      Removes the specified listener so it no longer receives TREESELECTION events when they occur.
      Parameters:
      l - the listener to remove
      See Also:
    • addUndoableEditListener

      public static void addUndoableEditListener(UndoableEditListener l)
      Adds the specified listener to receive all UNDOABLEEDIT events 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

      public static void removeUndoableEditListener(UndoableEditListener l)
      Removes the specified listener so it no longer receives UNDOABLEEDIT events when they occur.
      Parameters:
      l - the listener to remove
      See Also:
    • addInternalFrameListener

      public static void addInternalFrameListener(InternalFrameListener l)
      Adds the specified listener to receive all INTERNALFRAME events 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

      public static void removeInternalFrameListener(InternalFrameListener l)
      Removes the specified listener so it no longer receives INTERNALFRAME events when they occur.
      Parameters:
      l - the listener to remove
      See Also:
    • addPropertyChangeListener

      public static void addPropertyChangeListener(PropertyChangeListener l)
      Adds the specified listener to receive all PROPERTYCHANGE events 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

      public static void removePropertyChangeListener(PropertyChangeListener l)
      Removes the specified listener so it no longer receives PROPERTYCHANGE events when they occur.
      Parameters:
      l - the listener to remove
      See Also:
    • addVetoableChangeListener

      public static void addVetoableChangeListener(VetoableChangeListener l)
      Adds the specified listener to receive all VETOABLECHANGE events 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

      public static void removeVetoableChangeListener(VetoableChangeListener l)
      Removes the specified listener so it no longer receives VETOABLECHANGE events when they occur.
      Parameters:
      l - the listener to remove
      See Also: