Extension SDK 10.1.2


oracle.ide.controls
Class PropertyChangeAdaptor

java.lang.Object
  extended byoracle.ide.controls.PropertyChangeAdaptor

All Implemented Interfaces:
java.util.EventListener, java.beans.PropertyChangeListener

public class PropertyChangeAdaptor
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.


Constructor Summary
PropertyChangeAdaptor(javax.swing.AbstractButton adaptee, javax.swing.Action action)

Method Summary
protected void _propertyChange(java.beans.PropertyChangeEvent e)
protected void acceleratorChanged(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

PropertyChangeAdaptor

public PropertyChangeAdaptor(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)

acceleratorChanged

protected void acceleratorChanged(java.beans.PropertyChangeEvent e)

Extension SDK


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