Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.javatools.controls
Class PropertyChangeAdapter

java.lang.Object
  extended by 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.


Constructor Summary
PropertyChangeAdapter(javax.swing.AbstractButton adaptee, javax.swing.Action action)
           
 
Method Summary
protected  void _propertyChange(java.beans.PropertyChangeEvent e)
           
protected  void enabledChanged(java.beans.PropertyChangeEvent e)
           
protected  javax.swing.AbstractButton getAdaptee()
           
protected  void mnemonicChanged(java.beans.PropertyChangeEvent e)
           
protected  void nameChanged(java.beans.PropertyChangeEvent e)
           
 void propertyChange(java.beans.PropertyChangeEvent e)
           
protected  void smallIconChanged(java.beans.PropertyChangeEvent e)
           
protected  void stateChanged(java.beans.PropertyChangeEvent e)
           
protected  void tooltipChanged(java.beans.PropertyChangeEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyChangeAdapter

public PropertyChangeAdapter(javax.swing.AbstractButton adaptee,
                             javax.swing.Action action)
Method Detail

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)

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.