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

java.lang.Object
  extended by org.kuali.kfs.sys.document.web.FieldTableJoining
      extended by org.kuali.kfs.sys.document.web.FieldTableJoiningWithHeader
All Implemented Interfaces:
ElementNamable, RenderableElement, TableJoining, TableJoiningWithHeader
Direct Known Subclasses:
AccountingLineViewActionsField, AccountingLineViewField, AccountingLineViewMultipleReadOnlyFields, AccountingLineViewSequenceNumberField

public abstract class FieldTableJoiningWithHeader
extends FieldTableJoining
implements TableJoiningWithHeader

Extension of FieldTableJoining that adds header cells correctly


Constructor Summary
FieldTableJoiningWithHeader()
           
 
Method Summary
protected  AccountingLineTableCell createHeaderLabelTableCell()
          Creates a header label cell for this element
 int getRequestedRowCount()
          Always returns 2 - one row for the header, one for the row
 void joinRow(AccountingLineTableRow headerLabelRow, AccountingLineTableRow row)
          This joins a row but adds a header to the header label row
 void joinTable(List<AccountingLineTableRow> rows)
          Requests that this layout element property join a number of rows which will make up a table
 
Methods inherited from class org.kuali.kfs.sys.document.web.FieldTableJoining
createTableCell, isActionBlock, isEmpty, isHidden, performFieldTransformations, readOnlyizeReadOnlyBlocks, removeAllActionBlocks, removeUnviewableBlocks, setEditableBlocks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.kfs.sys.document.web.TableJoiningWithHeader
createHeaderLabel, isHidden
 
Methods inherited from interface org.kuali.kfs.sys.document.web.TableJoining
performFieldTransformations, readOnlyizeReadOnlyBlocks, removeAllActionBlocks, removeUnviewableBlocks, setEditableBlocks
 
Methods inherited from interface org.kuali.kfs.sys.document.web.ElementNamable
getName
 
Methods inherited from interface org.kuali.kfs.sys.document.web.RenderableElement
appendFields, populateWithTabIndexIfRequested, renderElement
 

Constructor Detail

FieldTableJoiningWithHeader

public FieldTableJoiningWithHeader()
Method Detail

joinTable

public void joinTable(List<AccountingLineTableRow> rows)
Description copied from interface: TableJoining
Requests that this layout element property join a number of rows which will make up a table

Specified by:
joinTable in interface TableJoining
Overrides:
joinTable in class FieldTableJoining
Parameters:
rows - the rows to join
See Also:
FieldTableJoining.joinTable(java.util.List)

createHeaderLabelTableCell

protected AccountingLineTableCell createHeaderLabelTableCell()
Creates a header label cell for this element

Returns:
a table cell holding the header label to render

joinRow

public void joinRow(AccountingLineTableRow headerLabelRow,
                    AccountingLineTableRow row)
This joins a row but adds a header to the header label row

Specified by:
joinRow in interface TableJoining
Overrides:
joinRow in class FieldTableJoining
Parameters:
headerLabelRow - the header row which can be joined
row - the row which can be joined
See Also:
TableJoining.joinRow(org.kuali.kfs.sys.document.web.AccountingLineTableRow, org.kuali.kfs.sys.document.web.AccountingLineTableRow)

getRequestedRowCount

public int getRequestedRowCount()
Always returns 2 - one row for the header, one for the row

Specified by:
getRequestedRowCount in interface TableJoining
Overrides:
getRequestedRowCount in class FieldTableJoining
Returns:
the minimum number of rows
See Also:
FieldTableJoining.getRequestedRowCount()


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