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

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

public class HideShowBlockRenderer
extends Object
implements Renderer

Renders a hide show block


Field Summary
protected  String riceImageURLProperty
           
 
Constructor Summary
HideShowBlockRenderer()
           
 
Method Summary
protected  String buildInnerTableClosing()
          Creates the HTML to close the inner table and hide/show div
protected  String buildInnerTableOpening()
          Creates the HTML for the hiding/showing div and inner table to display children in
protected  String buildLabelButtonTableClosing()
           
protected  String buildLabelButtonTableOpening()
           
protected  void cleanShowHideButton()
          Cleans the show/hide button up
protected  void cleanTabStateTag()
          Cleans the tab state hidden tag
 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.
 HideShowBlock getHideShowBlock()
          Gets the hideShowBlock attribute.
 void render(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag)
          Renders the title row and forces the rendering of child content
protected  void renderShowHideButton(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag)
          Renders the hide/show image button
protected  void renderTabStateTag(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag)
          Renders a hidden tag which holds the current tab state
 void setHideShowBlock(HideShowBlock hideShowBlock)
          Sets the hideShowBlock attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

riceImageURLProperty

protected String riceImageURLProperty
Constructor Detail

HideShowBlockRenderer

public HideShowBlockRenderer()
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()

cleanTabStateTag

protected void cleanTabStateTag()
Cleans the tab state hidden tag


cleanShowHideButton

protected void cleanShowHideButton()
Cleans the show/hide button up


render

public void render(javax.servlet.jsp.PageContext pageContext,
                   javax.servlet.jsp.tagext.Tag parentTag)
            throws javax.servlet.jsp.JspException
Renders the title row and forces the rendering of child content

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:
Renderer.render(javax.servlet.jsp.PageContext, javax.servlet.jsp.tagext.Tag)

buildLabelButtonTableOpening

protected String buildLabelButtonTableOpening()
Returns:
the HTML for the opening of the button table

renderTabStateTag

protected void renderTabStateTag(javax.servlet.jsp.PageContext pageContext,
                                 javax.servlet.jsp.tagext.Tag parentTag)
                          throws javax.servlet.jsp.JspException
Renders a hidden tag which holds the current tab state

Parameters:
pageContext - the pageContext to render to
parentTag - the tag requesting all this rendering
Throws:
javax.servlet.jsp.JspException - thrown if something goes wrong

buildLabelButtonTableClosing

protected String buildLabelButtonTableClosing()
Returns:
the HTML for the closing of the label button table

renderShowHideButton

protected void renderShowHideButton(javax.servlet.jsp.PageContext pageContext,
                                    javax.servlet.jsp.tagext.Tag parentTag)
                             throws javax.servlet.jsp.JspException
Renders the hide/show image button

Parameters:
pageContext - the pageContext to render to
parentTag - the tag requesting all this rendering
Throws:
javax.servlet.jsp.JspException - thrown if something goes wrong

buildInnerTableOpening

protected String buildInnerTableOpening()
Creates the HTML for the hiding/showing div and inner table to display children in

Returns:
the HTML for the opening of the inner table

buildInnerTableClosing

protected String buildInnerTableClosing()
Creates the HTML to close the inner table and hide/show div

Returns:
the HTML for the closing of the inner table

getHideShowBlock

public HideShowBlock getHideShowBlock()
Gets the hideShowBlock attribute.

Returns:
Returns the hideShowBlock.

setHideShowBlock

public void setHideShowBlock(HideShowBlock hideShowBlock)
Sets the hideShowBlock attribute value.

Parameters:
hideShowBlock - The hideShowBlock to set.


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