public abstract class YesNoQuestion extends ChoiceQuestion
question
to which the response is yes or no.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NO
A value for a negative response.
|
static java.lang.String |
YES
A value for an affirmative response.
|
value
Modifier | Constructor and Description |
---|---|
protected |
YesNoQuestion(Interview interview,
java.lang.String tag)
Create a question with a nominated tag.
|
protected |
YesNoQuestion(Interview interview,
java.lang.String tag,
java.lang.String defaultValue)
Create a question with a nominated tag.
|
Modifier and Type | Method and Description |
---|---|
protected void |
setChoices(java.lang.String[] choices)
Set the set of legal responses for this question.
|
clear, getChoices, getDefaultValue, getDisplayChoices, getDisplayValue, getStringValue, getValue, getValueOnPath, isValueAlwaysValid, isValueValid, load, save, setChoices, setChoices, setDefaultValue, setI18NChoices, setValue
addMarker, equals, export, getChecklistItems, getHelpID, getImage, getInterview, getKey, getNext, getResourceString, getResourceString, getSummary, getTag, getText, getTextArgs, hashCode, hasMarker, isEnabled, isHidden, reload, removeMarker, setImage, setImage, setSummary, setText
public static final java.lang.String YES
public static final java.lang.String NO
protected YesNoQuestion(Interview interview, java.lang.String tag)
interview
- The interview containing this question.tag
- A unique tag to identify this specific question.protected YesNoQuestion(Interview interview, java.lang.String tag, java.lang.String defaultValue)
interview
- The interview containing this question.tag
- A unique tag to identify this specific question.defaultValue
- A default value for the question; this must be one of
null, YES, or NO.protected final void setChoices(java.lang.String[] choices)
setChoices
in class ChoiceQuestion
choices
- The set possible responses for this question.java.lang.IllegalArgumentException
- always.ChoiceQuestion.getChoices()
,
ChoiceQuestion.setChoices(String[], boolean)
,
ChoiceQuestion.setChoices(String[], String[])
Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.