javax.swing
Class AbstractActionPropertyChangeListener

java.lang.Object
  extended byjavax.swing.AbstractActionPropertyChangeListener
All Implemented Interfaces:
EventListener, java.beans.PropertyChangeListener
Direct Known Subclasses:
AbstractButton.ButtonActionPropertyChangeListener

abstract class AbstractActionPropertyChangeListener
extends Object
implements java.beans.PropertyChangeListener

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

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see XMLEncoder.

Author:
Georges Saab
See Also:
AbstractButton

Nested Class Summary
private static class AbstractActionPropertyChangeListener.OwnedWeakReference
           
 
Field Summary
private  Action action
           
private static ReferenceQueue queue
           
private  WeakReference target
           
 
Constructor Summary
(package private) AbstractActionPropertyChangeListener(JComponent c, Action a)
           
 
Method Summary
 Action getAction()
           
 JComponent getTarget()
           
 void setTarget(JComponent c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Field Detail

queue

private static ReferenceQueue queue

target

private WeakReference target

action

private Action action
Constructor Detail

AbstractActionPropertyChangeListener

AbstractActionPropertyChangeListener(JComponent c,
                                     Action a)
Method Detail

setTarget

public void setTarget(JComponent c)

getTarget

public JComponent getTarget()

getAction

public Action getAction()