Skip navigation links
oracle.javatools.controls
Class PropertyChangeAdapter
java.lang.Object
oracle.javatools.controls.PropertyChangeAdapter
- All Implemented Interfaces:
- java.beans.PropertyChangeListener, java.util.EventListener
- Direct Known Subclasses:
- ToolButton.DefaultActionPropertyChangeListener
-
public class PropertyChangeAdapter
- extends java.lang.Object
- implements java.beans.PropertyChangeListener
This class is intended to be used as a replacement for the java.beans.PropertyChangeListener added to any implementation of an javax.swing.AbstractButton which has been associated with a javax.swing.Action. It will update the AbstractButton in response to changes in the Action (i.e., icon, tooltip, etc.). It has been enhanced beyond the scope of te Swing implementation to additionaly support toggle state and accelerators which apply to some descendants of AbstractButton such as javax.swing.JCheckBoxMenuItem. Note: If you subclass this class you must make your subclass not reference the adaptee, since this reference will disallow collection that this class was designed to allow. This means no annon inner classes; static inners work.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyChangeAdapter
public PropertyChangeAdapter(javax.swing.AbstractButton adaptee,
javax.swing.Action action)
getAdaptee
protected javax.swing.AbstractButton getAdaptee()
propertyChange
public final void propertyChange(java.beans.PropertyChangeEvent e)
-
- Specified by:
propertyChange
in interface java.beans.PropertyChangeListener
_propertyChange
protected void _propertyChange(java.beans.PropertyChangeEvent e)
nameChanged
protected void nameChanged(java.beans.PropertyChangeEvent e)
tooltipChanged
protected void tooltipChanged(java.beans.PropertyChangeEvent e)
enabledChanged
protected void enabledChanged(java.beans.PropertyChangeEvent e)
smallIconChanged
protected void smallIconChanged(java.beans.PropertyChangeEvent e)
mnemonicChanged
protected void mnemonicChanged(java.beans.PropertyChangeEvent e)
stateChanged
protected void stateChanged(java.beans.PropertyChangeEvent e)
Skip navigation links
Copyright © 1997, 2013, Oracle. All rights reserved.