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

java.lang.Object
  extended by org.kuali.kfs.sys.document.web.renderers.DynamicNameLabelRenderer
All Implemented Interfaces:
Renderer

public class DynamicNameLabelRenderer
extends Object
implements Renderer

Renders the dynamic label portion of a field


Constructor Summary
DynamicNameLabelRenderer()
           
 
Method Summary
 void clear()
          If this object is held in a pool, this method is called before the object is returned to the pool, so that the object can be cleaned up for the next use.
 String getFieldName()
          Gets the fieldName attribute.
 String getFieldValue()
          Gets the fieldValue attribute.
 void render(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag)
          Asks this renderer to render
protected  void renderValuePersistingTag(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag)
          If the value is present, renders that value in a tag
 void setFieldName(String fieldName)
          Sets the fieldName attribute value.
 void setFieldValue(String fieldValue)
          Sets the fieldValue attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicNameLabelRenderer

public DynamicNameLabelRenderer()
Method Detail

clear

public void clear()
Description copied from interface: Renderer
If this object is held in a pool, this method is called before the object is returned to the pool, so that the object can be cleaned up for the next use.

Specified by:
clear in interface Renderer
See Also:
Renderer.clear()

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

Specified by:
render in interface Renderer
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:
org.kuali.kfs.sys.document.web.renderers.Renderer#render(javax.servlet.jsp.PageContext, javax.servlet.jsp.tagext.Tag, org.kuali.rice.kns.bo.BusinessObject)

renderValuePersistingTag

protected void renderValuePersistingTag(javax.servlet.jsp.PageContext pageContext,
                                        javax.servlet.jsp.tagext.Tag parentTag)
                                 throws javax.servlet.jsp.JspException
If the value is present, renders that value in a tag

Parameters:
pageContext - the page context to render to
parentTag - the tag requesting all this rendering
Throws:
javax.servlet.jsp.JspException

getFieldName

public String getFieldName()
Gets the fieldName attribute.

Returns:
Returns the fieldName.

setFieldName

public void setFieldName(String fieldName)
Sets the fieldName attribute value.

Parameters:
fieldName - The fieldName to set.

getFieldValue

public String getFieldValue()
Gets the fieldValue attribute.

Returns:
Returns the fieldValue.

setFieldValue

public void setFieldValue(String fieldValue)
Sets the fieldValue attribute value.

Parameters:
fieldValue - The fieldValue to set.


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