org.kuali.kfs.sys.document.service
Interface DynamicNameLabelGenerator

All Known Implementing Classes:
ObjectCodeDynamicNameLabelGeneratorImpl, PurapObjectCodeDynamicNameLabelGeneratorImpl, PurapSubObjectCodeDynamicNameLabelGeneratorImpl, SubObjectCodeDynamicNameLabelGeneratorImpl

public interface DynamicNameLabelGenerator

Methods needed by a service which creates non-standard dynamic name labels for accounting line views


Method Summary
 String getDynamicNameLabelFieldName(AccountingLine line, String accountingLineProperty)
          Returns the field name of the dynamic name label
 String getDynamicNameLabelOnBlur(AccountingLine line, String accountingLineProperty)
          Builds the Javascript that should appear in the onblur attribute of the field associated with this dynamic name label
 String getDynamicNameLabelValue(AccountingLine line, String accountingLineProperty)
          Returns the value of the dynamic name label
 

Method Detail

getDynamicNameLabelOnBlur

String getDynamicNameLabelOnBlur(AccountingLine line,
                                 String accountingLineProperty)
Builds the Javascript that should appear in the onblur attribute of the field associated with this dynamic name label

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

getDynamicNameLabelValue

String getDynamicNameLabelValue(AccountingLine line,
                                String accountingLineProperty)
Returns the value of the dynamic name label

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

getDynamicNameLabelFieldName

String getDynamicNameLabelFieldName(AccountingLine line,
                                    String accountingLineProperty)
Returns the field name of the dynamic name label

Parameters:
line - the accounting line this label is associated with
accountingLineProperty - the property of the accounting line
Returns:
the field name


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