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

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

public class SubObjectCodeDynamicNameLabelGeneratorImpl
extends Object
implements DynamicNameLabelGenerator


Constructor Summary
SubObjectCodeDynamicNameLabelGeneratorImpl()
           
 
Method Summary
 String getDynamicNameLabelFieldName(AccountingLine line, String accountingLineProperty)
          Always returns accountingLineProperty+".subObjectCode.financialSubObjectCodeName"
 String getDynamicNameLabelOnBlur(AccountingLine line, String accountingLineProperty)
          Builds the proper call to loadSubObjectInfo
 String getDynamicNameLabelValue(AccountingLine line, String accountingLineProperty)
          If the subObjectCode reference on the line is refreshable, returns the sub 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

SubObjectCodeDynamicNameLabelGeneratorImpl

public SubObjectCodeDynamicNameLabelGeneratorImpl()
Method Detail

getDynamicNameLabelValue

public String getDynamicNameLabelValue(AccountingLine line,
                                       String accountingLineProperty)
If the subObjectCode reference on the line is refreshable, returns the sub 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 loadSubObjectInfo

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+".subObjectCode.financialSubObjectCodeName"

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.