|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.maryanovsky.gwtutils.client.event.DelegatingReadyListenerCollection<T>
public class DelegatingReadyListenerCollection<T>
A ready listener, which simply reports what it sees to a list of other ready listener.
Constructor Summary | |
---|---|
DelegatingReadyListenerCollection()
Creates a new DelegatingReadyListenerCollection . |
|
DelegatingReadyListenerCollection(ReadyListener<T> readyListener)
Creates a new DelegatingReadyListenerCollection with the
specified ready listener as the first of many to report to. |
Method Summary | |
---|---|
void |
add(ReadyListener<T> readyListener)
Adds the specified ready listener to get notified when one of the sources we are registered with changes its ready state. |
void |
becameReady(T source)
Notifies our ready listeners of the change. |
void |
becameUnready(T source)
Notifies our ready listeners of the change. |
void |
remove(ReadyListener<T> readyListener)
Removes the specified ready listener from getting notified when one of the sources with are registered with changes its ready state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegatingReadyListenerCollection()
DelegatingReadyListenerCollection
.
public DelegatingReadyListenerCollection(ReadyListener<T> readyListener)
DelegatingReadyListenerCollection
with the
specified ready listener as the first of many to report to. This
constructor is useful if you just have one listener to delegate to.
Method Detail |
---|
public void add(ReadyListener<T> readyListener)
public void remove(ReadyListener<T> readyListener)
public void becameReady(T source)
becameReady
in interface ReadyListener<T>
public void becameUnready(T source)
becameUnready
in interface ReadyListener<T>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |