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

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

public class DefaultValuePopulationAccountingLineFieldRenderingTransformationImpl
extends Object
implements AccountingLineFieldRenderingTransformation

A field transformer that populates a field with its default value


Constructor Summary
DefaultValuePopulationAccountingLineFieldRenderingTransformationImpl()
           
 
Method Summary
protected  void populateFieldWithDefault(org.kuali.rice.kns.web.ui.Field field, org.kuali.rice.kns.datadictionary.MaintainableFieldDefinition fieldDefinition)
          Populates a maintenance field with its default value
 void transformField(AccountingLine accountingLine, org.kuali.rice.kns.web.ui.Field field, org.kuali.rice.kns.datadictionary.MaintainableFieldDefinition fieldDefinition, Map unconvertedValues)
          Using the data dictionary definition for the field, determines what the default value for this field would be should there be a default value defined; note that this value may be wiped out by the value from the business object during that transformation (which presumably happends after this one)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultValuePopulationAccountingLineFieldRenderingTransformationImpl

public DefaultValuePopulationAccountingLineFieldRenderingTransformationImpl()
Method Detail

transformField

public void transformField(AccountingLine accountingLine,
                           org.kuali.rice.kns.web.ui.Field field,
                           org.kuali.rice.kns.datadictionary.MaintainableFieldDefinition fieldDefinition,
                           Map unconvertedValues)
Using the data dictionary definition for the field, determines what the default value for this field would be should there be a default value defined; note that this value may be wiped out by the value from the business object during that transformation (which presumably happends after this one)

Specified by:
transformField in interface AccountingLineFieldRenderingTransformation
Parameters:
accountingLine - the accounting line that is being rendered
field - the field to transform
fieldDefinition - the accounting line definition of the accounting line being rendered
unconvertedValues - a map of unconverted values
See Also:
org.kuali.kfs.sys.document.service.AccountingLineFieldRenderingTransformation#transformField(org.kuali.kfs.sys.document.web.AccountingLineViewField)

populateFieldWithDefault

protected void populateFieldWithDefault(org.kuali.rice.kns.web.ui.Field field,
                                        org.kuali.rice.kns.datadictionary.MaintainableFieldDefinition fieldDefinition)
Populates a maintenance field with its default value

Parameters:
field - the field to populate with a default value
fieldDefinition - the data dictionary definition of the field to transform


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