com.sdm.util.model.states
Class ValueAcceptedBooleanState

java.lang.Object
  extended bycom.sdm.quasar.client.core.states.AbstractState
      extended bycom.sdm.quasar.client.core.states.AbstractBooleanState
          extended bycom.sdm.quasar.client.core.states.AcceptorBooleanState
              extended bycom.sdm.util.model.states.ValueAcceptedBooleanState
All Implemented Interfaces:
BooleanState, Disposable, State

public class ValueAcceptedBooleanState
extends AcceptorBooleanState
implements BooleanState


Constructor Summary
ValueAcceptedBooleanState(java.lang.String name, ValueModel valueModel, Acceptor acceptor)
          Creates a new ValueAcceptedBooleanState.
ValueAcceptedBooleanState(java.lang.String name, ValueModel valueModel, java.lang.Object compareValue)
          Creates a new ValueAcceptedBooleanState.
ValueAcceptedBooleanState(java.lang.String name, ValueModel valueModel, java.lang.Object compareValue, boolean inverse)
          Creates a new ValueAcceptedBooleanState.
ValueAcceptedBooleanState(ValueModel valueModel, Acceptor acceptor)
          Creates a new ValueAcceptedBooleanState.
ValueAcceptedBooleanState(ValueModel valueModel, java.lang.Object compareValue)
          Creates a new ValueAcceptedBooleanState.
ValueAcceptedBooleanState(ValueModel valueModel, java.lang.Object compareValue, boolean inverse)
          Creates a new ValueAcceptedBooleanState.
 
Method Summary
 ValueModel getValueModel()
          returns the currently observed value model
 void setValueModel(ValueModel valueModel)
          sets a new ValueModel
 
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.BooleanState
isValueTrue
 
Methods inherited from interface com.sdm.quasar.client.core.states.State
addStateListener, getName, getValue, removeStateListener, setName
 
Methods inherited from interface com.sdm.quasar.client.core.common.Disposable
dispose
 

Constructor Detail

ValueAcceptedBooleanState

public ValueAcceptedBooleanState(java.lang.String name,
                                 ValueModel valueModel,
                                 java.lang.Object compareValue)
Creates a new ValueAcceptedBooleanState.

Parameters:
name - the name of this ValueAcceptedBooleanState (not null)
valueModel - the source ValueModel to compare the value of (may be null)
compareValue - the value to compare (may be null)

ValueAcceptedBooleanState

public ValueAcceptedBooleanState(ValueModel valueModel,
                                 java.lang.Object compareValue)
Creates a new ValueAcceptedBooleanState.

Parameters:
valueModel - the source ValueModel to compare the value of (may be null)
compareValue - the value to compare (may be null)

ValueAcceptedBooleanState

public ValueAcceptedBooleanState(java.lang.String name,
                                 ValueModel valueModel,
                                 java.lang.Object compareValue,
                                 boolean inverse)
Creates a new ValueAcceptedBooleanState.

Parameters:
name - the name of this ValueAcceptedBooleanState (not null)
valueModel - the source ValueModel to compare the value of (may be null)
compareValue - the value to compare (may be null)
inverse - if true comparision with not equals

ValueAcceptedBooleanState

public ValueAcceptedBooleanState(ValueModel valueModel,
                                 java.lang.Object compareValue,
                                 boolean inverse)
Creates a new ValueAcceptedBooleanState.

Parameters:
valueModel - the source ValueModel to compare the value of (may be null)
compareValue - the value to compare (may be null)
inverse - if true comparision with not equals

ValueAcceptedBooleanState

public ValueAcceptedBooleanState(java.lang.String name,
                                 ValueModel valueModel,
                                 Acceptor acceptor)
Creates a new ValueAcceptedBooleanState.

Parameters:
name - the name of this StateAcceptedBooleanState (not null)
valueModel - the source ValueModel to compare the value of (may be null)
acceptor - the Acceptor responsible for accepting the source ValueModel value (may not be null)

ValueAcceptedBooleanState

public ValueAcceptedBooleanState(ValueModel valueModel,
                                 Acceptor acceptor)
Creates a new ValueAcceptedBooleanState.

Parameters:
valueModel - the source ValueModel to compare the value of (may be null)
acceptor - the Acceptor responsible for accepting the source ValueModel value (may not be null)
Method Detail

getValueModel

public ValueModel getValueModel()
returns the currently observed value model


setValueModel

public void setValueModel(ValueModel valueModel)
sets a new ValueModel

Parameters:
valueModel - the new ValueModel.