| java.lang.Object org.apache.struts2.components.Component org.apache.struts2.components.UIBean org.apache.struts2.components.DateTimePicker
DateTimePicker | public class DateTimePicker extends UIBean (Code) | |
Renders a date/time picker in a dropdown container.
A stand-alone DateTimePicker widget that makes it easy to select a date/time, or increment by week, month,
and/or year.
It is possible to customize the user-visible formatting with either the
'formatLength' (long, short, medium or full) or 'displayFormat' attributes. By defaulty current
locale will be used.
Syntax supported by 'displayFormat' is (http://www.unicode.org/reports/tr35/tr35-4.html#Date_Format_Patterns):-
Format |
Description |
d |
Day of the month |
D |
Day of year |
M |
Month - Use one or two for the numerical month, three for the abbreviation, or four for the full name, or 5 for the narrow name. |
h |
Hour [1-12]. |
H |
Hour [0-23]. |
m |
Minute. Use one or two for zero padding. |
s |
Second. Use one or two for zero padding. |
The value sent to the server is
typically a locale-independent value in a hidden field as defined by the name
attribute. RFC3339 representation is the format used.
Examples
Example 1:
<s:datetimepicker name="order.date" label="Order Date" />
Example 2:
<s:datetimepicker name="delivery.date" label="Delivery Date" format="yyyy-MM-dd" />
The css could be changed by using the following :-
<s:datetimepicker name="birthday" label="Birthday" templateCss="...." />
|
LOG | final protected static Log LOG(Code) | | |
evaluateParams | public void evaluateParams()(Code) | | |
getDefaultTemplate | protected String getDefaultTemplate()(Code) | | |
setAdjustWeeks | public void setAdjustWeeks(String adjustWeeks)(Code) | | |
setDisplayFormat | public void setDisplayFormat(String displayFormat)(Code) | | |
setDisplayWeeks | public void setDisplayWeeks(String displayWeeks)(Code) | | |
setFormatLength | public void setFormatLength(String formatLength)(Code) | | |
setStartDate | public void setStartDate(String startDate)(Code) | | |
setStaticDisplay | public void setStaticDisplay(String staticDisplay)(Code) | | |
setTemplateCssPath | public void setTemplateCssPath(String templateCssPath)(Code) | | |
setToggleDuration | public void setToggleDuration(String toggleDuration)(Code) | | |
setToggleType | public void setToggleType(String toggleType)(Code) | | |
setWeekStartsOn | public void setWeekStartsOn(String weekStartsOn)(Code) | | |
Methods inherited from org.apache.struts2.components.Component | public void addAllParameters(Map params)(Code)(Java Doc) public void addParameter(String key, Object value)(Code)(Java Doc) public boolean altSyntax()(Code)(Java Doc) public void copyParams(Map params)(Code)(Java Doc) protected String determineActionURL(String action, String namespace, String method, HttpServletRequest req, HttpServletResponse res, Map parameters, String scheme, boolean includeContext, boolean encodeResult)(Code)(Java Doc) protected String determineActionURL(String action, String namespace, String method, HttpServletRequest req, HttpServletResponse res, Map parameters, String scheme, boolean includeContext, boolean encodeResult, boolean forceAddSchemeHostAndPort, boolean escapeAmp)(Code)(Java Doc) protected String determineNamespace(String namespace, ValueStack stack, HttpServletRequest req)(Code)(Java Doc) public boolean end(Writer writer, String body)(Code)(Java Doc) protected boolean end(Writer writer, String body, boolean popComponentStack)(Code)(Java Doc) protected StrutsException fieldError(String field, String errorMsg, Exception e)(Code)(Java Doc) protected Component findAncestor(Class clazz)(Code)(Java Doc) protected String findString(String expr)(Code)(Java Doc) protected String findString(String expr, String field, String errorMsg)(Code)(Java Doc) protected Object findValue(String expr)(Code)(Java Doc) protected Object findValue(String expr, String field, String errorMsg)(Code)(Java Doc) protected Object findValue(String expr, Class toType)(Code)(Java Doc) public Stack getComponentStack()(Code)(Java Doc) public String getId()(Code)(Java Doc) public Map getParameters()(Code)(Java Doc) public ValueStack getStack()(Code)(Java Doc) protected void popComponentStack()(Code)(Java Doc) public void setActionMapper(ActionMapper mapper)(Code)(Java Doc) public void setId(String id)(Code)(Java Doc) public boolean start(Writer writer)(Code)(Java Doc) protected String toString(Throwable t)(Code)(Java Doc) public boolean usesBody()(Code)(Java Doc)
|
|
|