org.codehaus.waffle.taglib.form
Class ButtonTag

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.ButtonTag
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
Direct Known Subclasses:
ResetTag

public class ButtonTag
extends FormElement

A button element for html files. Accepts a value which will be i18n.

Author:
Guilherme Silveira, Nico Steppat

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
ButtonTag()
           
 
Method Summary
protected  java.lang.String getButtonType()
          Returns this button type.
protected  java.lang.String getDefaultLabel()
          Method to be implemented on child classes.
 void setValue(java.lang.String value)
           
 IterationResult start(java.io.Writer out)
          Starts this tag once.
 
Methods inherited from class org.codehaus.waffle.taglib.form.FormElement
doEndTag, doStartTag, getForm, release, 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

ButtonTag

public ButtonTag()
Method Detail

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

getButtonType

protected java.lang.String getButtonType()
Returns this button type.

Returns:
the button type

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

setValue

public void setValue(java.lang.String value)


Copyright © 2008. All Rights Reserved.