org.codehaus.waffle.taglib.form
Class DateTag

java.lang.Object
  extended by org.codehaus.waffle.taglib.internal.BasicTag
      extended by org.codehaus.waffle.taglib.form.FormElement
          extended by org.codehaus.waffle.taglib.form.DateTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.DynamicAttributes, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class DateTag
extends FormElement

An date element for html files.

Author:
Nico Steppat, Guilherme Silveira

Field Summary
 
Fields inherited from class org.codehaus.waffle.taglib.form.FormElement
attributes
 
Fields inherited from class org.codehaus.waffle.taglib.internal.BasicTag
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
DateTag()
           
 
Method Summary
 int doStartTag()
           
protected  java.lang.String getDefaultLabel()
          Method to be implemented on child classes.
protected  java.lang.String getType()
           
 void release()
           
 void setDateStyle(java.lang.String style)
           
 void setName(java.lang.String name)
           
 void setPattern(java.lang.String pattern)
           
 void setValue(java.util.Date value)
           
 IterationResult start(java.io.Writer out)
          Starts this tag once.
 
Methods inherited from class org.codehaus.waffle.taglib.form.FormElement
doEndTag, getForm, setDynamicAttribute, setLabel
 
Methods inherited from class org.codehaus.waffle.taglib.internal.BasicTag
afterBody, beforeBody, doAfterBody, doInitBody, end, evaluate, evaluateEl, findAncestor, getAbsoluteUrl, getI18NMessage, getParent, isRendered, setBodyContent, setPageContext, setParent, setRendered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTag

public DateTag()
Method Detail

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class FormElement

setName

public void setName(java.lang.String name)

setPattern

public void setPattern(java.lang.String pattern)

setDateStyle

public void setDateStyle(java.lang.String style)

setValue

public void setValue(java.util.Date value)

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class FormElement
Throws:
javax.servlet.jsp.JspException

start

public IterationResult start(java.io.Writer out)
                      throws javax.servlet.jsp.JspException,
                             java.io.IOException
Description copied from class: BasicTag
Starts this tag once.

Specified by:
start in class BasicTag
Throws:
javax.servlet.jsp.JspException
java.io.IOException

getType

protected java.lang.String getType()

getDefaultLabel

protected java.lang.String getDefaultLabel()
Description copied from class: FormElement
Method to be implemented on child classes. Returns the default label if none is specified.

Specified by:
getDefaultLabel in class FormElement
Returns:
the default label


Copyright © 2008. All Rights Reserved.