|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.jsurveyor.Question
net.sourceforge.jsurveyor.QuestionFreeText
Class to model a freetext question. Doesn't do much other that what it inherits from the Question Class. It is used to be the class for the most basic question type, the freetext kind.
| Constructor Summary | |
QuestionFreeText()
Constructor for QuestionFreeText |
|
QuestionFreeText(int questionID,
java.lang.String text,
boolean writeable,
boolean required,
boolean depends,
java.util.ArrayList dependency)
Constructor for QuestionFreeText, use through DataAccess. |
|
QuestionFreeText(java.lang.String text,
boolean writeable)
Constructor for QuestionFreeText |
|
| Method Summary | |
java.util.ArrayList |
getDependency()
Returns the ArrayList representation of dependency |
boolean |
getDepends()
Does the question depend on a specific answer from another question for it to be asked? |
int |
getQuestionID()
Returns the ID of the question. |
java.lang.String |
getText()
Returns the question text. |
boolean |
getWriteable()
Returns true if the question is writeable |
boolean |
isWriteable()
Returns true if the question is writeable. |
void |
removeDependency()
Removes any dependency on the question. |
void |
setDependency(QuestionMultipleChoice question,
int[] choices)
Sets the dependency of this question to specific answers of a multiplechoice question. |
void |
setQuestionID(int questionID)
Sets the ID of the question. |
void |
setText(java.lang.String text)
Sets the question text. |
void |
setWriteable(boolean writeable)
Sets the writable parameter. |
java.lang.String |
toString()
Returns the questionID prefixed with a F to represent it is a freetext. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public QuestionFreeText()
public QuestionFreeText(java.lang.String text,
boolean writeable)
text - Stringwriteable - boolean
public QuestionFreeText(int questionID,
java.lang.String text,
boolean writeable,
boolean required,
boolean depends,
java.util.ArrayList dependency)
questionID - inttext - Stringwriteable - booleanrequired - booleandepends - booleandependency - ArrayList| Method Detail |
public java.lang.String toString()
public int getQuestionID()
public void setQuestionID(int questionID)
questionID - intpublic java.lang.String getText()
public void setText(java.lang.String text)
throws java.lang.IllegalAccessException
text - String
java.lang.IllegalAccessExceptionpublic boolean getDepends()
public void setDependency(QuestionMultipleChoice question,
int[] choices)
throws java.lang.IllegalAccessException
question - QuestionMultipleChoicechoices - int[]
java.lang.IllegalAccessException
public void removeDependency()
throws java.lang.IllegalAccessException
java.lang.IllegalAccessExceptionpublic java.util.ArrayList getDependency()
public boolean isWriteable()
public void setWriteable(boolean writeable)
writeable - booleanpublic boolean getWriteable()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||