com.raritantechnologies.searchApp.taglibrary
Class DivSearchElementRenderer
java.lang.Object
com.raritantechnologies.searchApp.taglibrary.BasicSearchElementRenderer
com.raritantechnologies.searchApp.taglibrary.DivSearchElementRenderer
- All Implemented Interfaces:
- IConfigurable, ISearchElementRenderer
- public class DivSearchElementRenderer
- extends BasicSearchElementRenderer
Renders set of child ISearchElementRenderers within a <div>
Also allows for hiding and showing based on either an image or a link.
Set hideShowType="non" if you just want a div that is always visible.
XML Configuration schema:
<SearchElementRenderer
rendererClass="com.raritantechnologies.searchApp.taglibrary.DivSearchElementRenderer"
name="id for HTML hide show"
stateName="name of session data holding hide/show state. defaults to {name}State and values are either 'show' or 'hide' by default"
hideValue="hide"
showValue="show"
defaultState="show"
divClass="divCSSClass"
display="style display when visible [block|inline|...]"
labelClass="labelCSSClass"
hideShowType="none|text|img"
hide="Click here to hide results"
show="Click here to see results" >
<SearchElementRenderer
rendererClass="[Child Renderer class 1]" >
<!-- Configuration parameters for renderer class 1 -->
</SearchElementRenderer>
<SearchElementRenderer
rendererClass="[Child Renderer class 2]" >
<!-- Configuration parameters for renderer class 2 -->
</SearchElementRenderer>
<!-- etc. etc. -->
</SearchElementRenderer>
Developed by
Raritan Technologies .
- Author:
- Kepler Gelotte (Raritan Technologies)
COPYRIGHT NOTICE
SOFTWARE CONTAINING TRADE SECRETS
Copyright 2003 Raritan Technologies Inc. [RTI] All rights reserved.
This software and documentation constitute an unpublished work and contain
valuable trade secrets and proprietary information belonging to RTI. None
of the foregoing material may be copied, duplicated or disclosed without
the express written permission of RTI. RTI EXPRESSLY DISCLAIMS ANY AND ALL
WARRANTIES CONCERNING THIS SOFTWARE AND DOCUMENTATION, INCLUDING ANY
WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR ANY PARTICULAR PURPOSE,
AND WARRANTIES OF PERFORMANCE, AND ANY WARRANTY THAT MIGHT OTHERWISE ARISE
FROM COURSE OF DEALING OR USAGE OF TRADE. NO WARRANTY IS EITHER EXPRESS OR
IMPLIED WITH RESPECT TO THE USE OF THE SOFTWARE OR DOCUMENTATION.
Under no circumstances shall RTI be liable for incidental, special,
indirect, direct or consequential damages or loss of profits, interruption
of business, or related expenses which may arise from use of software or
documentation, including but not limited to those resulting from defects
in software and/or documentation, or loss or inaccuracy of data of any kind.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DivSearchElementRenderer
public DivSearchElementRenderer()
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
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- Overrides:
getRenderer in class BasicSearchElementRenderer
addChildRenderer
public void addChildRenderer(org.w3c.dom.Element rendererEl)
addChildRenderer
public void addChildRenderer(ISearchElementRenderer childRenderer)
doGetBody
protected java.lang.String doGetBody(ISearchFormRenderer parent,
RaritanPageContext pageContext)
- Specified by:
doGetBody in class BasicSearchElementRenderer