|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.interview.PropertiesQuestion.ValueConstraints
com.sun.interview.PropertiesQuestion.BooleanConstraints
public static class PropertiesQuestion.BooleanConstraints
Constraints allowing a value to be either a boolean or Yes/No response.
| Constructor Summary | |
|---|---|
PropertiesQuestion.BooleanConstraints()
|
|
PropertiesQuestion.BooleanConstraints(boolean isYesNo)
|
|
PropertiesQuestion.BooleanConstraints(boolean isYesNo,
boolean unsetAllowed)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertiesQuestion.BooleanConstraints()
public PropertiesQuestion.BooleanConstraints(boolean isYesNo)
isYesNo - Should this question be presented as a Yes/No question
rather than a True/False.setUseYesNo(boolean)
public PropertiesQuestion.BooleanConstraints(boolean isYesNo,
boolean unsetAllowed)
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.PropertiesQuestion.ValueConstraints.setUnsetAllowed(boolean),
setUseYesNo(boolean)| Method Detail |
|---|
public void setUseYesNo(boolean state)
state - True if this should be rendered as a Yes/No question,
false if it should be a boolean true/false.isYesNo()public boolean isYesNo()
setUseYesNo(boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||