public static class PropertiesQuestion.BooleanConstraints extends PropertiesQuestion.ValueConstraints
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FALSE |
static java.lang.String |
NO |
static java.lang.String |
TRUE |
static java.lang.String |
YES |
| Constructor and Description |
|---|
BooleanConstraints() |
BooleanConstraints(boolean isYesNo) |
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, setVisiblepublic static final java.lang.String YES
public static final java.lang.String NO
public static final java.lang.String TRUE
public static final java.lang.String FALSE
public BooleanConstraints()
public BooleanConstraints(boolean isYesNo)
isYesNo - Should this question be presented as a Yes/No question
rather than a True/False.setUseYesNo(boolean)public 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, 2015, Oracle and/or its affiliates. All rights reserved.