|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.display.AbstractStateAdapter<Object>
net.sf.doolin.gui.display.ConditionalStateAdapter
public class ConditionalStateAdapter
State adapter based on a condition
| Constructor Summary | |
|---|---|
ConditionalStateAdapter()
|
|
| Method Summary | |
|---|---|
DisplayState |
convertSubjectToTarget(Object subjectValue)
Conversion from the subject to the target |
DisplayState |
getIfFalseState()
Gets the if false state. |
DisplayState |
getIfTrueState()
Gets the if true state. |
Object |
getOperand()
Gets the operand. |
ConditionalOperator |
getOperator()
Gets the operator. |
void |
setIfFalseState(DisplayState ifFalseState)
Display state to return when condition is evaluated to false |
void |
setIfTrueState(DisplayState ifTrueState)
Display state to return when condition is evaluated to true |
void |
setOperand(Object operand)
Sets the operand for the operator. |
void |
setOperator(ConditionalOperator operator)
Sets the operator to use. |
| 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 |
|---|
public ConditionalStateAdapter()
| Method Detail |
|---|
public DisplayState convertSubjectToTarget(Object subjectValue)
Adapter
subjectValue - Subject value
public DisplayState getIfFalseState()
public DisplayState getIfTrueState()
public Object getOperand()
public ConditionalOperator getOperator()
public void setIfFalseState(DisplayState ifFalseState)
false
ifFalseState - Display state to return when condition is evaluated to truepublic void setIfTrueState(DisplayState ifTrueState)
true
ifTrueState - Display state to return when condition is evaluated to truepublic void setOperand(Object operand)
operand - the new operandpublic void setOperator(ConditionalOperator operator)
operator - the new operator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||