org.kuali.kfs.sys.document.service.impl
Class HiddenFieldRearrangementAccountingLineRenderingTransformationImpl

java.lang.Object
  extended by org.kuali.kfs.sys.document.service.impl.HiddenFieldRearrangementAccountingLineRenderingTransformationImpl
All Implemented Interfaces:
AccountingLineTableTransformation

public class HiddenFieldRearrangementAccountingLineRenderingTransformationImpl
extends Object
implements AccountingLineTableTransformation

A transformation which takes all of the non-visible hidden fields of the accounting line and moves them to the first possible position


Constructor Summary
HiddenFieldRearrangementAccountingLineRenderingTransformationImpl()
           
 
Method Summary
protected  AccountingLineTableCell findFirstNonHiddenCell(List<AccountingLineTableRow> rows)
          Finds the first top-level non-hidden container from the given list of elements
protected  void moveHiddenFields(AccountingLineTableCell sourceCell, AccountingLineTableCell targetCell)
          Moves any hidden renderable fields in the source cell to the target cell
protected  void moveHiddenFields(AccountingLineTableRow sourceRow, AccountingLineTableCell targetCell)
          Moves any hidden fields in the source container to the target container
 void transformRows(List<AccountingLineTableRow> rows)
          Performs transformation to the tablified rows for an accounting line
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HiddenFieldRearrangementAccountingLineRenderingTransformationImpl

public HiddenFieldRearrangementAccountingLineRenderingTransformationImpl()
Method Detail

transformRows

public void transformRows(List<AccountingLineTableRow> rows)
Description copied from interface: AccountingLineTableTransformation
Performs transformation to the tablified rows for an accounting line

Specified by:
transformRows in interface AccountingLineTableTransformation
Parameters:
rows - the tablified rows that represent a renderable accounting line

findFirstNonHiddenCell

protected AccountingLineTableCell findFirstNonHiddenCell(List<AccountingLineTableRow> rows)
Finds the first top-level non-hidden container from the given list of elements

Parameters:
elements - the elements to find the first non-hidden container from
Returns:
the first top-level non-hidden container

moveHiddenFields

protected void moveHiddenFields(AccountingLineTableRow sourceRow,
                                AccountingLineTableCell targetCell)
Moves any hidden fields in the source container to the target container

Parameters:
sourceContainer - the container which may have hidden fields
targetContainer - the container which should be carrying all hidden fields

moveHiddenFields

protected void moveHiddenFields(AccountingLineTableCell sourceCell,
                                AccountingLineTableCell targetCell)
Moves any hidden renderable fields in the source cell to the target cell

Parameters:
sourceCell - the source cell to move hidden elements from
targetCell - the target cell to move hidden elements to


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