|
|||||||||||
| 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.NOTBooleanState
A BooleanState, that negates it's source state.
| Constructor Summary | |
NOTBooleanState(BooleanState state)
Creates a new NOTBooleanState. |
|
NOTBooleanState(java.lang.String name,
BooleanState state)
Creates a new NOTBooleanState. |
|
| Method Summary | |
static NOTBooleanState |
create(BooleanState state)
Creates a new NOTBooleanState. |
static NOTBooleanState |
create(java.lang.String name,
BooleanState state)
Creates a new NOTBooleanState. |
void |
dispose()
Disposes the component. |
BooleanState |
getState()
Returns the source BooleanState. |
java.lang.Object |
getValue()
|
boolean |
isValueTrue()
Returns true, if this State is enabled,
false otherwise. |
| 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 NOTBooleanState(BooleanState state)
NOTBooleanState.
public NOTBooleanState(java.lang.String name,
BooleanState state)
NOTBooleanState.
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()public static NOTBooleanState create(BooleanState state)
NOTBooleanState.
state - the BooleanState to negate
NOTBooleanState
public static NOTBooleanState create(java.lang.String name,
BooleanState state)
NOTBooleanState.
name - the name of this NOTBooleanState (not null)state - the BooleanState to negate
NOTBooleanState
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||