Home » openjdk-7 » javax » swing » [javadoc | source]
javax.swing
abstract class: ActionPropertyChangeListener [javadoc | source]
java.lang.Object
   javax.swing.ActionPropertyChangeListener

All Implemented Interfaces:
    Serializable, PropertyChangeListener

Direct Known Subclasses:
    ButtonActionPropertyChangeListener, ComboBoxActionPropertyChangeListener, TextFieldActionPropertyChangeListener

A package-private PropertyChangeListener which listens for property changes on an Action and updates the properties of an ActionEvent source.

Subclasses must override the actionPropertyChanged method, which is invoked from the propertyChange method as long as the target is still valid.

WARNING WARNING WARNING WARNING WARNING WARNING:
Do NOT create an annonymous inner class that extends this! If you do a strong reference will be held to the containing class, which in most cases defeats the purpose of this class.

Constructor:
 public ActionPropertyChangeListener(T c,
    Action a) 
Method from javax.swing.ActionPropertyChangeListener Summary:
actionPropertyChanged,   getAction,   getTarget,   propertyChange
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.ActionPropertyChangeListener Detail:
 abstract protected  void actionPropertyChanged(T target,
    Action action,
    PropertyChangeEvent e)
    Invoked when a property changes on the Action and the target still exists.
 public Action getAction() 
 public T getTarget() 
 public final  void propertyChange(PropertyChangeEvent e) 
    PropertyChangeListener method. If the target has been gc'ed this will remove the PropertyChangeListener from the Action, otherwise this will invoke actionPropertyChanged.