|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jsurveylib.model.question.Question
org.jsurveylib.model.question.OneChoiceQuestion
public abstract class OneChoiceQuestion
FOR INTERNAL USE ONLY.
Copyright (c)2007, Daniel Kaplan
Method Summary | |
---|---|
java.lang.String |
getAnswer()
The answer of this question. |
java.util.List<Choice> |
getChoices()
Return an unmodifiable list of Choices |
int |
getSelectedIndex()
|
void |
setAnswer(java.lang.String value)
Sets the answer of this question. |
Methods inherited from class org.jsurveylib.model.question.Question |
---|
addAnswerListener, addEnableListener, addValidationListener, addVisibilityListener, fireAnswerChanged, fireAnswerChanged, getCurrentValidationMessage, getId, getLabel, getOnAnswerChanged, isAnswerable, isAnswered, isEnabled, isMandatory, isValid, isVisible, populateTemplate, removeAnswerListener, removeEnableListener, removeValidationListener, removeVisibilityListener, setEnabled, setLabel, setLabel, setMandatory, setOnAnswerChanged, setValid, setVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jsurveylib.model.Visitable |
---|
accept |
Method Detail |
---|
public java.util.List<Choice> getChoices()
public void setAnswer(java.lang.String value)
Question
setAnswer
in class Question
value
- The answer or "" if there is no answer. This should never return null.public java.lang.String getAnswer()
Question
getAnswer
in class Question
public int getSelectedIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |