public final class FormatTag extends javax.servlet.jsp.tagext.BodyTagSupport
Constructor and Description |
---|
FormatTag() |
Modifier and Type | Method and Description |
---|---|
int |
doAfterBody()
Method called at end of format tag body.
|
int |
doEndTag()
Method called at end of Tag
|
int |
doStartTag()
Method called at start of tag, always returns EVAL_BODY_TAG
|
void |
release() |
void |
setDate(Date date)
Set the date to use (overrides tag body) for formatting
|
void |
setDefault(String default_text)
Set the default text if an invalid date or no tag body is given
|
void |
setLocale(short flag)
Locale flag, if set to true, format date
for client's preferred locale if known.
|
void |
setLocaleRef(String value)
Provides a key to search the page context for in order to get the
java.util.Locale to use.
|
void |
setPattern(String str)
Set the pattern to use when formatting Date.
|
void |
setPatternId(String str)
Set the pattern to use when parsing Date using a script variable
attribute.
|
void |
setSymbolsRef(String symbolsRef)
Provides a key to search the page context for in order to get the
java.text.DateFormatSymbols to use
|
void |
setTimeZone(String tz)
Set the time zone to use when formatting date.
|
doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
public FormatTag()
public final int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public final int doAfterBody() throws javax.servlet.jsp.JspException
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public final int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.BodyTagSupport
public final void setLocale(short flag)
boolean
- use users locale, true or falsepublic final void setTimeZone(String tz)
String
- name of timeZone to usepublic final void setPattern(String str)
String
- SimpleDateFormat style time pattern format stringpublic final void setPatternId(String str)
String
- name of script variable attribute idpublic final void setDate(Date date)
Date
- to use for formatting (could be null)public final void setDefault(String default_text)
String
- to use as default textpublic void setLocaleRef(String value)
String
- name of locale attribute to usepublic void setSymbolsRef(String symbolsRef)
symbolsRef
- Copyright © 2015 Lucee