All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.accessibility.SwingEventMonitor

java.lang.Object
   |
   +----com.sun.java.accessibility.AWTEventMonitor
           |
           +----com.sun.java.accessibility.SwingEventMonitor

public class SwingEventMonitor
extends AWTEventMonitor

SwingEventMonitor extends AWTEventMonitor by adding a suite of listeners conditionally installed on every Swing component. The events captured by these listeners are then made available through a unified set of listeners the SwingEventMonitor supports, thus funnelling all the individual events on all Swing components within the VM 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.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.

NOTE: This is a preliminary draft. The methods and name may change in future beta releases.


Variable Index

 o ancestorList
 o cellEditorListener
 o changeList
 o columnModelListener
 o documentListener
 o hasAncestorListeners
 o hasChangeListeners
 o hasMenuListeners
 o listDataListener
 o listSelectionListener
 o menuList
 o menuListener
 o propertyChangeListener
 o swingListener
 o tableModelListener
 o treeExpansionListener
 o treeModelListener
 o treeSelectionListener
 o undoableEditListener
 o vetoableChangeListener

Constructor Index

 o SwingEventMonitor()

Method Index

 o addAncestorListener(AncestorListener)
Adds the specified listener to receive Ancestor events when they occur.
 o addCellEditorListener(CellEditorListener)
Adds the specified listener to receive CellEditor events when they occur.
 o addChangeListener(ChangeListener)
Adds the specified listener to receive Change events when they occur.
 o addColumnModelListener(TableColumnModelListener)
Adds the specified listener to receive ColumnModel events when they occur.
 o addDocumentListener(DocumentListener)
Adds the specified listener to receive Document events when they occur.
 o addListDataListener(ListDataListener)
Adds the specified listener to receive ListData events when they occur.
 o addListSelectionListener(ListSelectionListener)
Adds the specified listener to receive ListSelection events when they occur.
 o addMenuListener(MenuListener)
Adds the specified listener to receive Menu events when they occur.
 o addPropertyChangeListener(PropertyChangeListener)
Adds the specified listener to receive PropertyChange events when they occur.
 o addTableModelListener(TableModelListener)
Adds the specified listener to receive TableModel events when they occur.
 o addTreeExpansionListener(TreeExpansionListener)
Adds the specified listener to receive TreeExpansion events when they occur.
 o addTreeModelListener(TreeModelListener)
Adds the specified listener to receive TreeModel events when they occur.
 o addTreeSelectionListener(TreeSelectionListener)
Adds the specified listener to receive TreeSelection events when they occur.
 o addUndoableEditListener(UndoableEditListener)
Adds the specified listener to receive UndoableEdit events when they occur.
 o addVetoableChangeListener(VetoableChangeListener)
Adds the specified listener to receive VetoableChange events when they occur.
 o removeAncestorListener(AncestorListener)
Removes the specified listener so it no longer receives Ancestor 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 ColumnModel 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 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 cellEditorListener
 protected static CellEditorListener cellEditorListener
 o columnModelListener
 protected static TableColumnModelListener columnModelListener
 o documentListener
 protected static DocumentListener documentListener
 o listDataListener
 protected static ListDataListener listDataListener
 o listSelectionListener
 protected static ListSelectionListener listSelectionListener
 o menuListener
 protected static MenuListener menuListener
 o propertyChangeListener
 protected static PropertyChangeListener propertyChangeListener
 o tableModelListener
 protected static TableModelListener tableModelListener
 o treeExpansionListener
 protected static TreeExpansionListener treeExpansionListener
 o treeModelListener
 protected static TreeModelListener treeModelListener
 o treeSelectionListener
 protected static TreeSelectionListener treeSelectionListener
 o undoableEditListener
 protected static UndoableEditListener undoableEditListener
 o vetoableChangeListener
 protected static VetoableChangeListener vetoableChangeListener
 o ancestorList
 protected static AncestorListenerList ancestorList
 o changeList
 protected static ChangeListenerList changeList
 o menuList
 protected static MenuListenerList menuList
 o hasAncestorListeners
 protected static boolean hasAncestorListeners
 o hasChangeListeners
 protected static boolean hasChangeListeners
 o hasMenuListeners
 protected static boolean hasMenuListeners
 o swingListener
 protected static SwingEventListener swingListener

Constructors

 o SwingEventMonitor
 public SwingEventMonitor()

Methods

 o addAncestorListener
 public static void addAncestorListener(AncestorListener l)
Adds the specified listener to receive Ancestor events when they occur.

Parameters:
l - the listener to add
 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
 o addCellEditorListener
 public static void addCellEditorListener(CellEditorListener l)
Adds the specified listener to receive CellEditor events when they occur.

Parameters:
l - the listener to add
 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
 o addChangeListener
 public static void addChangeListener(ChangeListener l)
Adds the specified listener to receive Change events when they occur.

Parameters:
l - the listener to add
 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
 o addColumnModelListener
 public static void addColumnModelListener(TableColumnModelListener l)
Adds the specified listener to receive ColumnModel events when they occur.

Parameters:
l - the listener to add
 o 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
 o addDocumentListener
 public static void addDocumentListener(DocumentListener l)
Adds the specified listener to receive Document events when they occur.

Parameters:
l - the listener to add
 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
 o addListDataListener
 public static void addListDataListener(ListDataListener l)
Adds the specified listener to receive ListData events when they occur.

Parameters:
l - the listener to add
 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
 o addListSelectionListener
 public static void addListSelectionListener(ListSelectionListener l)
Adds the specified listener to receive ListSelection events when they occur.

Parameters:
l - the listener to add
 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
 o addMenuListener
 public static void addMenuListener(MenuListener l)
Adds the specified listener to receive Menu events when they occur.

Parameters:
l - the listener to add
 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
 o addPropertyChangeListener
 public static void addPropertyChangeListener(PropertyChangeListener l)
Adds the specified listener to receive PropertyChange events when they occur.

Parameters:
l - the listener to add
 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
 o addTableModelListener
 public static void addTableModelListener(TableModelListener l)
Adds the specified listener to receive TableModel events when they occur.

Parameters:
l - the listener to add
 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
 o addTreeExpansionListener
 public static void addTreeExpansionListener(TreeExpansionListener l)
Adds the specified listener to receive TreeExpansion events when they occur.

Parameters:
l - the listener to add
 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
 o addTreeModelListener
 public static void addTreeModelListener(TreeModelListener l)
Adds the specified listener to receive TreeModel events when they occur.

Parameters:
l - the listener to add
 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
 o addTreeSelectionListener
 public static void addTreeSelectionListener(TreeSelectionListener l)
Adds the specified listener to receive TreeSelection events when they occur.

Parameters:
l - the listener to add
 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
 o addUndoableEditListener
 public static void addUndoableEditListener(UndoableEditListener l)
Adds the specified listener to receive UndoableEdit events when they occur.

Parameters:
l - the listener to add
 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
 o addVetoableChangeListener
 public static void addVetoableChangeListener(VetoableChangeListener l)
Adds the specified listener to receive VetoableChange events when they occur.

Parameters:
l - the listener to add
 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

All Packages  Class Hierarchy  This Package  Previous  Next  Index