|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A basic state interface. A State has always current value
(see getValue()). If the value changes, a State notifies
all registeres StateListeners (see addStateListener(StateListener).
The name of the State is for debug putposes only.
Note: State extends Disposable. If disposed, all added
StateListeners are removed and no further notification
will take place.
| Method Summary | |
void |
addStateListener(StateListener listener)
Registers the given StateListenerto listen to state changes of this
State. |
java.lang.String |
getName()
Return the name of this State. |
java.lang.Object |
getValue()
|
void |
removeStateListener(StateListener listener)
Unregisters the given StateListenerfrom this State. |
void |
setName(java.lang.String name)
Set the name of the state. |
| Methods inherited from interface com.sdm.quasar.client.core.common.Disposable |
dispose |
| Method Detail |
public java.lang.String getName()
State.
State (never null)public void setName(java.lang.String name)
name - the name of the state (must not be null)
java.lang.IllegalArgumentException - if the name is nullpublic java.lang.Object getValue()
public void addStateListener(StateListener listener)
StateListenerto listen to state changes of this
State.
listener - the StateListenerto addpublic void removeStateListener(StateListener listener)
StateListenerfrom this State.
listener - the StateListenerto remove
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||