com.raritantechnologies.quickstart.taglibrary
Class DivResultRenderer
java.lang.Object
com.raritantechnologies.searchApp.taglibrary.BasicResultRenderer
com.raritantechnologies.quickstart.taglibrary.DivResultRenderer
- All Implemented Interfaces:
- IConfigurable, IPreferencesBeanInfo, IResultRenderer
- public class DivResultRenderer
- extends BasicResultRenderer
- implements IResultRenderer
Wraps a single IResultRenderer in a DHTML <div> tag.
The resultNum is used to uniquely identify divs.
Requires a child renderer to render the data.
XML Configuration Template:
<ResultRenderer
rendererClass="com.raritantechnologies.quickstart.taglibrary.DivResultRenderer"
divPrefix="[ unique prefix (combined with result number to form div id) ]"
display="[none|block]"
style="[ div style specification ]"
dependentFields="[ fields that need to have values to render the div ]" >
<ResultRenderer rendererClass="[The Child Renderer Class]" >
<!-- configuration parameters of child renderer class -->
</ResultRenderer>
</ResultRenderer>
Developed by
Raritan Technologies Inc..
- Author:
- Glenn Robitaille
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DivResultRenderer
public DivResultRenderer()
initialize
public void initialize(org.w3c.dom.Element elem)
- Description copied from interface:
IResultRenderer
- IResultRenderers are XML configurable.
- Specified by:
initialize in interface IResultRenderer- Overrides:
initialize in class BasicResultRenderer
doRenderResult
protected java.lang.String doRenderResult(IResult result,
int firstResult,
int lastResult,
int resultNum,
RaritanPageContext pageContext)
- Specified by:
doRenderResult in class BasicResultRenderer
setDivPrefix
public void setDivPrefix(java.lang.String divPrefix)
getDivPrefix
public java.lang.String getDivPrefix()
setDisplay
public void setDisplay(java.lang.String display)
getDisplay
public java.lang.String getDisplay()
setResultRenderer
public void setResultRenderer(IResultRenderer resultRenderer)
getResultRenderer
public IResultRenderer getResultRenderer()
getConfigurationXML
public void getConfigurationXML(java.io.Writer writer)
throws java.io.IOException
- Throws:
java.io.IOException
getConfigurationXML
public java.lang.String getConfigurationXML()
- Specified by:
getConfigurationXML in interface IResultRenderer
getConfigurationXML
public java.lang.String getConfigurationXML(java.lang.String configurationTemplate)
- Specified by:
getConfigurationXML in interface IResultRenderer