cmu.survey.jsp.tags
Class DateTimeQuestion

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by cmu.survey.jsp.tags.TagSupportAndMore
          extended by cmu.survey.jsp.tags.QuestionTagStub
              extended by cmu.survey.jsp.tags.Question
                  extended by cmu.survey.jsp.tags.QuestionWithVariable
                      extended by cmu.survey.jsp.tags.DateTimeQuestion
All Implemented Interfaces:
HasErrorInfo, HasErrorInfoAndSaves, QuestionTag, java.io.Serializable, java.lang.Cloneable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally

public class DateTimeQuestion
extends QuestionWithVariable

See Also:
Serialized Form

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
DateTimeQuestion()
           
 
Method Summary
 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()
          Whether this has a standard "answer" variable, i.e. whether the Question needs to call "getAnswer()" to load and save the answer.
 boolean isShowNoTimeButton()
           
 void reinit()
           
 void setShowNoTimeButton(boolean b)
           
 
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.Question
clone, doEndOfQuestion, doEndOfQuestionNoPrinting, doMiddleOfQuestion, doStartOfQuestion, doStartOfQuestion, getAutoSubmitWhenFinishedWithThisQuestion, getBackgroundColorHTMLText, getDatabaseQuery, getEndQuestion, getExtraErrorInfo, getHelpText, getID, getOtherQuestionInfoToSave, getQuestion, getSupplementalErrorInfo, print, print, printTimeSpentField, setAutoSubmitWhenFinishedWithThisQuestion, setBackgroundColor, setEndQuestion, setHelpText, setID, setNumberOfColumns, setOtherQuestionInfoToSave, setQuestion, setSupplementalErrorInfo
 
Methods inherited from class cmu.survey.jsp.tags.QuestionTagStub
doStartTag, getErrorInfo, getSurvey, initSurvey, saveErrorInfo
 
Methods inherited from class cmu.survey.jsp.tags.TagSupportAndMore
breakDownToArray, convertDayNameToNum, convertDayNumToName, convertDayNumToName, convertMonthNumToName, doCatch, doEndTag, doFinally, formatDateTimeViewable, formatDateTimeViewable, formatDateViewable, formatTimeNoSecondsViewable, formatTimeNoSecondsViewable, formatTimeNoSecondsViewable, getNumDaysInWeek, parseTimeNoSecondsFromViewable, println
 
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

DateTimeQuestion

public DateTimeQuestion()
Method Detail

hasVariable

public boolean hasVariable()
Description copied from class: QuestionWithVariable
Whether this has a standard "answer" variable, i.e. whether the Question needs to call "getAnswer()" to load and save the answer. For example, headers do not have variables, short answers do. More complicated, AbstractQuestions should return false, despite having some variables -- they don't have any standard variables.

Specified by:
hasVariable in class QuestionWithVariable
Returns:

doQuestion

public void doQuestion()
Description copied from class: Question
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.

Specified by:
doQuestion in interface QuestionTag
Overrides:
doQuestion in class Question

isShowNoTimeButton

public boolean isShowNoTimeButton()
Returns:

setShowNoTimeButton

public void setShowNoTimeButton(boolean b)
Parameters:
whether - or not to show a link/button that will set the time to all blanks

reinit

public void reinit()
Overrides:
reinit in class QuestionWithVariable