com.raritantechnologies.verity.parametric.taglibrary
Class DynamicTaxonomyView

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

public class DynamicTaxonomyView
extends java.lang.Object
implements ISearchElementRenderer

Checks if the taxonomy renderer has live nodes other than the default ("n/a" for example). returns empty string if taxonomy has no "meaningful" nodes.

XML Configuration Template:
   <SearchElementRenderer class="com.raritantechnologies.verity.parametric.taglibrary.DynamicTaxonomyView"
                             fieldname="[ field name of Taxonomy]"
                             defaultNode="[optional name of taxonomy node start position]"  >

       <TaxonomyRenderer rendererClass="[ class of ISearchElementRenderer specialized for taxonomy renderering]" >
         <!-- configuration parameters of taxonomy renderer -->
       </TaxonomyRenderer>

   </SearchElementRenderer>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
DynamicTaxonomyView()
           
 
Method Summary
 java.lang.String getBody(ISearchFormRenderer parent, RaritanPageContext rpc)
          Returns the element html fragment.
 java.lang.String getBody(RaritanPageContext rpc)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicTaxonomyView

public DynamicTaxonomyView()
Method Detail

getBody

public java.lang.String getBody(RaritanPageContext rpc)

getBody

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

Specified by:
getBody 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 ISearchElementRenderer

initialize

public void initialize(java.util.Map initParams)

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