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

java.lang.Object
  extended by org.kuali.kfs.sys.document.web.renderers.TableCellRenderer
All Implemented Interfaces:
Renderer
Direct Known Subclasses:
TableHeaderRenderer

public class TableCellRenderer
extends Object
implements Renderer

Renders a cell within a table


Constructor Summary
TableCellRenderer()
           
 
Method Summary
protected  String buildBeginningTag()
          Builds the opening cell tag, ie
protected  String buildEndingTag()
          Builds the closing cell tag, ie
 void clear()
          Resets the cell to null
 AccountingLineTableCell getCell()
          Gets the cell attribute.
protected  String getStyleClass()
          Returns what style class to use - using the styleClassOverride of the cell if possible
protected  String getTagName()
          Returns the name of the cell tag we want to create - in this case, "td"
 void render(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag)
          Renders the table cell as a header cell as well as rendering all children renderable elements of the cell
 void setCell(AccountingLineTableCell cell)
          Sets the cell attribute value.
protected  boolean verticallyAlignTowardsTop()
          Determines if the cell should be veritically aligned to the top
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableCellRenderer

public TableCellRenderer()
Method Detail

clear

public void clear()
Resets the cell to null

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
Renders the table cell as a header cell as well as rendering all children renderable elements of the cell

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)

buildBeginningTag

protected String buildBeginningTag()
Builds the opening cell tag, ie

Returns:
the opening cell tag

getStyleClass

protected String getStyleClass()
Returns what style class to use - using the styleClassOverride of the cell if possible

Returns:
the styleClassOverride if it exists, otherwise "infoline"

buildEndingTag

protected String buildEndingTag()
Builds the closing cell tag, ie

Returns:
the closing cell tag

getTagName

protected String getTagName()
Returns the name of the cell tag we want to create - in this case, "td"

Returns:
the String td, which is the tag name of the tags we want to produce

getCell

public AccountingLineTableCell getCell()
Gets the cell attribute.

Returns:
Returns the cell.

setCell

public void setCell(AccountingLineTableCell cell)
Sets the cell attribute value.

Parameters:
cell - The cell to set.

verticallyAlignTowardsTop

protected boolean verticallyAlignTowardsTop()
Determines if the cell should be veritically aligned to the top

Returns:
true if the cell should vertically align to the top; false otherwise


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