textbender.g.beans
Class PropertyChangeEventAD

java.lang.Object
  extended by java.util.EventObject
      extended by java.beans.PropertyChangeEvent
          extended by PropertyChangeEventAD
All Implemented Interfaces:
Serializable, Runnable

public final class PropertyChangeEventAD
extends PropertyChangeEvent
implements Runnable

Auto-dispatch property change event, for asynchronous dispatch. An alternative to wrapping each event in a separately constructed Runnable, this approach is (presumeably) less offensive to the garbage collector.

Thread safe if the provided instance of PropertyChangeSupport sPC is thread safe. Serializable, at loss of auto-dispatch capability (sPC not serialized).

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PropertyChangeEventAD(Object source, String propertyName, Object oldValue, Object newValue, PropertyChangeSupport sPC)
          Creates a PropertyChangeEventAD
 
Method Summary
 void run()
          Dispatches this event to the listener list.
 
Methods inherited from class java.beans.PropertyChangeEvent
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyChangeEventAD

public PropertyChangeEventAD(Object source,
                             String propertyName,
                             Object oldValue,
                             Object newValue,
                             PropertyChangeSupport sPC)
Creates a PropertyChangeEventAD

Parameters:
sPC - property change support, to whose listener list the event will be dispatched
Method Detail

run

public void run()
Dispatches this event to the listener list.

Specified by:
run in interface Runnable