|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsymplik.flower.Question
symplik.flower.DefaultQuestion
public class DefaultQuestion
Field Summary | |
---|---|
static java.lang.String |
RCS_ID
|
Constructor Summary | |
---|---|
DefaultQuestion()
|
Method Summary | |
---|---|
java.lang.String |
getExplanation()
override this method if you want to show explanation of this question. |
java.lang.String |
getQuestion()
override this method to return the question content. |
boolean |
isMultipleChoices()
override this method to tell whether the response is a free-text or a multiple choice. |
boolean |
needAnswer()
sometimes the question is optional; no answer is needed. |
java.lang.String |
nextAction()
override this method to tell which Question or Action class to be the next one. |
Methods inherited from class symplik.flower.Question |
---|
choices, enterQuestion, enterQuestionMsg, fileExtension, getTitle, isDirectoryInput, isFileInput, isNewScreen, isPasswordInput, lastAction, leaveQuestion, leaveQuestionMsg, lineWrap, showExit, sortChoicesBy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RCS_ID
Constructor Detail |
---|
public DefaultQuestion()
Method Detail |
---|
public java.lang.String getQuestion()
Question
getQuestion
in class Question
public java.lang.String getExplanation()
Question
getExplanation
in class Question
public boolean isMultipleChoices()
Question
isMultipleChoices
in class Question
public boolean needAnswer()
Question
needAnswer
in class Question
public java.lang.String nextAction()
Question
nextAction
in class Question
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |