|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.jsurveyor.QuestionPage
Class to model pages in questionnaires. It handles a list of the specific order of the questions on the page.
| Constructor Summary | |
QuestionPage()
Constructor for QuestionPage |
|
QuestionPage(int questionPageID,
java.util.ArrayList questions)
Constructor for QuestionPage, use through DataAccess. |
|
| Method Summary | |
void |
addQuestion(net.sourceforge.jsurveyor.Question question)
Add a question to the page. |
void |
addQuestionAtPosition(net.sourceforge.jsurveyor.Question question,
int position)
Add a question to the page at a specific position. |
int |
getQuestionPageID()
Returns the ID of the page. |
java.util.ArrayList |
getRefQuestions()
Returns an ArrayList with toString representations of the added Questions. |
void |
removeQuestion(net.sourceforge.jsurveyor.Question question)
Remove a question from the page. |
void |
setQuestionPageID(int questionPageID)
Sets the ID of the page. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public QuestionPage()
public QuestionPage(int questionPageID,
java.util.ArrayList questions)
questionPageID - intquestions - ArrayList| Method Detail |
public void addQuestion(net.sourceforge.jsurveyor.Question question)
question - Question
public void addQuestionAtPosition(net.sourceforge.jsurveyor.Question question,
int position)
question - Questionposition - intpublic void removeQuestion(net.sourceforge.jsurveyor.Question question)
question - Questionpublic java.util.ArrayList getRefQuestions()
public void setQuestionPageID(int questionPageID)
questionPageID - intpublic int getQuestionPageID()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||