com.raritantechnologies.dieselpoint.taglibrary
Class DieselpointTaxonomyTreeRenderer

java.lang.Object
  extended bycom.raritantechnologies.searchApp.taglibrary.BasicSearchElementRenderer
      extended bycom.raritantechnologies.dieselpoint.taglibrary.DieselpointSearchElementRenderer
          extended bycom.raritantechnologies.dieselpoint.taglibrary.DieselpointTaxonomyTreeRenderer
All Implemented Interfaces:
IConfigurable, ISearchElementRenderer

public class DieselpointTaxonomyTreeRenderer
extends DieselpointSearchElementRenderer

Basic RTI implementation of a Dieselpoint taxonomy tree renderer. Uses Dieselpoint FacetGenerator class.

XML Configuration Template:
   <SearchElementRenderer class="com.raritantechnologies.dieselpoint.taglibrary.DieselpointTaxonomyTreeRenderer"
                             category_id="[ Dieselpoint field ID ]"
                             baseURL="[ base URL for hyperlinks ]"
                             maxHits="[ maximum hits to calculate and display ]" >

     <!-- Param elements specify parameters to be included in url sent to Dieselpoint UI objects -->
     <Param name="[ request parameter name ]" mapTo="[ Dieselpoint parameter name ]" />

     <!-- Fixed Parameters that are inserted into request to include Dieselpoint or Framework specific fields -->
     <FixedParam name="[ request parameter name ]" value="[ request parameter value ]" />

   </SearchElementRenderer>
 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan, Kepler Gelotte

Field Summary
 
Fields inherited from class com.raritantechnologies.dieselpoint.taglibrary.DieselpointSearchElementRenderer
baseParamMap, fixedParamMap
 
Fields inherited from class com.raritantechnologies.searchApp.taglibrary.BasicSearchElementRenderer
enabled, name
 
Constructor Summary
DieselpointTaxonomyTreeRenderer()
           
 
Method Summary
protected  java.lang.String doGetBody(ISearchFormRenderer parent, RaritanPageContext pageContext)
          Returns the element html fragment.
 java.lang.String getBaseURL()
           
 java.lang.String getConfigurationXML()
           
 void getConfigurationXML(java.io.Writer writer)
           
 java.lang.String getFieldID()
           
 int getMaxHits()
           
 void initialize(org.w3c.dom.Element elem)
          Initialize renderer-specific parameters from the configuration XML tag.
 void setBaseURL(java.lang.String baseURL)
           
 void setFieldID(java.lang.String fieldID)
           
 void setMaxHits(int maxHits)
           
 
Methods inherited from class com.raritantechnologies.dieselpoint.taglibrary.DieselpointSearchElementRenderer
addFixedParameter, addMappedParameter, getBaseParams, getBaseURL, getDieselpointSearchBean, getSearcher, initializeBaseParams
 
Methods inherited from class com.raritantechnologies.searchApp.taglibrary.BasicSearchElementRenderer
doGetBodyDisabled, getBody, getInitValue, getInitValue, getInitValue, getRenderer, isHidden, setEnable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DieselpointTaxonomyTreeRenderer

public DieselpointTaxonomyTreeRenderer()
Method Detail

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 ISearchElementRenderer
Overrides:
initialize in class BasicSearchElementRenderer

doGetBody

protected java.lang.String doGetBody(ISearchFormRenderer parent,
                                     RaritanPageContext pageContext)
Returns the element html fragment.

Specified by:
doGetBody in class BasicSearchElementRenderer

setFieldID

public void setFieldID(java.lang.String fieldID)

getFieldID

public java.lang.String getFieldID()

setBaseURL

public void setBaseURL(java.lang.String baseURL)

getBaseURL

public java.lang.String getBaseURL()

setMaxHits

public void setMaxHits(int maxHits)

getMaxHits

public int getMaxHits()

getConfigurationXML

public void getConfigurationXML(java.io.Writer writer)
                         throws java.io.IOException
Throws:
java.io.IOException

getConfigurationXML

public java.lang.String getConfigurationXML()