|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.accessibility.util.AWTEventMonitor | +--com.sun.java.accessibility.util.SwingEventMonitor
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.
For JDK1.1 only, 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
For JDK1.2, EventQueueMonitor merely needs to be in the CLASSPATH. The best way for this to happen is to place the jaccess.jar file in the standard extensions directory (e.g., $JDKHOME/jre/lib/ext).
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.
AWTEventMonitor
Field Summary | |
protected static javax.swing.event.EventListenerList |
listenerList
The master list of all listeners registered by other classes. |
protected static com.sun.java.accessibility.util.SwingEventMonitor.SwingEventListener |
swingListener
The actual listener that is installed on the component instances. |
Fields inherited from class com.sun.java.accessibility.util.AWTEventMonitor |
actionListener,
adjustmentListener,
awtListener,
componentListener,
componentWithFocus,
containerListener,
focusListener,
itemListener,
keyListener,
mouseListener,
mouseMotionListener,
textListener,
windowListener |
Constructor Summary | |
SwingEventMonitor()
|
Method Summary | |
static void |
addAncestorListener(javax.swing.event.AncestorListener l)
Adds the specified listener to receive all Ancestor events on each component instance in the Java Virtual Machine as they occur. |
static void |
addCaretListener(javax.swing.event.CaretListener l)
Adds the specified listener to receive all Caret events on each component instance in the Java Virtual Machine as they occur. |
static void |
addCellEditorListener(javax.swing.event.CellEditorListener l)
Adds the specified listener to receive all CellEditor events on each component instance in the Java Virtual Machine as they occur. |
static void |
addChangeListener(javax.swing.event.ChangeListener l)
Adds the specified listener to receive all Change events on each component instance in the Java Virtual Machine as they occur. |
static void |
addColumnModelListener(javax.swing.event.TableColumnModelListener l)
Adds the specified listener to receive all TableColumnModel events on each component instance in the Java Virtual Machine as they occur. |
static void |
addDocumentListener(javax.swing.event.DocumentListener l)
Adds the specified listener to receive all Document events on each component instance in the Java Virtual Machine as they occur. |
static void |
addInternalFrameListener(javax.swing.event.InternalFrameListener l)
Adds the specified listener to receive all InternalFrame events on each component instance in the Java Virtual Machine as they occur. |
static void |
addListDataListener(javax.swing.event.ListDataListener l)
Adds the specified listener to receive all ListData events on each component instance in the Java Virtual Machine as they occur. |
static void |
addListSelectionListener(javax.swing.event.ListSelectionListener l)
Adds the specified listener to receive all ListSelection events on each component instance in the Java Virtual Machine as they occur. |
static void |
addMenuListener(javax.swing.event.MenuListener l)
Adds the specified listener to receive all Menu events on each component instance in the Java Virtual Machine as they occur. |
static void |
addPopupMenuListener(javax.swing.event.PopupMenuListener l)
Adds the specified listener to receive all PopupMenu events on each component instance in the Java Virtual Machine as they occur. |
static void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds the specified listener to receive all PropertyChange events on each component instance in the Java Virtual Machine as they occur. |
static void |
addTableModelListener(javax.swing.event.TableModelListener l)
Adds the specified listener to receive all TableModel events on each component instance in the Java Virtual Machine as they occur. |
static void |
addTreeExpansionListener(javax.swing.event.TreeExpansionListener l)
Adds the specified listener to receive all TreeExpansion events on each component instance in the Java Virtual Machine as they occur. |
static void |
addTreeModelListener(javax.swing.event.TreeModelListener l)
Adds the specified listener to receive all TreeModel events on each component instance in the Java Virtual Machine as they occur. |
static void |
addTreeSelectionListener(javax.swing.event.TreeSelectionListener l)
Adds the specified listener to receive all TreeSelection events on each component instance in the Java Virtual Machine as they occur. |
static void |
addUndoableEditListener(javax.swing.event.UndoableEditListener l)
Adds the specified listener to receive all UndoableEdit events on each component instance in the Java Virtual Machine as they occur. |
static void |
addVetoableChangeListener(java.beans.VetoableChangeListener l)
Adds the specified listener to receive all VetoableChange events on each component instance in the Java Virtual Machine as they occur. |
static void |
removeAncestorListener(javax.swing.event.AncestorListener l)
Removes the specified listener so it no longer receives Ancestor events when they occur. |
static void |
removeCaretListener(javax.swing.event.CaretListener l)
Removes the specified listener so it no longer receives Caret events when they occur. |
static void |
removeCellEditorListener(javax.swing.event.CellEditorListener l)
Removes the specified listener so it no longer receives CellEditor events when they occur. |
static void |
removeChangeListener(javax.swing.event.ChangeListener l)
Removes the specified listener so it no longer receives Change events when they occur. |
static void |
removeColumnModelListener(javax.swing.event.TableColumnModelListener l)
Removes the specified listener so it no longer receives TableColumnModel events when they occur. |
static void |
removeDocumentListener(javax.swing.event.DocumentListener l)
Removes the specified listener so it no longer receives Document events when they occur. |
static void |
removeInternalFrameListener(javax.swing.event.InternalFrameListener l)
Removes the specified listener so it no longer receives InternalFrame events when they occur. |
static void |
removeListDataListener(javax.swing.event.ListDataListener l)
Removes the specified listener so it no longer receives ListData events when they occur. |
static void |
removeListSelectionListener(javax.swing.event.ListSelectionListener l)
Removes the specified listener so it no longer receives ListSelection events when they occur. |
static void |
removeMenuListener(javax.swing.event.MenuListener l)
Removes the specified listener so it no longer receives Menu events when they occur. |
static void |
removePopupMenuListener(javax.swing.event.PopupMenuListener l)
Removes the specified listener so it no longer receives PopupMenu events when they occur. |
static void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes the specified listener so it no longer receives PropertyChange events when they occur. |
static void |
removeTableModelListener(javax.swing.event.TableModelListener l)
Removes the specified listener so it no longer receives TableModel events when they occur. |
static void |
removeTreeExpansionListener(javax.swing.event.TreeExpansionListener l)
Removes the specified listener so it no longer receives TreeExpansion events when they occur. |
static void |
removeTreeModelListener(javax.swing.event.TreeModelListener l)
Removes the specified listener so it no longer receives TreeModel events when they occur. |
static void |
removeTreeSelectionListener(javax.swing.event.TreeSelectionListener l)
Removes the specified listener so it no longer receives TreeSelection events when they occur. |
static void |
removeUndoableEditListener(javax.swing.event.UndoableEditListener l)
Removes the specified listener so it no longer receives UndoableEdit events when they occur. |
static void |
removeVetoableChangeListener(java.beans.VetoableChangeListener l)
Removes the specified listener so it no longer receives VetoableChange events when they occur. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static javax.swing.event.EventListenerList listenerList
protected static com.sun.java.accessibility.util.SwingEventMonitor.SwingEventListener swingListener
Constructor Detail |
public SwingEventMonitor()
Method Detail |
public static void addAncestorListener(javax.swing.event.AncestorListener l)
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.
l
- the listener to addremoveAncestorListener(javax.swing.event.AncestorListener)
public static void removeAncestorListener(javax.swing.event.AncestorListener l)
l
- the listener to removeaddAncestorListener(javax.swing.event.AncestorListener)
public static void addCaretListener(javax.swing.event.CaretListener l)
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.
l
- the listener to addremoveCaretListener(javax.swing.event.CaretListener)
public static void removeCaretListener(javax.swing.event.CaretListener l)
l
- the listener to removeaddCaretListener(javax.swing.event.CaretListener)
public static void addCellEditorListener(javax.swing.event.CellEditorListener l)
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.
l
- the listener to addremoveCellEditorListener(javax.swing.event.CellEditorListener)
public static void removeCellEditorListener(javax.swing.event.CellEditorListener l)
l
- the listener to removeaddCellEditorListener(javax.swing.event.CellEditorListener)
public static void addChangeListener(javax.swing.event.ChangeListener l)
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.
l
- the listener to addremoveChangeListener(javax.swing.event.ChangeListener)
public static void removeChangeListener(javax.swing.event.ChangeListener l)
l
- the listener to removeaddChangeListener(javax.swing.event.ChangeListener)
public static void addColumnModelListener(javax.swing.event.TableColumnModelListener l)
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.
l
- the listener to addremoveColumnModelListener(javax.swing.event.TableColumnModelListener)
public static void removeColumnModelListener(javax.swing.event.TableColumnModelListener l)
l
- the listener to removeaddColumnModelListener(javax.swing.event.TableColumnModelListener)
public static void addDocumentListener(javax.swing.event.DocumentListener l)
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.
l
- the listener to addremoveDocumentListener(javax.swing.event.DocumentListener)
public static void removeDocumentListener(javax.swing.event.DocumentListener l)
l
- the listener to removeaddDocumentListener(javax.swing.event.DocumentListener)
public static void addListDataListener(javax.swing.event.ListDataListener l)
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.
l
- the listener to addremoveListDataListener(javax.swing.event.ListDataListener)
public static void removeListDataListener(javax.swing.event.ListDataListener l)
l
- the listener to removeaddListDataListener(javax.swing.event.ListDataListener)
public static void addListSelectionListener(javax.swing.event.ListSelectionListener l)
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.
l
- the listener to addremoveListSelectionListener(javax.swing.event.ListSelectionListener)
public static void removeListSelectionListener(javax.swing.event.ListSelectionListener l)
l
- the listener to removeaddListSelectionListener(javax.swing.event.ListSelectionListener)
public static void addMenuListener(javax.swing.event.MenuListener l)
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.
l
- the listener to addremoveMenuListener(javax.swing.event.MenuListener)
public static void removeMenuListener(javax.swing.event.MenuListener l)
l
- the listener to removeaddMenuListener(javax.swing.event.MenuListener)
public static void addPopupMenuListener(javax.swing.event.PopupMenuListener l)
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.
l
- the listener to addremovePopupMenuListener(javax.swing.event.PopupMenuListener)
public static void removePopupMenuListener(javax.swing.event.PopupMenuListener l)
l
- the listener to removeaddPopupMenuListener(javax.swing.event.PopupMenuListener)
public static void addTableModelListener(javax.swing.event.TableModelListener l)
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.
l
- the listener to addremoveTableModelListener(javax.swing.event.TableModelListener)
public static void removeTableModelListener(javax.swing.event.TableModelListener l)
l
- the listener to removeaddTableModelListener(javax.swing.event.TableModelListener)
public static void addTreeExpansionListener(javax.swing.event.TreeExpansionListener l)
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.
l
- the listener to addremoveTreeExpansionListener(javax.swing.event.TreeExpansionListener)
public static void removeTreeExpansionListener(javax.swing.event.TreeExpansionListener l)
l
- the listener to removeaddTreeExpansionListener(javax.swing.event.TreeExpansionListener)
public static void addTreeModelListener(javax.swing.event.TreeModelListener l)
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.
l
- the listener to addremoveTreeModelListener(javax.swing.event.TreeModelListener)
public static void removeTreeModelListener(javax.swing.event.TreeModelListener l)
l
- the listener to removeaddTreeModelListener(javax.swing.event.TreeModelListener)
public static void addTreeSelectionListener(javax.swing.event.TreeSelectionListener l)
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.
l
- the listener to addremoveTreeSelectionListener(javax.swing.event.TreeSelectionListener)
public static void removeTreeSelectionListener(javax.swing.event.TreeSelectionListener l)
l
- the listener to removeaddTreeSelectionListener(javax.swing.event.TreeSelectionListener)
public static void addUndoableEditListener(javax.swing.event.UndoableEditListener l)
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.
l
- the listener to addremoveUndoableEditListener(javax.swing.event.UndoableEditListener)
public static void removeUndoableEditListener(javax.swing.event.UndoableEditListener l)
l
- the listener to removeaddUndoableEditListener(javax.swing.event.UndoableEditListener)
public static void addInternalFrameListener(javax.swing.event.InternalFrameListener l)
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.
l
- the listener to addremoveInternalFrameListener(javax.swing.event.InternalFrameListener)
public static void removeInternalFrameListener(javax.swing.event.InternalFrameListener l)
l
- the listener to removeaddInternalFrameListener(javax.swing.event.InternalFrameListener)
public static void addPropertyChangeListener(java.beans.PropertyChangeListener l)
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.
l
- the listener to addremovePropertyChangeListener(java.beans.PropertyChangeListener)
public static void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l
- the listener to removeaddPropertyChangeListener(java.beans.PropertyChangeListener)
public static void addVetoableChangeListener(java.beans.VetoableChangeListener l)
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.
l
- the listener to addremoveVetoableChangeListener(java.beans.VetoableChangeListener)
public static void removeVetoableChangeListener(java.beans.VetoableChangeListener l)
l
- the listener to removeaddVetoableChangeListener(java.beans.VetoableChangeListener)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |