|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jsurveylib.model.Page
public class Page
FOR INTERNAL USE ONLY.
A page in the survey. It contains a set of questions
Constructor Summary | |
---|---|
Page()
|
Method Summary | |
---|---|
void |
accept(Visitor visitor)
|
void |
addLabel(Label label)
Add a label to the page |
void |
addQuestion(Question question)
Add a question to this page |
boolean |
areRequirementsMet()
Checks if all required questions have been answered correctly. |
int |
countElements()
Returns the number of elements on the page. |
java.lang.String |
getLabel()
|
java.util.List<Question> |
getQuestions()
Returns all Questions in an unmodifiable list. |
java.util.List<SurveyElement> |
getSurveyElements()
Returns all SurveyElements (Label and Question objects) in an unmodifiable list. |
void |
insertQuestion(Question question,
int row)
|
boolean |
isSkipped()
|
int |
rowOf(java.lang.String questionId)
Returns the row of this questionId or a number less than 0 if a question with this id does not exist on this page |
void |
setLabel(java.lang.String label)
Change the label of this Page |
void |
setSkipped(boolean skipped)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Page()
Method Detail |
---|
public void addQuestion(Question question)
question
- Question to be addedpublic void addLabel(Label label)
label
- The Label to be addedpublic int countElements()
public java.util.List<SurveyElement> getSurveyElements()
public java.util.List<Question> getQuestions()
public boolean areRequirementsMet()
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- The label of this pagepublic void insertQuestion(Question question, int row)
public int rowOf(java.lang.String questionId)
questionId
- The id of the question to search for
public void accept(Visitor visitor)
accept
in interface Visitable
public boolean isSkipped()
public void setSkipped(boolean skipped)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |