com.raritantechnologies.verity.parametric.taglibrary
Class ClearValue

java.lang.Object
  extended byBodyTagSupport
      extended bycom.raritantechnologies.verity.parametric.taglibrary.ClearValue
All Implemented Interfaces:
IConfigurable, ICustomTag, ISearchElementRenderer

public class ClearValue
extends BodyTagSupport
implements ICustomTag, ISearchElementRenderer

This tag displays a hyperlink, which, when pressed, will clear all of the values in a parametric field rendered as a set of check boxes, and redisplay the screen. This is used for check boxes that have many values.


Developed by Raritan Technologies .

Author:
Chris Peterson
See Also:
Serialized Form

Constructor Summary
ClearValue()
           
 
Method Summary
 int doAfterBody()
           
 int doStartTag()
           
 java.lang.String getBody(ISearchFormRenderer parent, RaritanPageContext pageContext)
          Returns the element html fragment.
 java.lang.String getBody(RaritanPageContext rpc)
          Returns the tag body.
 ISearchElementRenderer getRenderer(java.lang.String name)
          Returns ISearchElementRenderer of this render or a nested renderer matching the name given or null if no match is found.
 void initialize(org.w3c.dom.Element elem)
          Initialize renderer-specific parameters from the configuration XML tag.
 void initialize(java.util.Map initParams)
           
 boolean isHidden(ISearchFormRenderer parent, RaritanPageContext pageContext)
           
 void setEnable(boolean enabled)
          Enable/Disable the renderer.
 void setFieldname(java.lang.String fieldname)
          fieldname is the name of the field to clear.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClearValue

public ClearValue()
Method Detail

setFieldname

public void setFieldname(java.lang.String fieldname)
fieldname is the name of the field to clear.


doStartTag

public int doStartTag()
               throws JspException
Throws:
JspException

getBody

public java.lang.String getBody(RaritanPageContext rpc)
Description copied from interface: ICustomTag
Returns the tag body.

Specified by:
getBody in interface ICustomTag
Parameters:
rpc - Platform-neutral page context ( can be used in non J2EE environments such as ASP).
Returns:
The tag body text string.

doAfterBody

public int doAfterBody()
                throws JspException
Throws:
JspException

isHidden

public boolean isHidden(ISearchFormRenderer parent,
                        RaritanPageContext pageContext)
Specified by:
isHidden in interface ISearchElementRenderer

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: ISearchElementRenderer
Initialize renderer-specific parameters from the configuration XML tag.

Specified by:
initialize in interface IConfigurable

initialize

public void initialize(java.util.Map initParams)
Specified by:
initialize in interface ICustomTag

getBody

public java.lang.String getBody(ISearchFormRenderer parent,
                                RaritanPageContext pageContext)
Description copied from interface: ISearchElementRenderer
Returns the element html fragment.

Specified by:
getBody in interface ISearchElementRenderer

setEnable

public void setEnable(boolean enabled)
Description copied from interface: ISearchElementRenderer
Enable/Disable the renderer. Disabled renderers are not included in the html output of an ISearchFormRenderer.

Specified by:
setEnable in interface ISearchElementRenderer

getRenderer

public ISearchElementRenderer getRenderer(java.lang.String name)
Description copied from interface: ISearchElementRenderer
Returns ISearchElementRenderer of this render or a nested renderer matching the name given or null if no match is found.

Specified by:
getRenderer in interface ISearchElementRenderer