|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport cmu.survey.jsp.tags.TagSupportAndMore cmu.survey.jsp.tags.QuestionTagStub cmu.survey.jsp.tags.Question cmu.survey.jsp.tags.QuestionWithVariable cmu.survey.jsp.tags.AbstractQuestion
public class AbstractQuestion
An abstract question, used in @link QuestionsFromDatabase. It can be used to form many different types of questions.
Field Summary |
---|
Fields inherited from class cmu.survey.jsp.tags.QuestionWithVariable |
---|
dbField, FieldTypeIsKey, FieldTypeIsNumeric, FieldTypes, type |
Fields inherited from class cmu.survey.jsp.tags.Question |
---|
blankImageLocation, endQuestion, helpText, imageDirectory, question |
Fields inherited from class cmu.survey.jsp.tags.TagSupportAndMore |
---|
dateFormatAmerican, dateTimeFormatAmerican, DAYS_OF_THE_WEEK, debug, MONTHS_OF_THE_YEAR, timeFormatAmerican |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
AbstractQuestion()
|
Method Summary | |
---|---|
void |
addQuestion(QuestionObject questionObject)
|
void |
doQuestion()
This is where all of the question related printing and work should go -- it gets called from doStartTag or from RandomizeQuestion if there is some matching going on. |
boolean |
hasVariable()
The type of question to print the question as (i.e. |
void |
reinit()
|
Methods inherited from class cmu.survey.jsp.tags.QuestionWithVariable |
---|
getAnswer, getDbField, getExtraJavaScripts, getExtraJavaScripts, getFieldAndType, getFieldAndType, getTimeSpentInOnClickOrPressed, getTimeSpentInOnClickOrPressed, getType, isTypeKey, isTypeNumeric, isTypeNumeric, isValidType, printTimeSpentField, saveQuestionInfo, setDbField, setDefaultValue, setType |
Methods inherited from class cmu.survey.jsp.tags.QuestionTagStub |
---|
doStartTag, getErrorInfo, getSurvey, initSurvey, saveErrorInfo |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cmu.survey.jsp.tags.HasErrorInfoAndSaves |
---|
saveErrorInfo |
Methods inherited from interface cmu.survey.jsp.tags.HasErrorInfo |
---|
getErrorInfo |
Constructor Detail |
---|
public AbstractQuestion()
Method Detail |
---|
public boolean hasVariable()
hasVariable
in class QuestionWithVariable
public void addQuestion(QuestionObject questionObject)
public void doQuestion()
Question
doQuestion
in interface QuestionTag
doQuestion
in class Question
public void reinit()
reinit
in class QuestionWithVariable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |