|
|||||||||||
| 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
An abstract BooleanState implementation, that manages the enabled state
as boolean, that subclasses can directly set.
| Constructor Summary | |
AbstractBooleanState()
Creates a new AbstractBooleanState. |
|
AbstractBooleanState(boolean initialValue)
Creates a new AbstractBooleanState. |
|
AbstractBooleanState(java.lang.String name)
Creates a new AbstractBooleanState. |
|
AbstractBooleanState(java.lang.String name,
boolean initialValue)
Creates a new AbstractBooleanState. |
|
| Method Summary | |
java.lang.Object |
getValue()
|
boolean |
isValueTrue()
Returns true, if this State is enabled,
false otherwise. |
protected void |
setValue(boolean enabled)
Sets the enabled state of this BooleanState.
|
protected boolean |
setValueWithoutNotification(boolean enabled)
Sets the enabled state of this BooleanState.
|
| 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 AbstractBooleanState()
AbstractBooleanState.
public AbstractBooleanState(boolean initialValue)
AbstractBooleanState.
initialValue - the initial value of this AbstractBooleanStatepublic AbstractBooleanState(java.lang.String name)
AbstractBooleanState.
name - the name of this AbstractBooleanState (not null)
public AbstractBooleanState(java.lang.String name,
boolean initialValue)
AbstractBooleanState.
name - the name of this AbstractBooleanState (not null)initialValue - the initial value of this AbstractBooleanState| Method Detail |
public java.lang.Object getValue()
getValue in interface StateState.getValue()public boolean isValueTrue()
BooleanStatetrue, if this State is enabled,
false otherwise.
isValueTrue in interface BooleanStatetrue, if this State is enabled,
false otherwise.BooleanState.isValueTrue()protected void setValue(boolean enabled)
BooleanState.
If the enablement changes in respect to this call, all
registered listeners will get notified.
enabled - the enabled state.protected boolean setValueWithoutNotification(boolean enabled)
BooleanState.
Note: No listeners will informed about state changes.
This method is for special purposes only (e.g. controlling synchronized
blockes); normal users should call setValue(boolean).
enabled - the enabled state.
true, if the enablement changed and notification
should be made; false otherwise.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||