com.raritantechnologies.searchApp.taglibrary
Class FilteringDisplayFormRenderer
java.lang.Object
com.raritantechnologies.searchApp.taglibrary.FilteringDisplayFormRenderer
- All Implemented Interfaces:
- IConfigurable, IDisplayFormRenderer
- public class FilteringDisplayFormRenderer
- extends java.lang.Object
- implements IDisplayFormRenderer
Filters a result set using an IResultMatcher then renders using a proxy
IDisplayFormRenderer.
XML Configuration Template:
<DisplayForm name="[the Display form name]"
rendererClass="com.raritantechnologies.searchApp.taglibrary.FilteringDisplayFormRenderer">
<ResultMatcher class="[class of com.raritantechnologies.searchApp.IResultMatcher ]" >
<!-- Configuration parameters for IResultMatcher -->
</ResultMatcher>
<QueryResultMatcher class="[class of com.raritantechnologies.searchApp.IQueryResultMatcher ]" >
<!-- Configuration parameters for IQueryResultMatcher -->
</QueryResultMatcher>
<QueryBuilder class="[class of com.raritantechnologies.searchApp.IQueryBuilder ]" >
<!-- Configuration parameters for QueryBuilder -->
</QueryBuilder>
<!-- Alternatively, can use a GatewayProcessorFilter to filter the ResultSet -->
<GatewayProcessorFilter class="[ subclass of com.raritantechnologies.searchApp.dataCollection.GatewayProcessorFilter ]" >
</GatewayProcessorFilter>
<DisplayFormRenderer rendererClass="[ class of com.raritantechnologies.searchApp.taglibrary.IDisplayFormRenderer ]" >
<!-- Configuration parameters for DisplayFormRenderer -->
</DisplayFormRenderer>
</DisplayForm>
Developed by
Raritan Technologies Inc..
- Author:
- Ted Sullivan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilteringDisplayFormRenderer
public FilteringDisplayFormRenderer()
initialize
public void initialize(org.w3c.dom.Element elem)
- Initialize the renderer from the configuration XML.
- Specified by:
initialize in interface IDisplayFormRenderer
getBody
public java.lang.String getBody(IResultSet resultSet,
java.lang.String displayFormName,
RaritanPageContext pageContext)
- Returns the display form body as an HTML fragment, by formatting the data
contained in an IResultSet.
- Specified by:
getBody in interface IDisplayFormRenderer
addBodyTrailerContent
public void addBodyTrailerContent(java.lang.String content)
- Description copied from interface:
IDisplayFormRenderer
- Add html content to be appended to the body of the displayFormRenderer
- Specified by:
addBodyTrailerContent in interface IDisplayFormRenderer
getResultRenderer
public IResultRenderer getResultRenderer(java.lang.String name)
- Specified by:
getResultRenderer in interface IDisplayFormRenderer
setEnabledRendererParam
public void setEnabledRendererParam(java.lang.String enabledParam)
- Specified by:
setEnabledRendererParam in interface IDisplayFormRenderer
setDisabledRendererParam
public void setDisabledRendererParam(java.lang.String disabledParam)
- Specified by:
setDisabledRendererParam in interface IDisplayFormRenderer
setEnabledRenderers
public void setEnabledRenderers(java.lang.String displayForm,
RaritanPageContext pageContext)
- Specified by:
setEnabledRenderers in interface IDisplayFormRenderer
enableRenderers
public void enableRenderers(java.util.HashSet enabledRenderers)
- Specified by:
enableRenderers in interface IDisplayFormRenderer
disableRenderers
public void disableRenderers(java.util.HashSet disabledRenderers)
- Specified by:
disableRenderers in interface IDisplayFormRenderer
getCurrentRenderer
protected IDisplayFormRenderer getCurrentRenderer()
- Returns:
- Returns the currentRenderer.
setCurrentRenderer
protected void setCurrentRenderer(IDisplayFormRenderer currentRenderer)
- Parameters:
currentRenderer - The currentRenderer to set.
processResultSet
public IResultSet processResultSet(IResultSet resSet,
GatewayProcessorFilter gatewayProcFilter)