org.apache.taglibs.i18n
Class FormatDateTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.taglibs.i18n.FormatTagSupport
          extended by org.apache.taglibs.i18n.FormatDateTagSupport
              extended by 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
 
Constructor Summary
FormatDateTag()
           
 
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 org.apache.taglibs.i18n.FormatDateTagSupport
getValue, setValue
 
Methods inherited from class org.apache.taglibs.i18n.FormatTagSupport
doEndTag, doStartTag, getDefaultText, getLocale, getStyleCode, handleIOException, setDefaultText, setLocale
 
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
 

Field Detail

_tagname

protected static final java.lang.String _tagname
See Also:
Constant Field Values
Constructor Detail

FormatDateTag

public FormatDateTag()
Method Detail

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.