cmu.survey.jsp.tags
Class TimeZoneQuestion

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.QuestionWithChoices
                          extended by cmu.survey.jsp.tags.RadioButtonQuestion
                              extended by cmu.survey.jsp.tags.TimeZoneQuestion
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 TimeZoneQuestion
extends RadioButtonQuestion

See Also:
Serialized Form

Field Summary
static java.util.Vector timeZoneIDStrings
           
static java.util.Vector timeZones
           
 
Fields inherited from class cmu.survey.jsp.tags.QuestionWithChoices
saveTheTitle
 
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, 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
TimeZoneQuestion()
           
 
Method Summary
static java.lang.String convertHTTPRequestStringToSQL(java.lang.String requestString)
           
 int doStartTag()
           
static java.util.Date getDateOf(java.lang.String zoneId)
           
static java.lang.String getTimeOf(java.util.Calendar cal)
           
static java.lang.String getTimeOf(java.lang.String id)
           
static java.lang.String getTimeOf(java.lang.String id, java.util.Calendar cal)
           
static java.util.Vector getTimeZoneStrings()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class cmu.survey.jsp.tags.RadioButtonQuestion
doQuestion, getOtherTextFieldAnswer, getShowTitles, hasVariable, isHorizontal, makeRadioButtons, reinit, setHorizontal, setHorizontalWithNoColumns, setOtherTextFieldAnswer, setShowTheRadioButtonGraphic, setShowTitles
 
Methods inherited from class cmu.survey.jsp.tags.QuestionWithChoices
getCachedAnswerPair, getCacheRandomizeAnswerOrder, getChoicesField, getChoicesQuestionID, getChoicesSQLWhere, getQuestionChoicesWithIDField, getRandomizeAnswerOrder, getStartIndexesAtZero, getTupleFromChoices, isChoicesTableStandardFormat, setCachedAnswerPair, setCacheRandomizeAnswerOrder, setChoices, setChoicesField, setChoicesIDField, setChoicesQuestionID, setChoicesSQLWhere, setChoicesTable, setChoicesTableUsingStandardFormat, setRandomizeAnswerOrder, setSaveTheTitle, setStartIndexesAtZero
 
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
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
 

Field Detail

timeZones

public static java.util.Vector timeZones

timeZoneIDStrings

public static java.util.Vector timeZoneIDStrings
Constructor Detail

TimeZoneQuestion

public TimeZoneQuestion()
Method Detail

getTimeOf

public static final java.lang.String getTimeOf(java.util.Calendar cal)

getTimeOf

public static final java.lang.String getTimeOf(java.lang.String id,
                                               java.util.Calendar cal)

getTimeOf

public static final java.lang.String getTimeOf(java.lang.String id)

getDateOf

public static final java.util.Date getDateOf(java.lang.String zoneId)

convertHTTPRequestStringToSQL

public static java.lang.String convertHTTPRequestStringToSQL(java.lang.String requestString)

getTimeZoneStrings

public static java.util.Vector getTimeZoneStrings()

doStartTag

public int doStartTag()
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class QuestionTagStub

main

public static final void main(java.lang.String[] args)