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

java.lang.Object
  extended by org.kuali.kfs.sys.document.service.impl.ObjectCodeDynamicNameLabelGeneratorImpl
All Implemented Interfaces:
DynamicNameLabelGenerator
Direct Known Subclasses:
PurapObjectCodeDynamicNameLabelGeneratorImpl

public class ObjectCodeDynamicNameLabelGeneratorImpl
extends Object
implements DynamicNameLabelGenerator


Constructor Summary
ObjectCodeDynamicNameLabelGeneratorImpl()
           
 
Method Summary
 String getDynamicNameLabelFieldName(AccountingLine line, String accountingLineProperty)
          Always returns accountingLineProperty+".objectCode.financialObjectCodeName"
 String getDynamicNameLabelOnBlur(AccountingLine line, String accountingLineProperty)
          Builds the proper call to loadObjectInfo
 String getDynamicNameLabelValue(AccountingLine line, String accountingLineProperty)
          If the objectCode reference on the line is refreshable, returns the object code's name; otherwise returns null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectCodeDynamicNameLabelGeneratorImpl

public ObjectCodeDynamicNameLabelGeneratorImpl()
Method Detail

getDynamicNameLabelValue

public String getDynamicNameLabelValue(AccountingLine line,
                                       String accountingLineProperty)
If the objectCode reference on the line is refreshable, returns the object code's name; otherwise returns null

Specified by:
getDynamicNameLabelValue in interface DynamicNameLabelGenerator
Parameters:
line - the accounting line this label is associated with
accountingLineProperty - the property of the accounting line
Returns:
the value, or an blank String ("" or null) if no value exists
See Also:
DynamicNameLabelGenerator.getDynamicNameLabelFieldName(org.kuali.kfs.sys.businessobject.AccountingLine, java.lang.String)

getDynamicNameLabelOnBlur

public String getDynamicNameLabelOnBlur(AccountingLine line,
                                        String accountingLineProperty)
Builds the proper call to loadObjectInfo

Specified by:
getDynamicNameLabelOnBlur in interface DynamicNameLabelGenerator
Parameters:
line - the accounting line this label is associated with
accountingLineProperty - the property of the accounting line
Returns:
a Javascript call to be performed onblur from the field
See Also:
DynamicNameLabelGenerator.getDynamicNameLabelOnBlur(org.kuali.kfs.sys.businessobject.AccountingLine, java.lang.String)

getDynamicNameLabelFieldName

public String getDynamicNameLabelFieldName(AccountingLine line,
                                           String accountingLineProperty)
Always returns accountingLineProperty+".objectCode.financialObjectCodeName"

Specified by:
getDynamicNameLabelFieldName in interface DynamicNameLabelGenerator
Parameters:
line - the accounting line this label is associated with
accountingLineProperty - the property of the accounting line
Returns:
the field name
See Also:
org.kuali.kfs.sys.document.service.DynamicNameLabelGenerator#getDynamicNameLabelName(org.kuali.kfs.sys.businessobject.AccountingLine, java.lang.String)


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