com.raritantechnologies.verity.parametric.taglibrary
Class GetTaxonomyView

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

public class GetTaxonomyView
extends BodyTagSupport
implements ICustomTag, ISearchElementRenderer

Custom JSP tag that wraps a standard Verity TaxonomyRenderer.

XML Configuration Template:
  <SearchElementRenderer class="com.raritantechnologies.verity.parametric.taglibrary.GetTaxonomyView"
                            fieldname="[ taxonomy field ]"
                            titleclass="[ title css Class ]"
                            headerclass="[ header css Class ]"
                            bodyclass="[ body css Class ]"
                            cols="[ number of columns ]"
                            maxchar="[ maximum characters per node ]"
                            title="[ taxonomy title ]" />
 

Developed by Raritan Technologies .

Author:
Chris Peterson
See Also:
Serialized Form

Constructor Summary
GetTaxonomyView()
           
 
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 setBodyclass(java.lang.String bodyclass)
           
 void setCols(int cols)
           
 void setEnable(boolean enabled)
          Enable/Disable the renderer.
 void setFieldname(java.lang.String fieldname)
           
 void setHeaderclass(java.lang.String headerclass)
           
 void setMaxchar(int maxchar)
           
 void setTitle(java.lang.String title)
           
 void setTitleclass(java.lang.String titleclass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetTaxonomyView

public GetTaxonomyView()
Method Detail

setFieldname

public void setFieldname(java.lang.String fieldname)

setTitleclass

public void setTitleclass(java.lang.String titleclass)

setHeaderclass

public void setHeaderclass(java.lang.String headerclass)

setBodyclass

public void setBodyclass(java.lang.String bodyclass)

setCols

public void setCols(int cols)

setMaxchar

public void setMaxchar(int maxchar)

setTitle

public void setTitle(java.lang.String title)

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

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

isHidden

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