org.kuali.kfs.sys.document.web.renderers
Class DropDownRenderer

java.lang.Object
  extended by org.kuali.kfs.sys.document.web.renderers.FieldRendererBase
      extended by org.kuali.kfs.sys.document.web.renderers.DropDownRenderer
All Implemented Interfaces:
FieldRenderer, Renderer

public class DropDownRenderer
extends FieldRendererBase

This renders a drop down field to JSP


Constructor Summary
DropDownRenderer()
           
 
Method Summary
protected  String buildOption(org.kuali.rice.core.util.KeyLabelPair keyLabelPair)
          Builds an option tag for the given key label pair
protected  String buildOptions()
          Builds the options for the select box, given the valid values in the field
protected  String buildSelectControl()
          Builds a drop down control, based on the field
 void render(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag)
          Asks this renderer to render
 boolean renderQuickfinder()
          No quickfinder for us, thanks
 
Methods inherited from class org.kuali.kfs.sys.document.web.renderers.FieldRendererBase
buildOnBlur, clear, closeNoWrapSpan, getAccessibleTitle, getDynamicNameLabel, getErrorIconImageTag, getField, getFieldName, getQuickfinderTabIndex, isShowError, openNoWrapSpan, overrideOnBlur, renderErrorIcon, renderQuickFinderIfNecessary, setAccessibleTitle, setArbitrarilyHighTabIndex, setDynamicNameLabel, setField, setShowError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DropDownRenderer

public DropDownRenderer()
Method Detail

render

public void render(javax.servlet.jsp.PageContext pageContext,
                   javax.servlet.jsp.tagext.Tag parentTag)
            throws javax.servlet.jsp.JspException
Description copied from interface: Renderer
Asks this renderer to render

Parameters:
pageContext - the JSP page context to render to
parentTag - the tag that is the "parent" of this rendering
Throws:
javax.servlet.jsp.JspException
See Also:
Renderer.render(javax.servlet.jsp.PageContext, javax.servlet.jsp.tagext.Tag)

buildSelectControl

protected String buildSelectControl()
Builds a drop down control, based on the field

Parameters:
propertyPrefix - the prefix of the property from the form to the business object
Returns:
a String containing the HTML for the drop down control/select box

buildOptions

protected String buildOptions()
Builds the options for the select box, given the valid values in the field

Returns:
a String containing all the option tags for this drop down control

buildOption

protected String buildOption(org.kuali.rice.core.util.KeyLabelPair keyLabelPair)
Builds an option tag for the given key label pair

Parameters:
keyLabelPair - the key label pair to create an option tag from
Returns:
the String with the option tag in it

renderQuickfinder

public boolean renderQuickfinder()
No quickfinder for us, thanks

Returns:
true if a quick finder should be rendered, false otherwise
See Also:
FieldRenderer.renderQuickfinder()


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.