org.kuali.kfs.module.purap.document.web
Class PurapAccountingLineViewField

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.AccountingLineViewField
              extended by org.kuali.kfs.module.purap.document.web.PurapAccountingLineViewField
All Implemented Interfaces:
ElementNamable, HeaderLabelPopulating, ReadOnlyable, RenderableElement, TableJoining, TableJoiningWithHeader

public class PurapAccountingLineViewField
extends AccountingLineViewField

Represents a field (plus, optionally, a dynamic name field) to be rendered as part of an accounting line.


Field Summary
 
Fields inherited from class org.kuali.kfs.sys.document.web.AccountingLineViewField
ACCOUNTING_LINE_NAME_PREFIX_PLACE_HOLDER
 
Constructor Summary
PurapAccountingLineViewField()
           
 
Method Summary
protected  String getDynamicNameLabelDisplayedValue(AccountingLine accountingLine)
          Overrides the method in AccountingLineViewField so that we could control when the dynamic name label should be displayed and when it shouldn't be displayed.
protected  boolean isRenderingInquiry(AccountingDocument document, AccountingLine line)
          Overrides the method in AccountingLineViewField so that we could control when the inquiry link should be rendered and when it should be hidden.
 
Methods inherited from class org.kuali.kfs.sys.document.web.AccountingLineViewField
appendFields, createHeaderLabel, createHeaderLabelTableCell, createTableCell, escapeAccountingLineName, fieldInError, getColSpanOverride, getDefinition, getField, getHeaderLabelProperty, getName, getOverrideFields, getPersistenceStructureService, isHidden, isReadOnly, performFieldTransformations, populateFieldForLookupAndInquiry, populateHeaderLabel, populateWithTabIndexIfRequested, prepareFieldRenderer, readOnlyize, renderDynamicNameLabel, renderElement, renderField, renderOverrideFields, setDefinition, setEditable, setField, setOverrideFields, shouldRenderDynamicFeldLabel, transformOverrideFields, updateTableCellWithColSpanOverride
 
Methods inherited from class org.kuali.kfs.sys.document.web.FieldTableJoiningWithHeader
getRequestedRowCount, joinRow, joinTable
 
Methods inherited from class org.kuali.kfs.sys.document.web.FieldTableJoining
isActionBlock, isEmpty, 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.TableJoining
readOnlyizeReadOnlyBlocks, removeAllActionBlocks, removeUnviewableBlocks, setEditableBlocks
 

Constructor Detail

PurapAccountingLineViewField

public PurapAccountingLineViewField()
Method Detail

isRenderingInquiry

protected boolean isRenderingInquiry(AccountingDocument document,
                                     AccountingLine line)
Overrides the method in AccountingLineViewField so that we could control when the inquiry link should be rendered and when it should be hidden.

Overrides:
isRenderingInquiry in class AccountingLineViewField
Parameters:
document - the document which the accounting line is part of or hopefully sometime will be part of
line - the accounting line being rendered
Returns:
true if inquiry links should be rendered, false otherwise
See Also:
AccountingLineViewField.isRenderingInquiry(org.kuali.kfs.sys.document.AccountingDocument, org.kuali.kfs.sys.businessobject.AccountingLine)

getDynamicNameLabelDisplayedValue

protected String getDynamicNameLabelDisplayedValue(AccountingLine accountingLine)
Overrides the method in AccountingLineViewField so that we could control when the dynamic name label should be displayed and when it shouldn't be displayed.

Overrides:
getDynamicNameLabelDisplayedValue in class AccountingLineViewField
Parameters:
accountingLine - the accounting line to get the value from
Returns:
the value to display for the dynamic name label
See Also:
AccountingLineViewField.getDynamicNameLabelDisplayedValue(org.kuali.kfs.sys.businessobject.AccountingLine)


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