|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.deltax.util.listener.BaseSignalSource
A base implementation of SignalSource. The notify(Signal) and notifyException(ExceptionSignal) methods
are protected.
| Field Summary | |
protected ListenerSupport |
ls
The listener support object |
| Constructor Summary | |
protected |
BaseSignalSource()
Initialize the listener support object. |
| Method Summary | |
void |
addListener(Listener listener)
Allow source clients to add listeners. |
int |
countListeners()
Return the number of registered listeners. |
boolean |
isRegistered(Listener listener)
Return true if the given object is registered as a listener. |
protected void |
notify(Signal signal)
Notify a signal to the listners. |
protected void |
notifyException(ExceptionSignal exceptionsignal)
Notify a exception signal to the listners. |
void |
removeAllListeners()
|
void |
removeListener(Listener listener)
Allow source clients to remove listeners. |
boolean |
supportsExceptionSignals()
Always return true, since this implementation does support exception signals. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ListenerSupport ls
listener support object
| Constructor Detail |
protected BaseSignalSource()
listener support object.
| Method Detail |
public void addListener(Listener listener)
listener - the listener to add.public boolean isRegistered(Listener listener)
listener - the listner to check
protected void notify(Signal signal)
signal to the listners.
signal - the signal to be notified.protected void notifyException(ExceptionSignal exceptionsignal)
exception signal to the listners.
public int countListeners()
public void removeListener(Listener listener)
listener - the listener to remove.public void removeAllListeners()
public boolean supportsExceptionSignals()
exception signals.
supportsExceptionSignals in interface SignalSource
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||