|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jelly.TagSupport
org.apache.commons.jelly.tags.fmt.FormatDateTag
Support for tag handlers for <formatDate>, the date and time formatting tag in JSTL.
Field Summary | |
private static java.lang.String |
DATE
|
private org.apache.commons.jelly.expression.Expression |
dateStyle
Holds value of property dataStyle. |
private static java.lang.String |
DATETIME
|
private static java.lang.String |
DEFAULT
|
private java.lang.String |
edateStyle
Evaluated dateStyle |
private java.lang.String |
etimeStyle
Evaluated timeStyle |
private java.lang.String |
etype
Evaluated type |
private static java.lang.String |
FULL
|
private static java.lang.String |
LONG
|
private static java.lang.String |
MEDIUM
|
private org.apache.commons.jelly.expression.Expression |
pattern
Holds value of property pattern. |
private java.lang.String |
scope
Holds value of property scope. |
private static java.lang.String |
SHORT
|
private static java.lang.String |
TIME
|
private org.apache.commons.jelly.expression.Expression |
timeStyle
Holds value of property timeStyle. |
private org.apache.commons.jelly.expression.Expression |
timeZone
Holds value of property timeZone. |
private org.apache.commons.jelly.expression.Expression |
type
Holds value of property type. |
private org.apache.commons.jelly.expression.Expression |
value
Holds value of property value. |
private java.lang.String |
var
Holds value of property var. |
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
FormatDateTag()
Creates a new instance of FormatDateTag |
Method Summary | |
private java.text.DateFormat |
createFormatter(java.util.Locale loc)
|
void |
doTag(org.apache.commons.jelly.XMLOutput output)
Evaluates this tag after all the tags properties have been initialized. |
static int |
getStyle(java.lang.String style,
java.lang.String errCode)
|
void |
setDateStyle(org.apache.commons.jelly.expression.Expression dateStyle)
Setter for property dataStyle. |
void |
setPattern(org.apache.commons.jelly.expression.Expression pattern)
Setter for property pattern. |
void |
setScope(java.lang.String scope)
Setter for property scope. |
void |
setTimeStyle(org.apache.commons.jelly.expression.Expression timeStyle)
Setter for property timeStyle. |
void |
setTimeZone(org.apache.commons.jelly.expression.Expression timeZone)
Setter for property timeZone. |
void |
setType(org.apache.commons.jelly.expression.Expression type)
Setter for property type. |
void |
setValue(org.apache.commons.jelly.expression.Expression value)
Setter for property value. |
void |
setVar(java.lang.String var)
Setter for property var. |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String DEFAULT
private static final java.lang.String SHORT
private static final java.lang.String MEDIUM
private static final java.lang.String LONG
private static final java.lang.String FULL
private static final java.lang.String DATE
private static final java.lang.String TIME
private static final java.lang.String DATETIME
private org.apache.commons.jelly.expression.Expression value
private org.apache.commons.jelly.expression.Expression type
private org.apache.commons.jelly.expression.Expression dateStyle
private org.apache.commons.jelly.expression.Expression timeStyle
private org.apache.commons.jelly.expression.Expression pattern
private org.apache.commons.jelly.expression.Expression timeZone
private java.lang.String var
private java.lang.String scope
private java.lang.String etype
private java.lang.String edateStyle
private java.lang.String etimeStyle
Constructor Detail |
public FormatDateTag()
Method Detail |
public void doTag(org.apache.commons.jelly.XMLOutput output) throws org.apache.commons.jelly.JellyTagException
org.apache.commons.jelly.JellyTagException
public void setValue(org.apache.commons.jelly.expression.Expression value)
value
- New value of property value.public void setType(org.apache.commons.jelly.expression.Expression type)
type
- New value of property type.public void setDateStyle(org.apache.commons.jelly.expression.Expression dateStyle)
public void setTimeStyle(org.apache.commons.jelly.expression.Expression timeStyle)
timeStyle
- New value of property timeStyle.public void setPattern(org.apache.commons.jelly.expression.Expression pattern)
pattern
- New value of property pattern.public void setTimeZone(org.apache.commons.jelly.expression.Expression timeZone)
timeZone
- New value of property timeZone.public void setVar(java.lang.String var)
var
- New value of property var.public void setScope(java.lang.String scope)
scope
- New value of property scope.private java.text.DateFormat createFormatter(java.util.Locale loc) throws org.apache.commons.jelly.JellyTagException
org.apache.commons.jelly.JellyTagException
public static int getStyle(java.lang.String style, java.lang.String errCode) throws org.apache.commons.jelly.JellyTagException
org.apache.commons.jelly.JellyTagException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |