textbender.g.beans
Class PropertyChangeEventAD
java.lang.Object
java.util.EventObject
java.beans.PropertyChangeEvent
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
Method Summary |
void |
run()
Dispatches this event to the listener list. |
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
run
public void run()
- Dispatches this event to the listener list.
- Specified by:
run
in interface Runnable