|
|||||||||||
| 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
A BooleanState, that adapts an object
to the own boolean state value
(see BooleanState.isValueTrue()) using an Acceptor:
The BooleanState is true, if the Acceptor accepts the
object.
For convenience the value of a source object is accepted, if it is equal to a given reference object.
| Constructor Summary | |
AcceptorBooleanState(Acceptor acceptor)
Creates a new AcceptorBooleanState. |
|
AcceptorBooleanState(java.lang.Object compareValue)
Creates a new AcceptorBooleanState. |
|
AcceptorBooleanState(java.lang.Object compareValue,
boolean inverse)
Creates a new AcceptorBooleanState. |
|
AcceptorBooleanState(java.lang.String name,
Acceptor acceptor)
Creates a new AcceptorBooleanState. |
|
AcceptorBooleanState(java.lang.String name,
java.lang.Object compareValue)
Creates a new AcceptorBooleanState. |
|
AcceptorBooleanState(java.lang.String name,
java.lang.Object compareValue,
boolean inverse)
Creates a new AcceptorBooleanState. |
|
| Method Summary | |
Acceptor |
getAcceptor()
|
java.lang.Object |
getSource()
returns the current source object |
void |
setAcceptor(Acceptor acceptor)
sets a new Acceptor |
void |
setCompareValue(java.lang.Object compareValue)
Sets the value to compare the state's value with to the given value. |
void |
setSource(java.lang.Object source)
sets a new source object |
void |
updateAdaptedValue()
Checks, if the current source object is accepted by the acceptor. |
| 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 AcceptorBooleanState(java.lang.String name,
java.lang.Object compareValue)
AcceptorBooleanState.
name - the name of this AcceptorBooleanState (not null)compareValue - the value to compare (may be null)public AcceptorBooleanState(java.lang.Object compareValue)
AcceptorBooleanState.
compareValue - the value to compare (may be null)
public AcceptorBooleanState(java.lang.String name,
java.lang.Object compareValue,
boolean inverse)
AcceptorBooleanState.
name - the name of this AcceptorBooleanState (not null)compareValue - the value to compare (may be null)inverse - if true comparision with not equals
public AcceptorBooleanState(java.lang.Object compareValue,
boolean inverse)
AcceptorBooleanState.
compareValue - the value to compare (may be null)inverse - if true comparision with not equals
public AcceptorBooleanState(java.lang.String name,
Acceptor acceptor)
AcceptorBooleanState.
name - the name of this AcceptorBooleanState (not null)acceptor - the Acceptor responsible for accepting
the source States value (may not be null)public AcceptorBooleanState(Acceptor acceptor)
AcceptorBooleanState.
acceptor - the Acceptor responsible for accepting
the source States value (may not be null)| Method Detail |
public void setCompareValue(java.lang.Object compareValue)
compareValue - the value to compare with.public java.lang.Object getSource()
public Acceptor getAcceptor()
Acceptorpublic void setAcceptor(Acceptor acceptor)
Acceptor
acceptor - the new Acceptor.public void setSource(java.lang.Object source)
source - the new source.public void updateAdaptedValue()
AcceptorBooleanState.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||