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 SurveyContextgetInstance(ContentContext ctx)List<Question>getSelectedQuestions()voidsetAllQuestions(List<Question> allQuestions)voidsetSelectedQuestions(List<Question> selectedQuestions)booleanupdateQuestion(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.
-
-