org.kuali.kfs.sys.document.web
Class AccountingLineTableRow

java.lang.Object
  extended by org.kuali.kfs.sys.document.web.AccountingLineTableRow
All Implemented Interfaces:
RenderableElement

public class AccountingLineTableRow
extends Object
implements RenderableElement

Represents a table row to display in an accounting view table.


Constructor Summary
AccountingLineTableRow()
          Constructs a AccountingLineTableRow
 
Method Summary
 void addCell(AccountingLineTableCell cell)
          Adds a new table cell to the row
 void appendFields(List<org.kuali.rice.kns.web.ui.Field> fields)
          Dutifully appends the names of any fields it knows about to the given List of field names
 List<AccountingLineTableCell> getCells()
          Gets the cells attribute.
 int getChildCellCount()
          Returns the number of children cells this row has
 boolean isActionBlock()
          This is not an action block
 boolean isEmpty()
          Is this renderable element empty of any truly renderable content?
 boolean isHidden()
          Determines if this element is hidden or not
 void populateWithTabIndexIfRequested(int reallyHighIndex)
          Allows the arbitrarily high tab index to be set for controls
 void renderChildrenCells(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag)
          Requests that the row renders all of its children cells
 void renderElement(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag, AccountingLineRenderingContext renderingContext)
          Renders this element
 boolean safeToRemove()
          Determines whether each cell is safe to remove; if so, simply removes that cell
 void setCells(List<AccountingLineTableCell> cells)
          Sets the cells attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountingLineTableRow

public AccountingLineTableRow()
Constructs a AccountingLineTableRow

Method Detail

getCells

public List<AccountingLineTableCell> getCells()
Gets the cells attribute.

Returns:
Returns the cells.

setCells

public void setCells(List<AccountingLineTableCell> cells)
Sets the cells attribute value.

Parameters:
cells - The cells to set.

addCell

public void addCell(AccountingLineTableCell cell)
Adds a new table cell to the row

Parameters:
cell - the cell to add to the row

isHidden

public boolean isHidden()
Description copied from interface: RenderableElement
Determines if this element is hidden or not

Specified by:
isHidden in interface RenderableElement
Returns:
true if hidden, false otherwise
See Also:
RenderableElement.isHidden()

isActionBlock

public boolean isActionBlock()
This is not an action block

Specified by:
isActionBlock in interface RenderableElement
Returns:
true if this is an action block, false otherwise
See Also:
RenderableElement.isActionBlock()

isEmpty

public boolean isEmpty()
Description copied from interface: RenderableElement
Is this renderable element empty of any truly renderable content?

Specified by:
isEmpty in interface RenderableElement
Returns:
true if it should not be rendered, false otherwise
See Also:
RenderableElement.isEmpty()

renderElement

public void renderElement(javax.servlet.jsp.PageContext pageContext,
                          javax.servlet.jsp.tagext.Tag parentTag,
                          AccountingLineRenderingContext renderingContext)
                   throws javax.servlet.jsp.JspException
Description copied from interface: RenderableElement
Renders this element

Specified by:
renderElement in interface RenderableElement
Parameters:
pageContext - the context to render to
parentTag - the parent tag that is requesting this rendering
renderingContext - the context about the accounting line that this element would end up rendering
Throws:
javax.servlet.jsp.JspException
See Also:
org.kuali.kfs.sys.document.web.RenderableElement#renderElement(javax.servlet.jsp.PageContext, javax.servlet.jsp.tagext.Tag)

renderChildrenCells

public void renderChildrenCells(javax.servlet.jsp.PageContext pageContext,
                                javax.servlet.jsp.tagext.Tag parentTag)
                         throws javax.servlet.jsp.JspException
Requests that the row renders all of its children cells

Parameters:
pageContext - the page contex to render to
parentTag - the tag requesting all this rendering
accountingLine - the accounting line to render
accountingLineProperty - the property from the form to the accounting line
Throws:
javax.servlet.jsp.JspException - exception thrown when...something...goes, I don't know...wrong or somethin'

getChildCellCount

public int getChildCellCount()
Returns the number of children cells this row has

Returns:
the number of children cells this row has

appendFields

public void appendFields(List<org.kuali.rice.kns.web.ui.Field> fields)
Dutifully appends the names of any fields it knows about to the given List of field names

Specified by:
appendFields in interface RenderableElement
Parameters:
fieldNames - a List of field names to append other names to

populateWithTabIndexIfRequested

public void populateWithTabIndexIfRequested(int reallyHighIndex)
Description copied from interface: RenderableElement
Allows the arbitrarily high tab index to be set for controls

Specified by:
populateWithTabIndexIfRequested in interface RenderableElement
Parameters:
reallyHighIndex - a really high index for elements who should not be tabbed to
See Also:
org.kuali.kfs.sys.document.web.RenderableElement#populateWithTabIndexIfRequested(int[], int)

safeToRemove

public boolean safeToRemove()
Determines whether each cell is safe to remove; if so, simply removes that cell

Returns:
true if the row can be safely removed; false otherwise


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