All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.accessibility.util.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 funnelled 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 through the peering mechanism. In order for this to happen, the EventQueueMonitor class needs to be in the CLASSPATH environment variable and the following line needs to be in the awt.properties file:

 AWT.EventQueueClass=com.sun.java.accessibility.util.EventQueueMonitor
 

NOTE: 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

Variable Index

 o listenerList
The master list of all listeners registered by other classes.
 o swingListener
The actual listener that is installed on the component instances.

Constructor Index

 o SwingEventMonitor()

Method Index

 o addAncestorListener(AncestorListener)
Adds the specified listener to receive all Ancestor events on each component instance in the Java Virtual Machine as they occur.
 o addCaretListener(CaretListener)
Adds the specified listener to receive all Caret events on each component instance in the Java Virtual Machine as they occur.
 o addCellEditorListener(CellEditorListener)
Adds the specified listener to receive all CellEditor events on each component instance in the Java Virtual Machine as they occur.
 o addChangeListener(ChangeListener)
Adds the specified listener to receive all Change events on each component instance in the Java Virtual Machine as they occur.
 o addColumnModelListener(TableColumnModelListener)
Adds the specified listener to receive all TableColumnModel events on each component instance in the Java Virtual Machine as they occur.
 o addDocumentListener(DocumentListener)
Adds the specified listener to receive all Document events on each component instance in the Java Virtual Machine as they occur.
 o addListDataListener(ListDataListener)
Adds the specified listener to receive all ListData events on each component instance in the Java Virtual Machine as they occur.
 o addListSelectionListener(ListSelectionListener)
Adds the specified listener to receive all ListSelection events on each component instance in the Java Virtual Machine as they occur.
 o addMenuListener(MenuListener)
Adds the specified listener to receive all Menu events on each component instance in the Java Virtual Machine as they occur.
 o addPopupMenuListener(PopupMenuListener)
Adds the specified listener to receive all PopupMenu events on each component instance in the Java Virtual Machine as they occur.
 o addPropertyChangeListener(PropertyChangeListener)
Adds the specified listener to receive all PropertyChange events on each component instance in the Java Virtual Machine as they occur.
 o addTableModelListener(TableModelListener)
Adds the specified listener to receive all TableModel events on each component instance in the Java Virtual Machine as they occur.
 o addTreeExpansionListener(TreeExpansionListener)
Adds the specified listener to receive all TreeExpansion events on each component instance in the Java Virtual Machine as they occur.
 o addTreeModelListener(TreeModelListener)
Adds the specified listener to receive all TreeModel events on each component instance in the Java Virtual Machine as they occur.
 o addTreeSelectionListener(TreeSelectionListener)
Adds the specified listener to receive all TreeSelection events on each component instance in the Java Virtual Machine as they occur.
 o addUndoableEditListener(UndoableEditListener)
Adds the specified listener to receive all UndoableEdit events on each component instance in the Java Virtual Machine as they occur.
 o addVetoableChangeListener(VetoableChangeListener)
Adds the specified listener to receive all VetoableChange events on each component instance in the Java Virtual Machine as they occur.
 o removeAncestorListener(AncestorListener)
Removes the specified listener so it no longer receives Ancestor events when they occur.
 o removeCaretListener(CaretListener)
Removes the specified listener so it no longer receives Caret events when they occur.
 o removeCellEditorListener(CellEditorListener)
Removes the specified listener so it no longer receives CellEditor events when they occur.
 o removeChangeListener(ChangeListener)
Removes the specified listener so it no longer receives Change events when they occur.
 o removeColumnModelListener(TableColumnModelListener)
Removes the specified listener so it no longer receives TableColumnModel events when they occur.
 o removeDocumentListener(DocumentListener)
Removes the specified listener so it no longer receives Document events when they occur.
 o removeListDataListener(ListDataListener)
Removes the specified listener so it no longer receives ListData events when they occur.
 o removeListSelectionListener(ListSelectionListener)
Removes the specified listener so it no longer receives ListSelection events when they occur.
 o removeMenuListener(MenuListener)
Removes the specified listener so it no longer receives Menu events when they occur.
 o removePopupMenuListener(PopupMenuListener)
Removes the specified listener so it no longer receives PopupMenu events when they occur.
 o removePropertyChangeListener(PropertyChangeListener)
Removes the specified listener so it no longer receives PropertyChange events when they occur.
 o removeTableModelListener(TableModelListener)
Removes the specified listener so it no longer receives TableModel events when they occur.
 o removeTreeExpansionListener(TreeExpansionListener)
Removes the specified listener so it no longer receives TreeExpansion events when they occur.
 o removeTreeModelListener(TreeModelListener)
Removes the specified listener so it no longer receives TreeModel events when they occur.
 o removeTreeSelectionListener(TreeSelectionListener)
Removes the specified listener so it no longer receives TreeSelection events when they occur.
 o removeUndoableEditListener(UndoableEditListener)
Removes the specified listener so it no longer receives UndoableEdit events when they occur.
 o removeVetoableChangeListener(VetoableChangeListener)
Removes the specified listener so it no longer receives VetoableChange events when they occur.

Variables

 o listenerList
 protected static 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.

 o swingListener
 protected static SwingEventListener swingListener
The actual listener that is installed on the component instances. This listener calls the other registered listeners when an event occurs. By doing things this way, the actual number of listeners installed on a component instance is drastically reduced.

Constructors

 o SwingEventMonitor
 public SwingEventMonitor()

Methods

 o 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
 o 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:
addAncestorListener
 o 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
 o 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:
addCaretListener
 o 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
 o 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:
addCellEditorListener
 o 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
 o 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:
addChangeListener
 o addColumnModelListener
 public static void addColumnModelListener(TableColumnModelListener l)
Adds the specified listener to receive all TableColumnModel 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
 o removeColumnModelListener
 public static void removeColumnModelListener(TableColumnModelListener l)
Removes the specified listener so it no longer receives TableColumnModel events when they occur.

Parameters:
l - the listener to remove
See Also:
addColumnModelListener
 o 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
 o 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:
addDocumentListener
 o 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
 o 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:
addListDataListener
 o 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
 o 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:
addListSelectionListener
 o 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
 o 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:
addMenuListener
 o 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
 o 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:
addPopupMenuListener
 o 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
 o 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:
addTableModelListener
 o 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
 o 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:
addTreeExpansionListener
 o 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
 o 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:
addTreeModelListener
 o 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
 o 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:
addTreeSelectionListener
 o 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
 o 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:
addUndoableEditListener
 o 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
 o 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:
addPropertyChangeListener
 o 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
 o 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:
addVetoableChangeListener

All Packages  Class Hierarchy  This Package  Previous  Next  Index