org.kuali.kfs.sys.document.datadictionary
Class AccountingLineViewMultipleReadOnlyFieldsDefinition

java.lang.Object
  extended by org.kuali.rice.kns.datadictionary.DataDictionaryDefinitionBase
      extended by org.kuali.kfs.sys.document.datadictionary.AccountingLineViewMultipleReadOnlyFieldsDefinition
All Implemented Interfaces:
Serializable, AccountingLineViewRenderableElementDefinition, org.kuali.rice.kns.datadictionary.DataDictionaryDefinition, org.springframework.beans.factory.InitializingBean

public class AccountingLineViewMultipleReadOnlyFieldsDefinition
extends org.kuali.rice.kns.datadictionary.DataDictionaryDefinitionBase
implements AccountingLineViewRenderableElementDefinition

The definition for an accounting line component which displays multiple fields from the command line, but all of them as read only, with their headers displayed first

See Also:
Serialized Form

Field Summary
 List<String> fieldNames
           
 
Fields inherited from class org.kuali.rice.kns.datadictionary.DataDictionaryDefinitionBase
id
 
Constructor Summary
AccountingLineViewMultipleReadOnlyFieldsDefinition()
           
 
Method Summary
 void completeValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass)
          Makes sure that the number of fields set is greater than 0
 TableJoining createLayoutElement(Class<? extends AccountingLine> accountingLineClass)
          Creates a new AccountingLineViewMultipleReadOnlyField
 List<String> getFieldNames()
           
 org.kuali.rice.kns.web.ui.Field getKNSFieldForDefinition(Class<? extends AccountingLine> accountingLineClass, String fieldName)
          Creates a KNS Field for an AccountingLineViewField definition
 void setFieldNames(List<String> fieldNames)
          Sets the field names to display in the field, in top-down order
 
Methods inherited from class org.kuali.rice.kns.datadictionary.DataDictionaryDefinitionBase
afterPropertiesSet, getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldNames

public List<String> fieldNames
Constructor Detail

AccountingLineViewMultipleReadOnlyFieldsDefinition

public AccountingLineViewMultipleReadOnlyFieldsDefinition()
Method Detail

completeValidation

public void completeValidation(Class rootBusinessObjectClass,
                               Class otherBusinessObjectClass)
Makes sure that the number of fields set is greater than 0

Specified by:
completeValidation in interface org.kuali.rice.kns.datadictionary.DataDictionaryDefinition
See Also:
DataDictionaryDefinition.completeValidation(java.lang.Class, java.lang.Class)

createLayoutElement

public TableJoining createLayoutElement(Class<? extends AccountingLine> accountingLineClass)
Creates a new AccountingLineViewMultipleReadOnlyField

Specified by:
createLayoutElement in interface AccountingLineViewRenderableElementDefinition
Returns:
a properly created TableJoining element
See Also:
AccountingLineViewRenderableElementDefinition.createLayoutElement(java.lang.Class)

getKNSFieldForDefinition

public org.kuali.rice.kns.web.ui.Field getKNSFieldForDefinition(Class<? extends AccountingLine> accountingLineClass,
                                                                String fieldName)
Creates a KNS Field for an AccountingLineViewField definition

Parameters:
accountingLineClass - the class of the accounting line used by this definition
fieldName - the name of the field to initialize
Returns:
a properly initialized KNS field

getFieldNames

public List<String> getFieldNames()
Returns:
the field names of fields to display in the cell

setFieldNames

public void setFieldNames(List<String> fieldNames)
Sets the field names to display in the field, in top-down order

Parameters:
fieldNames - the field names to display


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