symplik.flower
Class DefaultQuestion

java.lang.Object
  extended by symplik.flower.Question
      extended by symplik.flower.DefaultQuestion
All Implemented Interfaces:
Constants

public class DefaultQuestion
extends Question


Field Summary
static java.lang.String RCS_ID
           
 
Fields inherited from interface symplik.flower.Constants
CLASS_DEFAULT_START, CLASS_DIR_BROWSER, CLASS_FILE_BROWSER, DISPLAY_MODE, DISPLAY_MODE_CONSOLE, DISPLAY_MODE_GUI, DISPLAY_MODE_SLIENT, FILE_BROWSER_CURR_DIR, FILE_BROWSER_DIR, FILE_BROWSER_FILE, FLOWER_CONFIG, FLOWER_CONFIG_FILE, FLOWER_LAST_QUESTION, FLOWER_LOG_FILE, FLOWER_LOG_LEVEL, FLOWER_LOG_OUTPUT, FLOWER_RESPONSES, FLOWER_RESPONSES_FILE, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_OUTPUT_FILE, LOG_OUTPUT_SYSTEM_OUT, LOG_WARN, SORT_AS_IS, SORT_BY_DESC, SORT_BY_DESC_CI, SORT_BY_KEY, SORT_BY_KEY_CI
 
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

RCS_ID

public static final java.lang.String RCS_ID
See Also:
Constant Field Values
Constructor Detail

DefaultQuestion

public DefaultQuestion()
Method Detail

getQuestion

public java.lang.String getQuestion()
Description copied from class: Question
override this method to return the question content.

Overrides:
getQuestion in class Question
Returns:
The content of this question

getExplanation

public java.lang.String getExplanation()
Description copied from class: Question
override this method if you want to show explanation of this question. This content is shown below the Question content.

Overrides:
getExplanation in class Question
Returns:
explanation content

isMultipleChoices

public boolean isMultipleChoices()
Description copied from class: Question
override this method to tell whether the response is a free-text or a multiple choice.

Overrides:
isMultipleChoices in class Question
Returns:
False if the question requires a free-text answer. Default is True.

needAnswer

public boolean needAnswer()
Description copied from class: Question
sometimes the question is optional; no answer is needed. By default the question requires an answer.

Overrides:
needAnswer in class Question
Returns:
False if this question does not require an answer. Default is True.

nextAction

public java.lang.String nextAction()
Description copied from class: Question
override this method to tell which Question or Action class to be the next one. If none specified, the program will exit.

Overrides:
nextAction in class Question
Returns:
Class alias or full qualified class name


Copyright © 2010 Symplik Tech. Co. Ltd. All Rights Reserved.