|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.sys.document.web.DefaultAccountingLineGroupImpl
public class DefaultAccountingLineGroupImpl
This represents an accounting line group in renderable state
Field Summary | |
---|---|
protected AccountingDocument |
accountingDocument
|
protected int |
arbitrarilyHighIndex
|
protected boolean |
canEdit
|
protected int |
cellCount
|
protected String |
collectionItemPropertyName
|
protected String |
collectionPropertyName
|
protected List<RenderableAccountingLineContainer> |
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 Summary | |
---|---|
DefaultAccountingLineGroupImpl()
Constructs a DefaultAccountingLineGroupImpl |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AccountingLineGroupDefinition groupDefinition
protected javax.servlet.jsp.tagext.JspFragment importLineOverride
protected String collectionPropertyName
protected List<RenderableAccountingLineContainer> 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
protected List errorKeys
Constructor Detail |
---|
public DefaultAccountingLineGroupImpl()
Method Detail |
---|
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 rendering
javax.servlet.jsp.JspException
public int getWidthInCells()
getWidthInCells
in interface AccountingLineGroup
rows
- the rows which are being rendered
protected 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 render
javax.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 rendering
javax.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 render
javax.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 rendering
javax.servlet.jsp.JspException
- thrown if something goes wrongprotected int getRepresentedColumnNumber(String propertyName)
propertyName
- the given property name that is associated with the column
public 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |