public class DatePicker extends AbstractTopicsBean
A tag that creates an Datepicker.
Examples
A simple Datepicker
<sj:datepicker id="birthday" name="birthday"/>
A Datepicker with Button Panel and select boxes to change year and month.
<sj:datepicker showButtonPanel="true" changeMonth="true" changeYear="true" id="birthday" name="birthday"/>
A Datepicker with different Display Format.
<sj:datepicker displayFormat="dd.mm.yy" id="birthday" name="birthday"/>
A Datepicker with Timepicker.
<sj:datepicker id="time0" label="Select a Date/Time" timepicker="true" />
A Timepicker.
<sj:datepicker id="time1" label="Select a Time" timepicker="true" timepickerOnly="true"/>
onAfterValidationTopics, onAlwaysTopics, onBeforeTopics, onBlurTopics, onChangeTopics, onCompleteTopics, onDisableTopics, onEnableTopics, onErrorTopics, onFocusTopics, onSuccessTopics, PARAM_JQUERY_ACTIONaccesskey, cssClass, cssErrorClass, cssErrorStyle, cssStyle, defaultTemplateDir, defaultUITheme, disabled, dynamicAttributes, errorPosition, id, javascriptTooltip, key, label, labelPosition, labelSeparator, name, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, request, requiredLabel, requiredPosition, response, tabindex, template, templateDir, templateEngineManager, templateSuffix, theme, title, tooltip, tooltipConfig, tooltipCssClass, tooltipDelay, tooltipIconPath, uiThemeExpansionToken, value| Constructor and Description |
|---|
DatePicker(com.opensymphony.xwork2.util.ValueStack stack,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
addGeneratedIdParam, addParameterIfPresent, addParameterIfPresent, evaluateExtraParams, setOnAfterValidationTopics, setOnAlwaysTopics, setOnBeforeTopics, setOnBlurTopics, setOnChangeTopics, setOnCompleteTopics, setOnDisableTopics, setOnEnableTopics, setOnErrorTopics, setOnFocusTopics, setOnSuccessTopicsaddFormParameter, buildTemplateName, copyParams, enableAncestorFormCustomOnsubmit, end, ensureAttributeSafelyNotEscaped, escape, evaluateNameValue, getId, getTemplate, getTemplateDir, getTooltipConfig, getValueClassType, mergeTemplate, populateComponentHtmlId, setAccesskey, setClass, setCssClass, setCssErrorClass, setCssErrorStyle, setCssStyle, setDefaultTemplateDir, setDefaultUITheme, setDisabled, setDynamicAttributes, setErrorPosition, setId, setJavascriptTooltip, setKey, setLabel, setLabelposition, setLabelSeparator, setName, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setRequiredLabel, setRequiredPosition, setStyle, setTabindex, setTemplate, setTemplateDir, setTemplateEngineManager, setTitle, setTooltip, setTooltipConfig, setTooltipCssClass, setTooltipDelay, setTooltipIconPath, setUIThemeExpansionTokenaddAllParameters, addParameter, altSyntax, completeExpressionIfAltSyntax, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findStringIfAltSyntax, findValue, findValue, findValue, getComponentStack, getParameters, getStack, getStandardAttributes, isValidTagAttribute, popComponentStack, setActionMapper, setDevMode, setThrowExceptionsOnELFailure, setUrlHelper, stripExpressionIfAltSyntax, toString, usesBodypublic static final String JQUERYACTION
public static final String TEMPLATE
public static final String OPEN_TEMPLATE
protected String displayFormat
protected String showButtonPanel
protected String changeMonth
protected String changeYear
protected String buttonImage
protected String appendText
protected String buttonImageOnly
protected String buttonText
protected String duration
protected String firstDay
protected String numberOfMonths
protected String showAnim
protected String showOn
protected String showOptions
protected String yearRange
protected String zindex
protected String onBeforeShowDayTopics
protected String onChangeMonthYearTopics
protected String minDate
protected String maxDate
protected String inline
protected String maxlength
protected String readonly
protected String size
protected String parentTheme
protected String timepicker
protected String timepickerOnly
protected String timepickerAmPm
protected String timepickerShowHour
protected String timepickerShowMinute
protected String timepickerShowSecond
protected String timepickerStepHour
protected String timepickerStepMinute
protected String timepickerStepSecond
protected String timepickerFormat
protected String timepickerSeparator
protected String timepickerGridHour
protected String timepickerGridMinute
protected String timepickerGridSecond
protected String timepickerTimeOnlyTitle
protected String timepickerTimeText
protected String timepickerHourText
protected String timepickerMinuteText
protected String timepickerSecondText
protected String timepickerCurrentText
protected String timepickerCloseText
public DatePicker(com.opensymphony.xwork2.util.ValueStack stack,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
public String getDefaultOpenTemplate()
getDefaultOpenTemplate in class org.apache.struts2.components.ClosingUIBeanprotected String getDefaultTemplate()
getDefaultTemplate in class org.apache.struts2.components.UIBeanpublic void evaluateParams()
evaluateParams in class org.apache.struts2.components.UIBeanpublic void setTheme(String theme)
setTheme in class org.apache.struts2.components.UIBeanpublic String getTheme()
getTheme in class org.apache.struts2.components.UIBeanpublic void setDisplayFormat(String displayFormat)
public void setValue(String value)
setValue in class org.apache.struts2.components.UIBeanpublic void setShowButtonPanel(String showButtonPanel)
public void setChangeMonth(String changeMonth)
public void setChangeYear(String changeYear)
public void setButtonImage(String buttonImage)
public void setAppendText(String appendText)
public void setButtonImageOnly(String buttonImageOnly)
public void setButtonText(String buttonText)
public void setDuration(String duration)
public void setFirstDay(String firstDay)
public void setNumberOfMonths(String numberOfMonths)
public void setShowAnim(String showAnim)
public void setShowOn(String showOn)
public void setShowOptions(String showOptions)
public void setYearRange(String yearRange)
public void setZindex(String zindex)
public void setOnBeforeShowDayTopics(String onBeforeShowDayTopics)
public void setOnChangeMonthYearTopics(String onChangeMonthYearTopics)
public void setMinDate(String minDate)
public void setMaxDate(String maxDate)
public void setInline(String inline)
public void setMaxlength(String maxlength)
public void setReadonly(String readonly)
public void setSize(String size)
public void setParentTheme(String parentTheme)
public void setTimepicker(String timepicker)
public void setTimepickerOnly(String timepickerOnly)
public void setTimepickerAmPm(String timepickerAmPm)
public void setTimepickerShowHour(String timepickerShowHour)
public void setTimepickerShowMinute(String timepickerShowMinute)
public void setTimepickerShowSecond(String timepickerShowSecond)
public void setTimepickerStepHour(String timepickerStepHour)
public void setTimepickerStepMinute(String timepickerStepMinute)
public void setTimepickerStepSecond(String timepickerStepSecond)
public void setTimepickerFormat(String timepickerFormat)
public void setTimepickerSeparator(String timepickerSeparator)
public void setTimepickerGridHour(String timepickerGridHour)
public void setTimepickerGridMinute(String timepickerGridMinute)
public void setTimepickerGridSecond(String timepickerGridSecond)
public void setTimepickerTimeOnlyTitle(String timepickerTimeOnlyTitle)
public void setTimepickerTimeText(String timepickerTimeText)
public void setTimepickerHourText(String timepickerHourText)
public void setTimepickerMinuteText(String timepickerMinuteText)
public void setTimepickerSecondText(String timepickerSecondText)
public void setTimepickerCurrentText(String timepickerCurrentText)
public void setTimepickerCloseText(String timepickerCloseText)
Copyright © 2017. All rights reserved.