|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.util.AsynchronousPropertyChangeWrapper
public final class AsynchronousPropertyChangeWrapper
Provides support for the asynchronous handling of property-change events.
Property-change events are placed in a one-element event-queue for later,
asynchronous processing by a wrapped PropertyChangeListener. If
more than one event is received while the asynchronous, wrapped PropertyChangeListener is processing an event, then all events but the last
are discarded. This implementation is good for PropertyChangeEvents
that are self-contained and completely independent of one another.
| Constructor Summary | |
|---|---|
AsynchronousPropertyChangeWrapper(PropertyChangeListener listener)
Constructs from nothing. |
|
| Method Summary | |
|---|---|
void |
doRemove()
_more_ |
void |
propertyChange(PropertyChangeEvent event)
Receives a PropertyChangeEvent for asynchronous handling. |
void |
run()
Executes the asynchronous, PropertyChangeEvent-handling thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsynchronousPropertyChangeWrapper(PropertyChangeListener listener)
PropertyChangeEvent thread will be
started.
listener - The listener to be wrapped.
NullPointerException - if the listener is null.| Method Detail |
|---|
public void doRemove()
public final void run()
PropertyChangeEvent-handling thread.
run in interface Runnablepublic final void propertyChange(PropertyChangeEvent event)
PropertyChangeEvent for asynchronous handling. The
event is placed on the event-queue, replacing any previous event.
propertyChange in interface PropertyChangeListenerevent - The event to receive. May be null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||