public class DefaultAccountingLineGroupImpl extends Object implements AccountingLineGroup
Modifier and Type | Field and Description |
---|---|
protected AccountingDocument |
accountingDocument |
protected int |
arbitrarilyHighIndex |
protected boolean |
canEdit |
protected int |
cellCount |
protected String |
collectionItemPropertyName |
protected String |
collectionPropertyName |
protected List<? extends AccountingLineRenderingContext> |
containers |
protected Map<String,Object> |
displayedErrors |
protected Map<String,Object> |
displayedInfo |
protected Map<String,Object> |
displayedWarnings |
protected List |
errorKeys |
protected AccountingLineGroupDefinition |
groupDefinition |
protected javax.servlet.jsp.tagext.JspFragment |
importLineOverride |
Constructor and Description |
---|
DefaultAccountingLineGroupImpl()
Constructs a DefaultAccountingLineGroupImpl
|
Modifier and Type | Method and Description |
---|---|
AccountingDocument |
getAccountingDocument() |
String |
getCollectionItemPropertyName()
Gets the collectionItemPropertyName attribute.
|
String |
getCollectionPropertyName()
Gets the collectionPropertyName attribute.
|
Map |
getDisplayedErrors()
Gets the displayedErrors attribute.
|
Map |
getDisplayedInfo()
Gets the displayedInfo attribute.
|
Map |
getDisplayedWarnings()
Gets the displayedWarnings attribute.
|
List |
getErrorKeys()
Gets the errorKeys attribute.
|
protected GroupErrorsRenderer |
getErrorRenderer() |
AccountingLineGroupDefinition |
getGroupDefinition()
Gets the groupDefinition attribute.
|
protected int |
getRepresentedColumnNumber(String propertyName)
get the column number of the tabel cell with the given property name in an accounting line table
|
int |
getWidthInCells()
Finds the maximum number of cells in the accounting line table row
|
protected boolean |
hasEnoughAccountingLinesForDelete()
Determines if there are enough accounting lines in this group for delete buttons to be present
|
void |
initialize(AccountingLineGroupDefinition groupDefinition,
AccountingDocument accountingDocument,
List<RenderableAccountingLineContainer> containers,
String collectionPropertyName,
String collectionItemPropertyName,
Map<String,Object> displayedErrors,
Map<String,Object> displayedWarnings,
Map<String,Object> displayedInfo,
boolean canEdit)
Initializes the DefaultAccountingLineGroupImpl
|
protected void |
moveListToMap(List<String> theList,
Map theMap)
Moves all of the members of theList into theMap as a key with the value always being the String "true"
|
protected void |
renderAccountingLineContainers(javax.servlet.jsp.PageContext pageContext,
javax.servlet.jsp.tagext.Tag parentTag)
Renders the accounting line containers
|
protected void |
renderErrors(javax.servlet.jsp.PageContext pageContext,
javax.servlet.jsp.tagext.Tag parentTag)
Renders any errors for the group
|
void |
renderEverything(javax.servlet.jsp.PageContext pageContext,
javax.servlet.jsp.tagext.Tag parentTag)
Renders the whole of this accounting line group
|
protected void |
renderGroupHeader(javax.servlet.jsp.PageContext pageContext,
javax.servlet.jsp.tagext.Tag parentTag)
Renders the group header/import line for the accounting line group.
|
protected void |
renderTotals(javax.servlet.jsp.PageContext pageContext,
javax.servlet.jsp.tagext.Tag parentTag)
Renders all of the totals required by the group total definition
|
void |
setAccountingDocument(AccountingDocument accountingDocument) |
void |
setArbitrarilyHighIndex(int arbitrarilyHighIndex)
Sets the form's arbitrarily high tab index
|
void |
setCellCount(int cellCount)
Sets the cellCount attribute value.
|
void |
setCollectionItemPropertyName(String collectionItemPropertyName)
Sets the collectionItemPropertyName attribute value.
|
void |
setCollectionPropertyName(String collectionPropertyName)
Sets the collectionPropertyName attribute value.
|
void |
setDisplayedErrors(Map displayedErrors)
Sets the displayedErrors attribute value.
|
void |
setErrorKeys(List errorKeys)
Sets the errorKeys attribute value.
|
void |
setGroupDefinition(AccountingLineGroupDefinition groupDefinition)
Sets the groupDefinition attribute value.
|
void |
setImportLineOverride(javax.servlet.jsp.tagext.JspFragment importLineOverride)
Sets the importLineOverride attribute value.
|
void |
updateDeletabilityOfAllLines()
Determines if there is more than one editable line in this group; if so, then it allows deleting
|
protected AccountingLineGroupDefinition groupDefinition
protected javax.servlet.jsp.tagext.JspFragment importLineOverride
protected String collectionPropertyName
protected List<? extends AccountingLineRenderingContext> containers
protected AccountingDocument accountingDocument
protected int cellCount
protected int arbitrarilyHighIndex
protected Map<String,Object> displayedErrors
protected Map<String,Object> displayedWarnings
protected Map<String,Object> displayedInfo
protected boolean canEdit
protected String collectionItemPropertyName
public DefaultAccountingLineGroupImpl()
public void initialize(AccountingLineGroupDefinition groupDefinition, AccountingDocument accountingDocument, List<RenderableAccountingLineContainer> containers, String collectionPropertyName, String collectionItemPropertyName, Map<String,Object> displayedErrors, Map<String,Object> displayedWarnings, Map<String,Object> displayedInfo, boolean canEdit)
groupDefinition
- the data dictionary group definition for this accounting line groupaccountingDocument
- the document which owns or will own the accounting line being renderedcontainers
- the containers within this groupcollectionPropertyName
- the property name of the collection of accounting lines owned by this grouperrors
- a List of errors keys for errors on the pagedisplayedErrors
- a Map of errors that have already been displayedcanEdit
- determines if the page can be edited or notpublic void renderEverything(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag) throws javax.servlet.jsp.JspException
renderEverything
in interface AccountingLineGroup
pageContext
- the page context to render toparentTag
- the AccountingLinesTag that is requesting this renderingjavax.servlet.jsp.JspException
public int getWidthInCells()
getWidthInCells
in interface AccountingLineGroup
rows
- the rows which are being renderedprotected void renderGroupHeader(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag) throws javax.servlet.jsp.JspException
accountingLineGroupDefinition
- the accounting line group definitionrows
- the rows to renderjavax.servlet.jsp.JspException
- thrown if something goes wrong in rendering the headerprotected void renderErrors(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag) throws javax.servlet.jsp.JspException
pageContext
- the page context where the errors will be rendered onparentTag
- the parent tag requesting the renderingjavax.servlet.jsp.JspException
protected void moveListToMap(List<String> theList, Map theMap)
theList
- the List of Strings to be keystheMap
- the Map of keys and valuesprotected GroupErrorsRenderer getErrorRenderer()
protected void renderAccountingLineContainers(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag) throws javax.servlet.jsp.JspException
containers
- the containers to renderjavax.servlet.jsp.JspException
- thrown if rendering goes badlyprotected void renderTotals(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag) throws javax.servlet.jsp.JspException
groupDefinition
- the accounting line view group definitionlines
- the lines that will be rendered - so we can count how many cells we're renderingjavax.servlet.jsp.JspException
- thrown if something goes wrongprotected int getRepresentedColumnNumber(String propertyName)
propertyName
- the given property name that is associated with the columnpublic void setCellCount(int cellCount)
setCellCount
in interface AccountingLineGroup
cellCount
- The cellCount to set.public void setImportLineOverride(javax.servlet.jsp.tagext.JspFragment importLineOverride)
setImportLineOverride
in interface AccountingLineGroup
importLineOverride
- The importLineOverride to set.public void setArbitrarilyHighIndex(int arbitrarilyHighIndex)
setArbitrarilyHighIndex
in interface AccountingLineGroup
arbitrarilyHighIndex
- the index to setpublic Map getDisplayedWarnings()
public Map getDisplayedInfo()
public List getErrorKeys()
getErrorKeys
in interface AccountingLineGroup
public void setErrorKeys(List errorKeys)
setErrorKeys
in interface AccountingLineGroup
errorKeys
- The errorKeys to set.public void updateDeletabilityOfAllLines()
updateDeletabilityOfAllLines
in interface AccountingLineGroup
protected boolean hasEnoughAccountingLinesForDelete()
public String getCollectionItemPropertyName()
getCollectionItemPropertyName
in interface AccountingLineGroup
public AccountingLineGroupDefinition getGroupDefinition()
public void setGroupDefinition(AccountingLineGroupDefinition groupDefinition)
groupDefinition
- The groupDefinition to set.public Map getDisplayedErrors()
public void setDisplayedErrors(Map displayedErrors)
displayedErrors
- The displayedErrors to set.public String getCollectionPropertyName()
public void setCollectionPropertyName(String collectionPropertyName)
collectionPropertyName
- The collectionPropertyName to set.public void setCollectionItemPropertyName(String collectionItemPropertyName)
collectionItemPropertyName
- The collectionItemPropertyName to set.public AccountingDocument getAccountingDocument()
public void setAccountingDocument(AccountingDocument accountingDocument)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.