|
|||||||||||
| 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.AcceptorBooleanState
com.sdm.quasar.client.core.states.StateAcceptedBooleanState
A BooleanState, that adapts the State value
(see State.getValue() to the own boolean state value
(see BooleanState.isValueTrue()) using an Acceptor:
The BooleanState is true, if the Acceptor accepts the
State value. (see StateAcceptedBooleanState(State, Acceptor)
For convenience the value of a source state is accepted,
if it is equal to a given reference value
(see StateAcceptedBooleanState(State, Object),
and AcceptorBooleanState.setCompareValue(Object)).
| Constructor Summary | |
StateAcceptedBooleanState(State sourceState,
Acceptor acceptor)
Creates a new StateAcceptedBooleanState. |
|
StateAcceptedBooleanState(State sourceState,
java.lang.Object compareValue)
Creates a new StateAcceptedBooleanState. |
|
StateAcceptedBooleanState(State sourceState,
java.lang.Object compareValue,
boolean inverse)
Creates a new StateAcceptedBooleanState. |
|
StateAcceptedBooleanState(java.lang.String name,
State sourceState,
Acceptor acceptor)
Creates a new StateAcceptedBooleanState. |
|
StateAcceptedBooleanState(java.lang.String name,
State sourceState,
java.lang.Object compareValue)
Creates a new StateAcceptedBooleanState. |
|
StateAcceptedBooleanState(java.lang.String name,
State sourceState,
java.lang.Object compareValue,
boolean inverse)
Creates a new StateAcceptedBooleanState. |
|
| Method Summary | |
State |
getState()
returns the currently observed state |
void |
setState(State state)
sets a new State |
| Methods inherited from class com.sdm.quasar.client.core.states.AcceptorBooleanState |
getAcceptor, getSource, setAcceptor, setCompareValue, setSource, updateAdaptedValue |
| Methods inherited from class com.sdm.quasar.client.core.states.AbstractBooleanState |
getValue, isValueTrue, setValue, 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 StateAcceptedBooleanState(java.lang.String name,
State sourceState,
java.lang.Object compareValue)
StateAcceptedBooleanState.
name - the name of this StateAcceptedBooleanState (not null)sourceState - the source State to compare value of (may be null)compareValue - the value to compare (may be null)
public StateAcceptedBooleanState(State sourceState,
java.lang.Object compareValue)
StateAcceptedBooleanState.
sourceState - the source State to compare value of (may be null)compareValue - the value to compare (may be null)
public StateAcceptedBooleanState(java.lang.String name,
State sourceState,
java.lang.Object compareValue,
boolean inverse)
StateAcceptedBooleanState.
name - the name of this StateAcceptedBooleanState (not null)sourceState - the source State to compare value of (may be null)compareValue - the value to compare (may be null)inverse - if true comparision with not equals
public StateAcceptedBooleanState(State sourceState,
java.lang.Object compareValue,
boolean inverse)
StateAcceptedBooleanState.
sourceState - the source State to compare value of (may be null)compareValue - the value to compare (may be null)inverse - if true comparision with not equals
public StateAcceptedBooleanState(java.lang.String name,
State sourceState,
Acceptor acceptor)
StateAcceptedBooleanState.
name - the name of this StateAcceptedBooleanState (not null)sourceState - the source State, its value is the object for acceptance (may be null)acceptor - the Acceptor responsible for accepting
the source States value (may not be null)
public StateAcceptedBooleanState(State sourceState,
Acceptor acceptor)
StateAcceptedBooleanState.
sourceState - the source State, its value is the object for acceptance (may be null)acceptor - the Acceptor responsible for accepting
the source States value (may not be null)| Method Detail |
public State getState()
public void setState(State state)
State
state - the new State.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||