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

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

public class ActionsRenderer
extends Object
implements Renderer

Renders an action for the accounting line view.


Constructor Summary
ActionsRenderer()
          Constructs a ActionsRenderer, which sets values on the actionButton tag that never change
 
Method Summary
protected  String buildCenteringDivBeginning()
          Builds the opening of the centering div tag
protected  String buildCenteringDivEnding()
          Builds the close of the centering div tag
protected  String buildNonBreakingSpace()
           
 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.
 List<AccountingLineViewAction> getActions()
          Gets the action attribute.
 String getPostButtonSpacing()
          Builds spacing for after the button is displayed
protected  String getTabIndex()
          Retrieves the set tab index as a String, or, if the tabIndex was never set, returns a null
 String getTagBeginning()
          Gets the tagBeginning attribute.
 String getTagEnding()
          Gets the tagEnding attribute.
 void render(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag)
          Asks this renderer to render
protected  void renderAction(AccountingLineViewAction action)
          Renders a single action, using the action button
protected  void resetButton()
          Clears out changing values the action button tag
 void setActions(List<AccountingLineViewAction> actions)
          Sets the action attribute value.
 void setPostButtonSpacing(String postButtonSpacing)
          Sets the postButtonSpacing attribute value.
 void setTabIndex(int tabIndex)
          Sets the tab index for the action
 void setTagBeginning(String tagBeginning)
          Sets the tagBeginning attribute value.
 void setTagEnding(String tagEnding)
          Sets the tagEnding attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionsRenderer

public ActionsRenderer()
Constructs a ActionsRenderer, which sets values on the actionButton tag that never change

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

resetButton

protected void resetButton()
Clears out changing values the action button tag


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

renderAction

protected void renderAction(AccountingLineViewAction action)
                     throws javax.servlet.jsp.JspException
Renders a single action, using the action button

Parameters:
action - the action to render
Throws:
javax.servlet.jsp.JspException - thrown if the actionButton cannot uphold its duties to render the

buildCenteringDivBeginning

protected String buildCenteringDivBeginning()
Builds the opening of the centering div tag

Returns:
the opening of the centering div tag in HTML

buildCenteringDivEnding

protected String buildCenteringDivEnding()
Builds the close of the centering div tag

Returns:
the close of the centering div tag in HTML

getPostButtonSpacing

public String getPostButtonSpacing()
Builds spacing for after the button is displayed

Returns:
a String of HTML that will space after the button

setPostButtonSpacing

public void setPostButtonSpacing(String postButtonSpacing)
Sets the postButtonSpacing attribute value.

Parameters:
postButtonSpacing - The postButtonSpacing to set.

getActions

public List<AccountingLineViewAction> getActions()
Gets the action attribute.

Returns:
Returns the action.

setActions

public void setActions(List<AccountingLineViewAction> actions)
Sets the action attribute value.

Parameters:
action - The action to set.

setTabIndex

public void setTabIndex(int tabIndex)
Sets the tab index for the action

Parameters:
tabIndex - the tab index to set

getTabIndex

protected String getTabIndex()
Retrieves the set tab index as a String, or, if the tabIndex was never set, returns a null

Returns:
the tab index as a String or null

buildNonBreakingSpace

protected String buildNonBreakingSpace()
Returns:
the HTML for a non-breaking space, so the box isn't all empty

getTagBeginning

public String getTagBeginning()
Gets the tagBeginning attribute.

Returns:
Returns the tagBeginning.

setTagBeginning

public void setTagBeginning(String tagBeginning)
Sets the tagBeginning attribute value.

Parameters:
tagBeginning - The tagBeginning to set.

getTagEnding

public String getTagEnding()
Gets the tagEnding attribute.

Returns:
Returns the tagEnding.

setTagEnding

public void setTagEnding(String tagEnding)
Sets the tagEnding attribute value.

Parameters:
tagEnding - The tagEnding to set.


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