net.sf.easyweb4j.tags
Class CheckBoxTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by net.sf.easyweb4j.tags.EasyWeb4JTagSupport
          extended by net.sf.easyweb4j.tags.CheckBoxTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.DynamicAttributes, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

public class CheckBoxTag
extends EasyWeb4JTagSupport

Generates a simple checkbox. However, uses a boolean state attribute to determine the default state.

Author:
Chandra Sekar S

Constructor Summary
CheckBoxTag()
           
 
Method Summary
 void doTag()
           
 boolean isState()
           
 void setState(boolean state)
          Determines whether the default state is selected or not.
 
Methods inherited from class net.sf.easyweb4j.tags.EasyWeb4JTagSupport
buildEndTag, buildStartTag, buildStartTag, getDynamicAttributes, getEasyWeb4JContainer, setDynamicAttribute
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
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

doTag

public void doTag()
           throws javax.servlet.jsp.JspException,
                  IOException
Specified by:
doTag in interface javax.servlet.jsp.tagext.SimpleTag
Overrides:
doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
Throws:
javax.servlet.jsp.JspException
IOException

isState

public boolean isState()

setState

public void setState(boolean state)
Determines whether the default state is selected or not.

Parameters:
state - true if selected by default false otherwise.


Copyright © 2009-2010 Chandra Sekar S. All Rights Reserved.