Method Summary |
|
protected void | addCondition(Vector conditions, Question question, Option option, String answer) |
public void | addGroup(QuestionGroup group) |
public void | deletePageModel(int pageNr) |
public int | getCurrentCardNumber() |
public QuestionGroup | getCurrentGroup() Gets the current question group in
the iteration through this survey. |
public String | getCurrentGroupId() |
public Vector | getCurrentGroupResponses() Gets the responses from the current question group. |
public String | getCurrentOptionId() |
public String | getCurrentOptionText() |
public String | getCurrentPageNr() |
public Question | getCurrentQuestion() Gets the current question in the
iteration through this survey. |
public String | getCurrentQuestionId() |
public int | getCurrentQuestionIndex() |
public String | getCurrentQuestionText() |
public QuestionGroup | getGroup(int idx) |
public QuestionGroup | getGroupById(int groupId) |
public int | getGroupIdxById(int groupId) |
public Vector | getGroups() |
public int | getId() |
public String | getName() |
public int | getNextGroupId() |
public String | getNextOptionId() |
public String | getNextOptionText() |
public Question | getNextQuestion() |
public int | getNextQuestionId() |
public String | getNextQuestionText() Returns text of the next question in the current survey. |
public int | getNumGroups() |
public int | getNumQuestions() |
public int | getNumQuestionsPerPage() |
public int | getPageNrAsInt() |
public Question | getQuestionById(int questionId) |
protected Condition | getResponse(Vector responses, Question question) Gets the user's response for the specified question. |
public XResponseSet | getResponses() |
public Date | getStartTime() |
public Vector | getUserResponses() |
public Boolean | hasMoreCards() Gets whether current question groups has more cards
to be displayed. |
public boolean | hasMoreGroups() Indicates whether the iteration through
this survey has next question group. |
public boolean | hasMoreOptions() |
public boolean | hasMoreQuestions() |
public boolean | hasMoreQuestionsToShow() Indicates whether there are more questions to show on the current page. |
public void | read(Reader r) Reads the survey from the input stream. |
protected void | read(ConnectionObject connObj, String surveyName, String languageCode) |
public void | removeGroup(QuestionGroup group) |
public void | removeQuestion(Question question) |
public void | resetSurvey() Restarts this survey. |
public void | restart() |
public void | restartSurvey() Restarts this survey. |
public void | saveInHistory(String pageName) Saves the current survey state. |
public void | setCurrentGroup(int groupId) |
public String | setCurrentQuestion(int questionId) Sets the specified question as the current in the
internal survey state. |
public String | setFirstPage() |
public void | setId(int i) |
public void | setName(String sn) |
public void | setNumQuestionsPerCard(int n) Sets the maximum number of questions that can be displayed
on one page. |
public void | setNumQuestionsPerPage(int qpp) Sets the maximum number of questions that can be displayed
on a page. |
public String | setPage(int pageNr) Goes through survey history, allows to show previous question page in
a survey. |
public String | setPrevPage() Sets the previously displayed question page
as the current one. |
protected void | setResponse(Condition response, String modelPath) Stores the specified response in the data model. |
public void | setUserResponses(QuestionGroup group, Vector responses, int page) Saves the user given responses to the data model. |
public void | shiftToGroup(int groupId) |
public void | shiftToNextCard() |
public boolean | shiftToNextGroup() moves survey "state" to the next question group
false if the current question groupis the last one in the current survey. |
public boolean | shiftToNextPage() |
public void | write(Writer w) Writes the current survey's data model to the output stream. |
public void | writeUserResponses(Writer w, Vector responses) Saves responses from the current survey, given by the user,
to the output stream. |