public class AccountingLineViewField extends FieldTableJoiningWithHeader implements HeaderLabelPopulating, ReadOnlyable
Modifier and Type | Field and Description |
---|---|
static String |
ACCOUNTING_LINE_NAME_PREFIX_PLACE_HOLDER |
Constructor and Description |
---|
AccountingLineViewField() |
Modifier and Type | Method and Description |
---|---|
void |
appendFields(List<org.kuali.rice.kns.web.ui.Field> fields)
Adds the wrapped field to the list; adds any override fields this field encapsulates as well
|
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 AccountingLineTableCell |
createHeaderLabelTableCell()
Overridden to allow for colspan override
|
protected AccountingLineTableCell |
createTableCell()
Overridden to allow for colspan override
|
protected String |
escapeAccountingLineName(String propertyName,
String accountingLinePrefix)
Escapes the String ${accountingLineName} within a field and replaces it with the actual prefix of an accounting line
|
protected boolean |
fieldInError(List errors)
Determines if this field is among the fields that are in error
|
int |
getColSpanOverride() |
AccountingLineViewFieldDefinition |
getDefinition()
Gets the definition attribute.
|
protected String |
getDynamicNameLabelDisplayedValue(AccountingLine accountingLine)
Gets the value from the accounting line to display as the field value
|
org.kuali.rice.kns.web.ui.Field |
getField()
Gets the field attribute.
|
String |
getHeaderLabelProperty() |
String |
getName()
Returns the name(s) of this table joining element; some table joining elements are compound
|
List<AccountingLineViewOverrideField> |
getOverrideFields()
Gets the overrideFields attribute.
|
protected org.kuali.rice.krad.service.PersistenceStructureService |
getPersistenceStructureService()
Lazily retrieves the persistence structure service
|
boolean |
isHidden()
Checks the field to see if the field itself is hidden
|
boolean |
isReadOnly()
Asks the wrapped field if it is read only (dynamic fields are, of course, always read only and therefore don't count in this
determination)
|
protected boolean |
isRenderingInquiry(AccountingDocument document,
AccountingLine line)
Determines whether to render the inquiry for this field
|
void |
performFieldTransformations(List<AccountingLineFieldRenderingTransformation> fieldTransformations,
AccountingLine accountingLine,
Map unconvertedValues)
Performs a transformations on any fields this TableJoining layout element knows about
|
protected void |
populateFieldForLookupAndInquiry(AccountingDocument accountingDocument,
AccountingLine accountingLine,
List<String> fieldNames,
String accountingLinePrefix)
Updates the field so that it can have a quickfinder and inquiry link if need be
|
void |
populateHeaderLabel(HeaderLabel headerLabel,
AccountingLineRenderingContext renderingContext)
Asks that the HeaderLabelPopulating implementor populate the header label
|
void |
populateWithTabIndexIfRequested(int reallyHighIndex)
Allows the arbitrarily high tab index to be set for controls
|
protected void |
prepareFieldRenderer(FieldRenderer fieldRenderer,
org.kuali.rice.kns.web.ui.Field field,
AccountingDocument document,
AccountingLine accountingLine,
String accountingLineProperty,
List<String> fieldNames)
Does some initial set up on the field renderer - sets the field and the business object being rendered
|
void |
readOnlyize()
Sets any renderable element within this table joining block to be read only
|
protected void |
renderDynamicNameLabel(javax.servlet.jsp.PageContext pageContext,
javax.servlet.jsp.tagext.Tag parentTag,
AccountingLineRenderingContext renderingContext)
Renders a dynamic field label
|
void |
renderElement(javax.servlet.jsp.PageContext pageContext,
javax.servlet.jsp.tagext.Tag parentTag,
AccountingLineRenderingContext renderingContext)
Renders this element
|
protected void |
renderField(javax.servlet.jsp.PageContext pageContext,
javax.servlet.jsp.tagext.Tag parentTag,
AccountingLineRenderingContext renderingContext)
Renders the field portion of this tag
|
void |
renderOverrideFields(javax.servlet.jsp.PageContext pageContext,
javax.servlet.jsp.tagext.Tag parentTag,
AccountingLineRenderingContext renderingContext)
Renders the override fields for the line
|
void |
setDefinition(AccountingLineViewFieldDefinition definition)
Sets the definition attribute value.
|
void |
setEditable()
Sets any renderable element within this table joining block to be editable
|
void |
setField(org.kuali.rice.kns.web.ui.Field field)
Sets the field attribute value.
|
void |
setOverrideFields(List<AccountingLineViewOverrideField> overrideFields)
Sets the overrideFields attribute value.
|
protected boolean |
shouldRenderDynamicFeldLabel()
Determines if a dynamic field label should be rendered for the given field
|
protected void |
transformOverrideFields(AccountingLineFieldRenderingTransformation fieldTransformation,
AccountingLine accountingLine,
Map unconvertedValues)
Runs a field transformation against all the overrides encapsulated within this field
|
protected void |
updateTableCellWithColSpanOverride(AccountingLineTableCell cell)
If the field definition had an override col span greater than 1 and it doesn't seem as if the given cell had its colspan
lengthened already, this method will increase the colspan of the table cell to whatever is listed
|
getRequestedRowCount, joinRow, joinTable
isActionBlock, isEmpty, readOnlyizeReadOnlyBlocks, removeAllActionBlocks, removeUnviewableBlocks, setEditableBlocks
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readOnlyizeReadOnlyBlocks, removeAllActionBlocks, removeUnviewableBlocks, setEditableBlocks
public static final String ACCOUNTING_LINE_NAME_PREFIX_PLACE_HOLDER
public AccountingLineViewField()
public AccountingLineViewFieldDefinition getDefinition()
public void setDefinition(AccountingLineViewFieldDefinition definition)
definition
- The definition to set.public org.kuali.rice.kns.web.ui.Field getField()
public void setField(org.kuali.rice.kns.web.ui.Field field)
field
- The field to set.
KRAD Conversion: sets the fields - No use of data dictionarypublic List<AccountingLineViewOverrideField> getOverrideFields()
public void setOverrideFields(List<AccountingLineViewOverrideField> overrideFields)
overrideFields
- The overrideFields to set.public boolean isHidden()
isHidden
in interface RenderableElement
isHidden
in interface TableJoiningWithHeader
isHidden
in class FieldTableJoining
org.kuali.ole.sys.document.web.AccountingLineViewRenderableElementField#isHidden()
public boolean isReadOnly()
isReadOnly
in interface ReadOnlyable
org.kuali.ole.sys.document.web.AccountingLineViewRenderableElementField#isReadOnly()
public String getName()
ElementNamable
getName
in interface ElementNamable
ElementNamable.getName()
public void readOnlyize()
ReadOnlyable
readOnlyize
in interface ReadOnlyable
org.kuali.ole.sys.document.web.TableJoining#readOnlyize()
public String getHeaderLabelProperty()
org.kuali.ole.sys.document.web.TableJoiningWithHeader#getHeaderLabelProperty()
public void renderElement(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag, AccountingLineRenderingContext renderingContext) throws javax.servlet.jsp.JspException
RenderableElement
renderElement
in interface RenderableElement
pageContext
- the context to render toparentTag
- the parent tag that is requesting this renderingrenderingContext
- the context about the accounting line that this element would end up renderingjavax.servlet.jsp.JspException
org.kuali.ole.sys.document.web.RenderableElement#renderElement(javax.servlet.jsp.PageContext,
javax.servlet.jsp.tagext.Tag)
protected void renderField(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag, AccountingLineRenderingContext renderingContext) throws javax.servlet.jsp.JspException
pageContext
- the page context to render toparentTag
- the tag requesting renderingrenderingContext
- the rendering context of the accounting linejavax.servlet.jsp.JspException
- thrown if something goes wrongprotected void populateFieldForLookupAndInquiry(AccountingDocument accountingDocument, AccountingLine accountingLine, List<String> fieldNames, String accountingLinePrefix)
accountingDocument
- the accounting document the accounting line the field will render part of is on or will at some
point be onaccountingLine
- the accounting line that is being renderedfieldNames
- the list of all fields being displayed on this accounting lineaccountingLinePrefix
- the prefix of all field names in the accounting lineprotected org.kuali.rice.krad.service.PersistenceStructureService getPersistenceStructureService()
protected void prepareFieldRenderer(FieldRenderer fieldRenderer, org.kuali.rice.kns.web.ui.Field field, AccountingDocument document, AccountingLine accountingLine, String accountingLineProperty, List<String> fieldNames)
fieldRenderer
- the field renderer to prepareaccountingLine
- the accounting line being renderedaccountingLineProperty
- the property to get the accounting line from the formfieldNames
- the names of all the fields that will be rendered as part of this accounting line
KRAD Conversion: Customization of the fields - No use of data dictionaryprotected boolean shouldRenderDynamicFeldLabel()
public void performFieldTransformations(List<AccountingLineFieldRenderingTransformation> fieldTransformations, AccountingLine accountingLine, Map unconvertedValues)
TableJoining
performFieldTransformations
in interface TableJoining
performFieldTransformations
in class FieldTableJoining
accountingLine
- the accounting line which is being rendering during the transformationunconvertedValues
- any unconverted values from the formorg.kuali.ole.sys.document.web.TableJoining#performFieldTransformation(org.kuali.ole.sys.document.service.AccountingLineFieldRenderingTransformation,
org.kuali.ole.sys.businessobject.AccountingLine, java.util.Map, java.util.Map)
protected void transformOverrideFields(AccountingLineFieldRenderingTransformation fieldTransformation, AccountingLine accountingLine, Map unconvertedValues)
fieldTransformation
- the field transformation which will utterly change our fieldsaccountingLine
- the accounting line being renderededitModes
- the current document edit modesunconvertedValues
- a Map of unconvertedValuespublic void renderOverrideFields(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag, AccountingLineRenderingContext renderingContext) throws javax.servlet.jsp.JspException
pageContext
- the page context to render toparentTag
- the tag requesting all this renderingaccountingLine
- the accounting line we're renderingaccountingLinePropertyPath
- the path to get to that accountingjavax.servlet.jsp.JspException
- thrown if rendering failsprotected void renderDynamicNameLabel(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag, AccountingLineRenderingContext renderingContext) throws javax.servlet.jsp.JspException
pageContext
- the page context to render toparentTag
- the parent tag requesting this renderingaccountingLine
- the line which owns the field being renderedaccountingLinePropertyPath
- the path from the form to the accounting linejavax.servlet.jsp.JspException
protected String getDynamicNameLabelDisplayedValue(AccountingLine accountingLine)
accountingLine
- the accounting line to get the value frompublic HeaderLabel createHeaderLabel()
TableJoiningWithHeader
createHeaderLabel
in interface TableJoiningWithHeader
TableJoiningWithHeader.createHeaderLabel()
protected void updateTableCellWithColSpanOverride(AccountingLineTableCell cell)
cell
- the cell to possibly lengthenprotected AccountingLineTableCell createHeaderLabelTableCell()
createHeaderLabelTableCell
in class FieldTableJoiningWithHeader
FieldTableJoiningWithHeader.createHeaderLabelTableCell()
protected AccountingLineTableCell createTableCell()
createTableCell
in class FieldTableJoining
FieldTableJoining.createTableCell()
public int getColSpanOverride()
public void populateHeaderLabel(HeaderLabel headerLabel, AccountingLineRenderingContext renderingContext)
HeaderLabelPopulating
populateHeaderLabel
in interface HeaderLabelPopulating
headerLabel
- the header label to populaterenderingContext
- the rendering context the label will be populated inHeaderLabelPopulating.populateHeaderLabel(org.kuali.ole.sys.document.web.HeaderLabel,
org.kuali.ole.sys.document.web.AccountingLineRenderingContext)
public void appendFields(List<org.kuali.rice.kns.web.ui.Field> fields)
appendFields
in interface RenderableElement
KRAD Conversion: Customization of adding the fields - No use of data dictionary
public void populateWithTabIndexIfRequested(int reallyHighIndex)
RenderableElement
populateWithTabIndexIfRequested
in interface RenderableElement
reallyHighIndex
- a really high index for elements who should not be tabbed toorg.kuali.ole.sys.document.web.RenderableElement#populateWithTabIndexIfRequested(int[], int)
protected boolean fieldInError(List errors)
errors
- the errors on the formpublic void setEditable()
ReadOnlyable
setEditable
in interface ReadOnlyable
ReadOnlyable.setEditable()
protected boolean isRenderingInquiry(AccountingDocument document, AccountingLine line)
document
- the document which the accounting line is part of or hopefully sometime will be part ofline
- the accounting line being renderedprotected String escapeAccountingLineName(String propertyName, String accountingLinePrefix)
propertyName
- the name of the property to escape the special string ${accountingLineName} out ofaccountingLinePrefix
- the actual accounting line prefixCopyright © 2004–2015 The Kuali Foundation. All rights reserved.