mx.com.brained.taglib
Class CheckBoxGridElement

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by mx.com.brained.taglib.CheckBoxGridElement
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class CheckBoxGridElement
extends javax.servlet.jsp.tagext.TagSupport

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
CheckBoxGridElement()
           
 
Method Summary
 int doStartTag()
          This method renders the checkbox based on the properties set
 java.lang.String getBundle()
          Return the bundle to which the key belongs to
 java.lang.String getFalseValue()
          Return the value that will be rendered as an unchecked checkbox
 java.lang.String getLocale()
          Return the locale that was set
 java.lang.String getName()
          Returns the name of the bean containing the value to be rendered
 java.lang.String getProperty()
          Return the property of the bean rendered as a checkbox
 java.lang.String getTitle()
          Return the resource bundle key to be rendered as the header
 java.lang.String getTrueValue()
          Return the value that will be rendered as a checked checkbox
 java.lang.String getType()
           
 void release()
          Reset the properties to be reused
 void setBundle(java.lang.String bundle)
          Set the bundle to which the key belongs to
 void setFalseValue(java.lang.String falseValue)
          Set the value that will be rendered as an unchecked checkbox
 void setLocale(java.lang.String locale)
          Set the locale to be rendered
 void setName(java.lang.String name)
          Set the name of the bean containing the value to be rendered
 void setProperty(java.lang.String property)
          Set the property of the bean rendered as a checkbox
 void setTitle(java.lang.String title)
          Set the resource bundle key to be rendered as the header
 void setTrueValue(java.lang.String trueValue)
          Set the value that will be rendered as a checked checkbox
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckBoxGridElement

public CheckBoxGridElement()
Method Detail

setName

public void setName(java.lang.String name)
Set the name of the bean containing the value to be rendered

Parameters:
name - String

setProperty

public void setProperty(java.lang.String property)
Set the property of the bean rendered as a checkbox

Parameters:
property - String

setTitle

public void setTitle(java.lang.String title)
Set the resource bundle key to be rendered as the header

Parameters:
title - String

setBundle

public void setBundle(java.lang.String bundle)
Set the bundle to which the key belongs to

Parameters:
bundle - String

setLocale

public void setLocale(java.lang.String locale)
Set the locale to be rendered

Parameters:
locale - String

setTrueValue

public void setTrueValue(java.lang.String trueValue)
Set the value that will be rendered as a checked checkbox

Parameters:
trueValue - String

setFalseValue

public void setFalseValue(java.lang.String falseValue)
Set the value that will be rendered as an unchecked checkbox

Parameters:
falseValue - String

getName

public java.lang.String getName()
Returns the name of the bean containing the value to be rendered

Returns:
String

getProperty

public java.lang.String getProperty()
Return the property of the bean rendered as a checkbox

Returns:
String

getTitle

public java.lang.String getTitle()
Return the resource bundle key to be rendered as the header

Returns:
String

getType

public java.lang.String getType()

getBundle

public java.lang.String getBundle()
Return the bundle to which the key belongs to

Returns:
String

getLocale

public java.lang.String getLocale()
Return the locale that was set

Returns:
String

getTrueValue

public java.lang.String getTrueValue()
Return the value that will be rendered as a checked checkbox

Returns:
String

getFalseValue

public java.lang.String getFalseValue()
Return the value that will be rendered as an unchecked checkbox

Returns:
String

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
This method renders the checkbox based on the properties set

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
int
Throws:
javax.servlet.jsp.JspException

release

public void release()
Reset the properties to be reused

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.tagext.TagSupport


Copyright © 2005 Brain-ED Engineering & Development. All Rights Reserved.