Package org.javlo.component.web2.survey
Class SurveyContext
- java.lang.Object
-
- org.javlo.component.web2.survey.SurveyContext
-
public class SurveyContext extends Object
-
-
Constructor Summary
Constructors Constructor Description SurveyContext()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Question>
getAllQuestions()
static SurveyContext
getInstance(ContentContext ctx)
List<Question>
getSelectedQuestions()
void
setAllQuestions(List<Question> allQuestions)
void
setSelectedQuestions(List<Question> selectedQuestions)
boolean
updateQuestion(Question inQuestion)
update values of question in internal list.
-
-
-
Method Detail
-
getInstance
public static final SurveyContext getInstance(ContentContext ctx) throws Exception
- Throws:
Exception
-
updateQuestion
public boolean updateQuestion(Question inQuestion)
update values of question in internal list.- Parameters:
number
-inQuestion
-- Returns:
- false if question not found.
-
-