public static class PropertiesQuestion.BooleanConstraints extends PropertiesQuestion.ValueConstraints
Constructor and Description |
---|
PropertiesQuestion.BooleanConstraints() |
PropertiesQuestion.BooleanConstraints(boolean isYesNo) |
PropertiesQuestion.BooleanConstraints(boolean isYesNo,
boolean unsetAllowed) |
Modifier and Type | Method and 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.
|
isReadOnly, isUnsetAllowed, isValid, isVisible, setReadOnly, setUnsetAllowed, setVisible
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)
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)
Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.