|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.states.AbstractState
com.sdm.quasar.client.core.states.AbstractBooleanState
com.sdm.quasar.client.core.states.MutableBooleanState
A very simple implementation of BooleanState.
Note: MutableBooleanState is thread-save, so it might be changed
even in non-edt-threads (althrough it is not recommended).
| Constructor Summary | |
MutableBooleanState()
Creates a new MutableBooleanState. |
|
MutableBooleanState(boolean enabled)
Creates a new MutableBooleanState. |
|
MutableBooleanState(java.lang.String name)
Creates a new MutableBooleanState. |
|
MutableBooleanState(java.lang.String name,
boolean enabled)
Creates a new MutableBooleanState. |
|
| Method Summary | |
void |
setValue(boolean enabled)
Sets the enabled state of this BooleanState.
|
| Methods inherited from class com.sdm.quasar.client.core.states.AbstractBooleanState |
getValue, isValueTrue, setValueWithoutNotification |
| Methods inherited from class com.sdm.quasar.client.core.states.AbstractState |
addStateListener, appendParametersToString, dispose, fireStateChanged, getName, removeStateListener, setName, stateValueToString, toString, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sdm.quasar.client.core.states.State |
addStateListener, getName, removeStateListener, setName |
| Methods inherited from interface com.sdm.quasar.client.core.common.Disposable |
dispose |
| Constructor Detail |
public MutableBooleanState()
MutableBooleanState.
public MutableBooleanState(java.lang.String name)
MutableBooleanState.
name - the name of this BooleanState (not null)public MutableBooleanState(boolean enabled)
MutableBooleanState.
enabled - the initial enabled state. Note, that this does not yet
fire a state change (we still have no listeners). The first state change
will be fired, when the state changes different from the given initial
state.
public MutableBooleanState(java.lang.String name,
boolean enabled)
MutableBooleanState.
name - the name of this BooleanState (not null)enabled - the initial enabled state. Note, that this does not yet
fire a state change (we still have no listeners). The first state change
will be fired, when the state changes different from the given initial
state.| Method Detail |
public void setValue(boolean enabled)
BooleanState.
If the enablement changes in respect to this call, all
registered listeners will get notified.
setValue in class AbstractBooleanStateenabled - the enabled state.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||