| java.lang.Object com.xoetrope.carousel.survey.XSurvey
XSurvey | public class XSurvey (Code) | | A data model for the editor, contains the definition of a survey, question
groups, rules, etc.
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.5 $
|
Constructor Summary | |
public | XSurvey() |
Method Summary | |
public void | addGroup(XQuestionGroup group) | public XQuestionGroup | addNewGroup(int groupId, int nextGroupId, String name) Creates and adds a new question group to this survey. | public XQuestionGroup | addNewGroup(String name) Creates and adds a new question group to this survey. | public XQuestionGroup | addNewGroup() Creates and adds a new dummy group. | public void | clear() | public void | createEmptySurvey(File file, String surveyName) | public void | deleteGroup(XQuestionGroup group) | public XNotifier | getAddGroupNotifier() | public XNotifier | getDeleteGroupNotifier() | public XQuestionGroup | getGroup(int idx) | public XQuestionGroup | getGroupById(int groupId) | public int | getGroupIdxById(int groupId) | public Vector | getGroups() | public int | getNextGroupId() | public int | getNextOptionId() | public int | getNextQuestionId() | public int | getNextRuleId() | public int | getNumQuestions() | public Question | getQuestionById(int questionId) | public Vector | getTargetGroups() | public void | loadSurveyDb(Properties dbConfiguration, String surveyName, String surveyLanguage) | public void | loadSurveyFile(File file) | protected Vector | makeRules(XQuestionGroup group) | protected void | readSurvey(ConnectionObject connObj, String surveyName, String surveyLanguage) | protected void | readSurvey(Reader r) | public boolean | removeGroup(XQuestionGroup group) | public void | saveSurveyDb(Properties dbConfiguration, String surveyName, String surveyLanguage) | public void | saveSurveyFile(File file) | public static void | setProjectModified(boolean state) | protected void | setRules() | protected void | updateTargetGroups() | public void | updateTargets(XQuestionGroup deletedGroup) Removes each target group whose value is set to the
given question group. | public void | writeEmptySurvey(Writer w, String surveyName) | protected void | writeSurvey(ConnectionObject connObj, String surveyName, String surveyLangName) | public void | writeSurvey(Writer w) |
addGroupNotifierdeleteGroupNotifier | protected XNotifier addGroupNotifierdeleteGroupNotifier(Code) | | |
project | protected XProject project(Code) | | |
XSurvey | public XSurvey()(Code) | | Creates a new instance of XSurvey
|
addNewGroup | public XQuestionGroup addNewGroup(int groupId, int nextGroupId, String name)(Code) | | Creates and adds a new question group to this survey.
Parameters: groupId - id of a new group Parameters: nextGroupId - id of a question group to whichthis survey will proceed. Parameters: name - the name of a new group the new question group |
addNewGroup | public XQuestionGroup addNewGroup(String name)(Code) | | Creates and adds a new question group to this survey.
Parameters: the - name of the new group the new question group |
addNewGroup | public XQuestionGroup addNewGroup()(Code) | | Creates and adds a new dummy group.
the new question group |
clear | public void clear()(Code) | | Removes all data contained in this survey
|
deleteGroup | public void deleteGroup(XQuestionGroup group)(Code) | | Deletes the given question group from this survey
Parameters: group - the question group which is to be deleted |
getGroupIdxById | public int getGroupIdxById(int groupId)(Code) | | |
getNextGroupId | public int getNextGroupId()(Code) | | |
getNextOptionId | public int getNextOptionId()(Code) | | |
getNextQuestionId | public int getNextQuestionId()(Code) | | |
getNextRuleId | public int getNextRuleId()(Code) | | |
getNumQuestions | public int getNumQuestions()(Code) | | |
getTargetGroups | public Vector getTargetGroups()(Code) | | Gets the groups being used as models for combo boxes
|
setProjectModified | public static void setProjectModified(boolean state)(Code) | | |
setRules | protected void setRules()(Code) | | |
updateTargetGroups | protected void updateTargetGroups()(Code) | | Recreates target groups
|
updateTargets | public void updateTargets(XQuestionGroup deletedGroup)(Code) | | Removes each target group whose value is set to the
given question group. This method is invoked after the
specified question group is deleted
Parameters: deletedGroup - the group that has been deleted |
|
|