org.kuali.kfs.sys.document.web
Class AccountingLineViewMultipleReadOnlyFields

java.lang.Object
  extended by org.kuali.kfs.sys.document.web.FieldTableJoining
      extended by org.kuali.kfs.sys.document.web.FieldTableJoiningWithHeader
          extended by org.kuali.kfs.sys.document.web.AccountingLineViewMultipleReadOnlyFields
All Implemented Interfaces:
ElementNamable, RenderableElement, TableJoining, TableJoiningWithHeader

public class AccountingLineViewMultipleReadOnlyFields
extends FieldTableJoiningWithHeader

Represents multiple fields displaying with their values in a single cell


Constructor Summary
AccountingLineViewMultipleReadOnlyFields(AccountingLineViewMultipleReadOnlyFieldsDefinition definition, List<org.kuali.rice.kns.web.ui.Field> fields)
          Constructs a AccountingLineViewMultipleReadOnlyFields
 
Method Summary
 void appendFields(List<org.kuali.rice.kns.web.ui.Field> fields)
          None of the read only fields will be associated with quickfinders, so this method does nothing
 HeaderLabel createHeaderLabel()
          Returns the property of the accounting line business object that can be used to find the label for the given renderable element
protected  org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
           
 List<org.kuali.rice.kns.web.ui.Field> getFields()
           
 String getName()
          Returns the top field name given in the definition
 void populateWithTabIndexIfRequested(int reallyHighIndex)
          There are no input fields here, so no need to set tab indices
 void renderElement(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag, AccountingLineRenderingContext renderingContext)
          Renders this element
protected  void setInquiryUrlForField(org.kuali.rice.kns.web.ui.Field field, AccountingLine accountingLine)
          Populates the inquiry url on the field if possible
protected  void setShortLabelsForFields(org.kuali.rice.kns.web.ui.Field field, org.kuali.rice.kns.datadictionary.BusinessObjectEntry boEntry)
          For each field, set the short label, or, failing that, set the label
protected  void setValueForField(org.kuali.rice.kns.web.ui.Field field, AccountingLine accountingLine)
          Sets the value for the field before rendering
 
Methods inherited from class org.kuali.kfs.sys.document.web.FieldTableJoiningWithHeader
createHeaderLabelTableCell, getRequestedRowCount, joinRow, joinTable
 
Methods inherited from class org.kuali.kfs.sys.document.web.FieldTableJoining
createTableCell, isActionBlock, isEmpty, isHidden, performFieldTransformations, readOnlyizeReadOnlyBlocks, removeAllActionBlocks, removeUnviewableBlocks, setEditableBlocks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.kfs.sys.document.web.TableJoiningWithHeader
isHidden
 
Methods inherited from interface org.kuali.kfs.sys.document.web.TableJoining
performFieldTransformations, readOnlyizeReadOnlyBlocks, removeAllActionBlocks, removeUnviewableBlocks, setEditableBlocks
 

Constructor Detail

AccountingLineViewMultipleReadOnlyFields

public AccountingLineViewMultipleReadOnlyFields(AccountingLineViewMultipleReadOnlyFieldsDefinition definition,
                                                List<org.kuali.rice.kns.web.ui.Field> fields)
Constructs a AccountingLineViewMultipleReadOnlyFields

Parameters:
definition - data dictionary definition which created this
fields - the fields to render as read only
Method Detail

createHeaderLabel

public HeaderLabel createHeaderLabel()
Description copied from interface: TableJoiningWithHeader
Returns the property of the accounting line business object that can be used to find the label for the given renderable element

Returns:
the property to lookup the label in the data dictionary
See Also:
TableJoiningWithHeader.createHeaderLabel()

getName

public String getName()
Returns the top field name given in the definition

Returns:
the names of this table joining element
See Also:
ElementNamable.getName()

appendFields

public void appendFields(List<org.kuali.rice.kns.web.ui.Field> fields)
None of the read only fields will be associated with quickfinders, so this method does nothing

See Also:
RenderableElement.appendFields(java.util.List)

populateWithTabIndexIfRequested

public void populateWithTabIndexIfRequested(int reallyHighIndex)
There are no input fields here, so no need to set tab indices

Parameters:
reallyHighIndex - a really high index for elements who should not be tabbed to
See Also:
RenderableElement.populateWithTabIndexIfRequested(int)

getFields

public List<org.kuali.rice.kns.web.ui.Field> getFields()
Returns:
the fields associated with this Multiple read only fields

renderElement

public void renderElement(javax.servlet.jsp.PageContext pageContext,
                          javax.servlet.jsp.tagext.Tag parentTag,
                          AccountingLineRenderingContext renderingContext)
                   throws javax.servlet.jsp.JspException
Description copied from interface: RenderableElement
Renders this element

Parameters:
pageContext - the context to render to
parentTag - the parent tag that is requesting this rendering
renderingContext - the context about the accounting line that this element would end up rendering
Throws:
javax.servlet.jsp.JspException
See Also:
RenderableElement.renderElement(javax.servlet.jsp.PageContext, javax.servlet.jsp.tagext.Tag, org.kuali.kfs.sys.document.web.AccountingLineRenderingContext)

setShortLabelsForFields

protected void setShortLabelsForFields(org.kuali.rice.kns.web.ui.Field field,
                                       org.kuali.rice.kns.datadictionary.BusinessObjectEntry boEntry)
For each field, set the short label, or, failing that, set the label

Parameters:
boEntry - the business object entry for the accounting line

setValueForField

protected void setValueForField(org.kuali.rice.kns.web.ui.Field field,
                                AccountingLine accountingLine)
Sets the value for the field before rendering

Parameters:
field - the field to set the value of
accountingLine - the accounting line the field is associated with, which holds the value

setInquiryUrlForField

protected void setInquiryUrlForField(org.kuali.rice.kns.web.ui.Field field,
                                     AccountingLine accountingLine)
Populates the inquiry url on the field if possible

Parameters:
field - the field to set the inquiry url on
accountingLine - the accounting line holding values for the field

getDataDictionaryService

protected org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
Returns:
the implementation of the DataDictionaryService


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