Package com.sun.interview
Class PropertiesQuestion.BooleanConstraints
- java.lang.Object
-
- com.sun.interview.PropertiesQuestion.ValueConstraints
-
- com.sun.interview.PropertiesQuestion.BooleanConstraints
-
- Enclosing class:
- PropertiesQuestion
public static class PropertiesQuestion.BooleanConstraints extends PropertiesQuestion.ValueConstraints
Constraints allowing a value to be either a boolean or Yes/No response.
-
-
Constructor Summary
Constructors Constructor Description BooleanConstraints()
BooleanConstraints(boolean isYesNo)
BooleanConstraints(boolean isYesNo, boolean unsetAllowed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isYesNo()
Is this a yes/no field, instead of the default true/false?void
setUseYesNo(boolean state)
Indicate whether this should be a Yes/No question or True/False.-
Methods inherited from class com.sun.interview.PropertiesQuestion.ValueConstraints
isReadOnly, isUnsetAllowed, isValid, isVisible, setReadOnly, setUnsetAllowed, setVisible
-
-
-
-
Field Detail
-
YES
public static final java.lang.String YES
- See Also:
- Constant Field Values
-
NO
public static final java.lang.String NO
- See Also:
- Constant Field Values
-
TRUE
public static final java.lang.String TRUE
- See Also:
- Constant Field Values
-
FALSE
public static final java.lang.String FALSE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BooleanConstraints
public BooleanConstraints()
-
BooleanConstraints
public BooleanConstraints(boolean isYesNo)
- Parameters:
isYesNo
- Should this question be presented as a Yes/No question rather than a True/False.- See Also:
setUseYesNo(boolean)
-
BooleanConstraints
public BooleanConstraints(boolean isYesNo, boolean unsetAllowed)
- Parameters:
isYesNo
- Should this question be presented as a Yes/No question rather than a True/False.unsetAllowed
- Can the question be set to have no value.- See Also:
PropertiesQuestion.ValueConstraints.setUnsetAllowed(boolean)
,setUseYesNo(boolean)
-
-
Method Detail
-
setUseYesNo
public void setUseYesNo(boolean state)
Indicate whether this should be a Yes/No question or True/False.- Parameters:
state
- True if this should be rendered as a Yes/No question, false if it should be a boolean true/false.- See Also:
isYesNo()
-
isYesNo
public boolean isYesNo()
Is this a yes/no field, instead of the default true/false?- Returns:
- True if this is a Yes/No question, false if it is a True/False question.
- See Also:
setUseYesNo(boolean)
-
-