com.raritantechnologies.searchApp.taglibrary
Class BasicDataHandler

java.lang.Object
  extended bycom.raritantechnologies.searchApp.taglibrary.BasicDataHandler
All Implemented Interfaces:
IConfigurable, ISearchElementRenderer, ISearchMapModifier

public class BasicDataHandler
extends java.lang.Object
implements ISearchElementRenderer, ISearchMapModifier

This class takes the specifed Data fields from the session and puts it into the ordered map and the raritan page context. The SearchBean invokes updateSearchParams() before executing the search query. Although this class implements ISearchElementRenderer, it doesn't render anything. In the future, change the SearchBean and the SearchFormTableRenderer to support ISearchMapModifier interfaces so this class would only need to implement the ISearchMapModifier interface.

<SearchElementRenderer rendererClass="com.raritantechnologies.searchApp.taglibrary.BasicDataHandler" <DataFields name="" /> </SearchElementRenderer>
Developed by Raritan Technologies .

Author:
Pat Crabtree

Field Summary
protected  java.lang.String name
           
 
Constructor Summary
BasicDataHandler()
           
 
Method Summary
 boolean canUpdateSearchParams()
           
 java.lang.String getBody(ISearchFormRenderer parent, RaritanPageContext pageContext)
          Returns the element html fragment.
 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.
 boolean isHidden(ISearchFormRenderer parent, RaritanPageContext pageContext)
           
 void setEnable(boolean enabled)
          Enable/Disable the renderer.
 void updateSearchParams(RaritanPageContext pageContext, OrderedMap searchParams)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
Constructor Detail

BasicDataHandler

public BasicDataHandler()
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

updateSearchParams

public void updateSearchParams(RaritanPageContext pageContext,
                               OrderedMap searchParams)
Specified by:
updateSearchParams in interface ISearchMapModifier

canUpdateSearchParams

public boolean canUpdateSearchParams()
Specified by:
canUpdateSearchParams in interface ISearchMapModifier

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