cmu.survey.jsp.tags
Class SubmitButton
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.SubmitButton
- 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 SubmitButton
- extends Question
- See Also:
- Serialized Form
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 |
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, saveQuestionInfo, setAutoSubmitWhenFinishedWithThisQuestion, setBackgroundColor, setEndQuestion, setHelpText, setID, setNumberOfColumns, setOtherQuestionInfoToSave, setQuestion, setSupplementalErrorInfo |
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 |
SubmitButton
public SubmitButton(Survey survey)
SubmitButton
public SubmitButton(ButtonObject button,
Survey survey)
init
public void init()
- Init if being used as a tag -- i.e. if the get or set methods are called, we use only one default button.
addButton
public void addButton(ButtonObject button)
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
getButtonImage
public java.lang.String getButtonImage()
- Returns:
getButtonImageDown
public java.lang.String getButtonImageDown()
- Returns:
getButtonImageRollover
public java.lang.String getButtonImageRollover()
- Returns:
getButtonText
public java.lang.String getButtonText()
- Returns:
isShowButtonOnlyIfNoJavaScript
public boolean isShowButtonOnlyIfNoJavaScript()
- Returns:
setButtonImage
public void setButtonImage(java.lang.String string)
- Parameters:
string
-
setButtonImageDown
public void setButtonImageDown(java.lang.String string)
- Parameters:
string
-
setButtonImageRollover
public void setButtonImageRollover(java.lang.String string)
- Parameters:
string
-
setButtonText
public void setButtonText(java.lang.String string)
- Parameters:
string
-
setShowButtonOnlyIfNoJavaScript
public void setShowButtonOnlyIfNoJavaScript(boolean b)
- Parameters:
b
-
reinit
public void reinit()
- Overrides:
reinit
in class Question