com.raritantechnologies.quickstart.taglibrary.forms
Class LabelElementRenderer
java.lang.Object
com.raritantechnologies.searchApp.taglibrary.BasicSearchElementRenderer
com.raritantechnologies.quickstart.taglibrary.forms.LabelElementRenderer
- All Implemented Interfaces:
- IConfigurable, IElementValueBuilder, ISearchElementRenderer
- public class LabelElementRenderer
- extends BasicSearchElementRenderer
- implements IElementValueBuilder
Renders a Label within a SearchForm.
XML Configuration Template:
<SearchElementRenderer
rendererClass="com.raritantechnologies.quickstart.taglibrary.forms.LabelElementRenderer"
label="[label string ] supports patterns {REQUEST:requestParam} {SESSION:Session param}"
halign = "left"
valign = "center"
cssClass = "TheLabelClass"
width="50"
bgcolor="#abcdef"
useTable="false" >
... Label text can also go in the tag body...
</SearchElementRenderer>
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 |
LabelElementRenderer
public LabelElementRenderer()
LabelElementRenderer
public LabelElementRenderer(java.lang.String name,
java.lang.String label)
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
clearDataChoices
public void clearDataChoices()
- Specified by:
clearDataChoices in interface IElementValueBuilder
addDataChoice
public void addDataChoice(java.lang.String choiceVal,
java.lang.String choiceName)
- Specified by:
addDataChoice in interface IElementValueBuilder
setSelectedValues
public void setSelectedValues(java.util.ArrayList values)
- Specified by:
setSelectedValues in interface IElementValueBuilder
setValue
public void setValue(java.lang.String value)
- Specified by:
setValue in interface IElementValueBuilder
doGetBody
protected java.lang.String doGetBody(ISearchFormRenderer parent,
RaritanPageContext pageContext)
- Specified by:
doGetBody in class BasicSearchElementRenderer
setLabel
public void setLabel(java.lang.String label)
getLabel
public java.lang.String getLabel()
setWidth
public void setWidth(java.lang.String width)
getWidth
public java.lang.String getWidth()
setVAlignment
public void setVAlignment(java.lang.String vAlignment)
getVAlignment
public java.lang.String getVAlignment()
setHAlignment
public void setHAlignment(java.lang.String hAlignment)
getHAlignment
public java.lang.String getHAlignment()
setCssClass
public void setCssClass(java.lang.String clazz)
getCssClass
public java.lang.String getCssClass()
setUseColor
public void setUseColor(boolean useTable)
getUseColor
public boolean getUseColor()
setBackgroundColor
public void setBackgroundColor(java.lang.String bgcolor)
getBackgroundColor
public java.lang.String getBackgroundColor()
getConfigurationXML
public void getConfigurationXML(java.io.Writer writer)
throws java.io.IOException
- Throws:
java.io.IOException
getConfigurationXML
public java.lang.String getConfigurationXML()