net.sf.doolin.gui.display
Class BooleanStateAdapter

java.lang.Object
  extended by net.sf.doolin.gui.display.AbstractStateAdapter<Boolean>
      extended by net.sf.doolin.gui.display.BooleanStateAdapter
All Implemented Interfaces:
StateAdapter<Boolean>, Adapter<Boolean,DisplayState>

public class BooleanStateAdapter
extends AbstractStateAdapter<Boolean>

Adapter from a Boolean value to a DisplayState.

Author:
Damien Coraboeuf

Constructor Summary
BooleanStateAdapter()
           
 
Method Summary
 DisplayState convertSubjectToTarget(Boolean subjectValue)
          Conversion from the subject to the target
 DisplayState getIfFalseState()
          Gets the state if the boolean is evaluated to false
 DisplayState getIfTrueState()
          Gets the state if the boolean is evaluated to true
 void setIfFalseState(DisplayState ifFalseState)
          Sets the state to return if the boolean is evaluated to false
 void setIfTrueState(DisplayState ifTrueState)
          Sets the state to return if the boolean is evaluated to true
 
Methods inherited from class net.sf.doolin.gui.display.AbstractStateAdapter
convertTargetToSubject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanStateAdapter

public BooleanStateAdapter()
Method Detail

convertSubjectToTarget

public DisplayState convertSubjectToTarget(Boolean subjectValue)
Description copied from interface: Adapter
Conversion from the subject to the target

Parameters:
subjectValue - Subject value
Returns:
Target value

getIfTrueState

public DisplayState getIfTrueState()
Gets the state if the boolean is evaluated to true

Returns:
State

setIfTrueState

public void setIfTrueState(DisplayState ifTrueState)
Sets the state to return if the boolean is evaluated to true

Parameters:
ifTrueState - State

getIfFalseState

public DisplayState getIfFalseState()
Gets the state if the boolean is evaluated to false

Returns:
State

setIfFalseState

public void setIfFalseState(DisplayState ifFalseState)
Sets the state to return if the boolean is evaluated to false

Parameters:
ifFalseState - State


Copyright © 2011. All Rights Reserved.