org.codehaus.waffle.taglib.form
Class CheckBoxTag

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.CheckBoxTag
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 CheckBoxTag
extends FormElement

An checkbox element for html files.

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
CheckBoxTag()
           
 
Method Summary
protected  java.lang.String getDefaultLabel()
          Method to be implemented on child classes.
protected  java.lang.String getType()
           
 void release()
           
 void setChecked(java.lang.Boolean checked)
           
 void setName(java.lang.String name)
           
 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, 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

CheckBoxTag

public CheckBoxTag()
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)

setChecked

public void setChecked(java.lang.Boolean checked)

setValue

public void setValue(java.lang.String value)

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.