org.apache.taglibs.i18n
Class FormatDateTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.taglibs.i18n.FormatTagSupport
org.apache.taglibs.i18n.FormatDateTagSupport
org.apache.taglibs.i18n.FormatDateTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
public class FormatDateTag
- extends FormatDateTagSupport
Formats a Date
instance using a Locale
and either a
DateFormat
or a pattern based SimpleDateFormat
.
- Version:
- $Revision$
- Author:
- James Strachan
- See Also:
- Serialized Form
Field Summary |
protected static java.lang.String |
_tagname
|
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, 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 |
Method Summary |
protected java.text.DateFormat |
getDateFormat()
|
java.text.Format |
getFormat()
If no DateFormat is configured then use a
SimpleDateFormat instance if a pattern is configured else
use the default DateFormat for the Locale |
java.lang.String |
getPattern()
|
protected java.text.DateFormat |
getPatternFormat(java.lang.String pattern)
|
void |
release()
|
void |
setFormat(java.text.DateFormat format)
|
void |
setPattern(java.lang.String pattern)
|
void |
setStyle(java.lang.String style)
|
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_tagname
protected static final java.lang.String _tagname
- See Also:
- Constant Field Values
FormatDateTag
public FormatDateTag()
release
public void release()
- Specified by:
release
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
release
in class FormatDateTagSupport
getFormat
public java.text.Format getFormat()
- If no
DateFormat
is configured then use a
SimpleDateFormat
instance if a pattern is configured else
use the default DateFormat for the Locale
- Specified by:
getFormat
in class FormatTagSupport
setFormat
public void setFormat(java.text.DateFormat format)
getPattern
public java.lang.String getPattern()
setPattern
public void setPattern(java.lang.String pattern)
setStyle
public void setStyle(java.lang.String style)
getPatternFormat
protected java.text.DateFormat getPatternFormat(java.lang.String pattern)
getDateFormat
protected java.text.DateFormat getDateFormat()
Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.