|
|||||||||||
| 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.WrapperBooleanState
A BooleanState, that wrappes an other BooleanState:
This BooleanState refelcts the state of the wrapped BooleanState.
However, the wrapped BooleanState may be changed
(see setWrappedBooleanState(BooleanState)) while the adaption to other
BooleanStates or BooleanStateAdapters
stays now reflecting the state of the new set BooleanState.
The WrapperBooleanState reflects the state ConstantBooleanState.TRUE_STATE
if the wrapped state is null.
| Constructor Summary | |
WrapperBooleanState(BooleanState state)
Creates a new WrapperBooleanState. |
|
WrapperBooleanState(java.lang.String name,
BooleanState state)
Creates a new WrapperBooleanState. |
|
| Method Summary | |
void |
dispose()
Disposes the component. |
protected BooleanState |
getBooleanState()
|
BooleanState |
getState()
Returns the source BooleanState. |
java.lang.Object |
getValue()
|
boolean |
isValueTrue()
Returns true, if this State is enabled,
false otherwise. |
void |
setWrappedBooleanState(BooleanState newWrappedBooleanState)
Set a new wrapped state. |
| Methods inherited from class com.sdm.quasar.client.core.states.AbstractState |
addStateListener, appendParametersToString, 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 |
| Constructor Detail |
public WrapperBooleanState(BooleanState state)
WrapperBooleanState.
public WrapperBooleanState(java.lang.String name,
BooleanState state)
WrapperBooleanState.
name - | Method Detail |
public void dispose()
throws DisposeException
Disposable
Important:
This method is called by an administrating component
and must never be called directly.
The implementation should release any resources or objects allocated and
any services registered. Furthermore, this method should be developed
carefully to free a maximum of resources even when the system may
have become unstable. In case of one or multiple errors, you should collect
them in a DisposeException, continue with the execution,
and throw it at the end of the method.
Note: The implementation must not return before the component is disposed. Any threads or asynchronous calls started must be completed before this method returns.
dispose in interface Disposabledispose in class AbstractStateDisposeExceptionAbstractState.dispose()public BooleanState getState()
BooleanState.
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 BooleanState getBooleanState()
public void setWrappedBooleanState(BooleanState newWrappedBooleanState)
WrapperBooleanState to other
BooleanStates or BooleanStateAdapters
is unaffected. But now the WrapperBooleanState reflects the state
of the new set BooleanState
newWrappedBooleanState - the now wrapped state
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||