|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.sys.document.web.FieldTableJoining
org.kuali.kfs.sys.document.web.FieldTableJoiningWithHeader
org.kuali.kfs.sys.document.web.AccountingLineViewField
public class AccountingLineViewField
Represents a field (plus, optionally, a dynamic name field) to be rendered as part of an accounting line.
Field Summary | |
---|---|
static String |
ACCOUNTING_LINE_NAME_PREFIX_PLACE_HOLDER
|
Constructor Summary | |
---|---|
AccountingLineViewField()
|
Method Summary | |
---|---|
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.kns.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 |
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 |
Field Detail |
---|
public static final String ACCOUNTING_LINE_NAME_PREFIX_PLACE_HOLDER
Constructor Detail |
---|
public AccountingLineViewField()
Method Detail |
---|
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.public 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.kfs.sys.document.web.AccountingLineViewRenderableElementField#isHidden()
public boolean isReadOnly()
isReadOnly
in interface ReadOnlyable
org.kuali.kfs.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.kfs.sys.document.web.TableJoining#readOnlyize()
public String getHeaderLabelProperty()
org.kuali.kfs.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 rendering
javax.servlet.jsp.JspException
org.kuali.kfs.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 line
javax.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.kns.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 lineprotected 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.kfs.sys.document.web.TableJoining#performFieldTransformation(org.kuali.kfs.sys.document.service.AccountingLineFieldRenderingTransformation,
org.kuali.kfs.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 accounting
javax.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 line
javax.servlet.jsp.JspException
protected String getDynamicNameLabelDisplayedValue(AccountingLine accountingLine)
accountingLine
- the accounting line to get the value from
public 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.kfs.sys.document.web.HeaderLabel,
org.kuali.kfs.sys.document.web.AccountingLineRenderingContext)
public void appendFields(List<org.kuali.rice.kns.web.ui.Field> fields)
appendFields
in interface RenderableElement
org.kuali.kfs.sys.document.web.RenderableElement#appendFieldNames(java.util.List)
public void populateWithTabIndexIfRequested(int reallyHighIndex)
RenderableElement
populateWithTabIndexIfRequested
in interface RenderableElement
reallyHighIndex
- a really high index for elements who should not be tabbed toorg.kuali.kfs.sys.document.web.RenderableElement#populateWithTabIndexIfRequested(int[], int)
protected boolean fieldInError(List errors)
errors
- the errors on the form
public 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 rendered
protected String escapeAccountingLineName(String propertyName, String accountingLinePrefix)
propertyName
- the name of the property to escape the special string ${accountingLineName} out ofaccountingLinePrefix
- the actual accounting line prefix
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |