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

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

public class AllReadOnlyNoActionsAccountingLineRenderingTransformationImpl
extends Object
implements AccountingLineRenderingTransformation

If all the fields of a line are read only, then any actions blocks should be completely removed.


Constructor Summary
AllReadOnlyNoActionsAccountingLineRenderingTransformationImpl()
           
 
Method Summary
protected  boolean allReadOnly(List<TableJoining> elements)
          Traverses all elements, determining if all of the elements are read only
protected  void removeActionBlocks(List<? extends TableJoining> elements)
          Takes any action blocks out of the line
 void transformElements(List<TableJoining> elements, AccountingLine accountingLine)
          Traverses through the elements to see if they're all read only; if so, traverses through again and removes any action blocks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllReadOnlyNoActionsAccountingLineRenderingTransformationImpl

public AllReadOnlyNoActionsAccountingLineRenderingTransformationImpl()
Method Detail

transformElements

public void transformElements(List<TableJoining> elements,
                              AccountingLine accountingLine)
Traverses through the elements to see if they're all read only; if so, traverses through again and removes any action blocks

Specified by:
transformElements in interface AccountingLineRenderingTransformation
Parameters:
elements - a List of renderable elements to transform
accountingLine - the accounting line that will be rendered
See Also:
AccountingLineRenderingTransformation.transformElements(java.util.List, org.kuali.kfs.sys.businessobject.AccountingLine)

allReadOnly

protected boolean allReadOnly(List<TableJoining> elements)
Traverses all elements, determining if all of the elements are read only

Parameters:
elements - the elements to render
Returns:
true if all elements are read only, false otherwise

removeActionBlocks

protected void removeActionBlocks(List<? extends TableJoining> elements)
Takes any action blocks out of the line

Parameters:
elements - the elements which contain action blocks to remove


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