public class TimeTag extends ContextReferrerTag implements Writer, WriterReferrer
| Modifier and Type | Field and Description |
|---|---|
protected Date |
_date |
contextId, EVAL_BODY, helper, id, pageContextTag, referid, writerid| Constructor and Description |
|---|
TimeTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doAfterBody() |
int |
doEndTag() |
void |
doFinally() |
int |
doStartTag() |
Date |
getDate()
You could implement a tag for the body of time-tag, which can then receive the date-object.
|
protected SimpleDateFormat |
getDateFormat()
DateFormat used for parsing dates.
|
protected DateFormat |
getFormat() |
protected static int |
getPrecisionConstant(String p) |
TimeZone |
getTimeZone()
Get the timezone from the context or the timezone set in mmbase
|
void |
setFormat(String f) |
void |
setInputformat(String inputformat) |
void |
setOffset(String offset) |
void |
setPrecision(String p) |
void |
setRelevance(String p) |
void |
setTime(String time) |
void |
setTimezone(String tz) |
appendMoreParameters, doCatch, fillStandardParameters, findLoopOrQuery, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getCurrentBlock, getDefaultLocale, getEscapedValue, getFormTag, getId, getLocale, getLocaleFromContext, getObject, getObjectConditional, getPageContext, getPageContextTag, getQuery, getReferid, getString, getTaglibVersion, getThreadPageContext, getTimer, getWriterValue, haveBody, release, setContext, setEscape, setId, setJspvar, setListdelimiter, setPageContext, setPageContextOnly, setReferid, setVartype, setWrite, setWriterdoInitBody, getBodyContent, getPreviousOut, setBodyContentfindAncestorWithClass, getParent, getValue, getValues, removeValue, setParent, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWriterValue, haveBody, setEscape, setJspvar, setVartype, setWritefindWriter, setWriterprotected Date _date
public void setTime(String time) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic void setFormat(String f) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic void setPrecision(String p) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionprotected static int getPrecisionConstant(String p) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic void setRelevance(String p) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic TimeZone getTimeZone()
ContextReferrerTaggetTimeZone in class ContextReferrerTagprotected DateFormat getFormat() throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic void setInputformat(String inputformat) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic void setOffset(String offset) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic void setTimezone(String tz) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic Date getDate()
public int doStartTag()
throws javax.servlet.jsp.JspTagException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspTagExceptionpublic int doAfterBody()
throws javax.servlet.jsp.JspException
doAfterBody in interface javax.servlet.jsp.tagext.IterationTagdoAfterBody in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionpublic int doEndTag()
throws javax.servlet.jsp.JspTagException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class ContextReferrerTagjavax.servlet.jsp.JspTagExceptionpublic void doFinally()
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinallydoFinally in class ContextReferrerTagprotected SimpleDateFormat getDateFormat() throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionMMBase 1.9-SNAPSHOT - ${javadoctimestamp}