net.sf.sbcc.componentcombo
Class AbstractActionPropertyChangeListener

java.lang.Object
  extended by net.sf.sbcc.componentcombo.AbstractActionPropertyChangeListener
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener

abstract class AbstractActionPropertyChangeListener
extends java.lang.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:
Christoph Bimminger

Nested Class Summary
private static class AbstractActionPropertyChangeListener.OwnedWeakReference
           
 
Field Summary
private  javax.swing.Action action
           
private static java.lang.ref.ReferenceQueue queue
           
private  java.lang.ref.WeakReference target
           
 
Constructor Summary
AbstractActionPropertyChangeListener(javax.swing.JComponent c, javax.swing.Action a)
           
 
Method Summary
 javax.swing.Action getAction()
           
 javax.swing.JComponent getTarget()
           
 void setTarget(javax.swing.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 java.lang.ref.ReferenceQueue queue

target

private java.lang.ref.WeakReference target

action

private javax.swing.Action action
Constructor Detail

AbstractActionPropertyChangeListener

AbstractActionPropertyChangeListener(javax.swing.JComponent c,
                                     javax.swing.Action a)
Method Detail

setTarget

public void setTarget(javax.swing.JComponent c)

getTarget

public javax.swing.JComponent getTarget()

getAction

public javax.swing.Action getAction()