public class RenderableAccountingLineContainer extends Object implements AccountingLineRenderingContext
Constructor and Description |
---|
RenderableAccountingLineContainer(KualiAccountingDocumentFormBase form,
AccountingLine accountingLine,
String accountingLineProperty,
List<AccountingLineTableRow> rows,
Integer lineCount,
String groupLabel,
List errors,
AccountingLineAuthorizer accountingLineAuthorizer,
boolean editableLine)
Constructs a RenderableAccountingLineContainer
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowDelete()
Determines whether the line within this rendering context can be deleted.
|
void |
appendFields(List<org.kuali.rice.kns.web.ui.Field> fields)
Appends all fields from rows that this contains
|
boolean |
fieldsCanRenderDynamicLabels()
Tells callers if dynamic field labels should even be rendered
|
boolean |
fieldsShouldRenderHelp()
Tells callers if fields should render help or not
|
AccountingDocument |
getAccountingDocument() |
AccountingLine |
getAccountingLine()
Gets the accountingLine attribute.
|
String |
getAccountingLineContainingObjectPropertyName() |
String |
getAccountingLineProperty()
Gets the accountingLineProperty attribute.
|
String |
getAccountingLinePropertyPath() |
List<AccountingLineViewAction> |
getActionsForLine()
Gets the actions attribute.
|
int |
getCellCount() |
Integer |
getCurrentLineCount()
If this is a new line, returns null; if it is a line in a collection, returns the line number within that collection
|
List |
getErrors()
Gets the errors attribute.
|
List<String> |
getFieldNamesForAccountingLine()
Returns all the field names for the given accounting line, prefixed by the accounting line property path
|
List<org.kuali.rice.kns.web.ui.Field> |
getFieldsForAccountingLine()
Returns all of the field names within the accounting line to render
|
KualiAccountingDocumentFormBase |
getForm() |
String |
getGroupLabel() |
int |
getRenderableCellCount()
Determines how many cells this container will say it wants to render
|
List<AccountingLineTableRow> |
getRows()
Gets the rows attribute.
|
String |
getTabState(String tabKey)
Returns the tab state for the given tab key on the current form
|
Map |
getUnconvertedValues()
Returns the unconvertedValues for the current form
|
void |
incrementTabIndex()
Increments the tab index on the form this rendering is associated with
|
boolean |
isActionBlock()
While holding an action block, this is not an action block
|
boolean |
isEditableLine()
Gets the editableLine attribute.
|
boolean |
isEmpty()
This is never empty
|
boolean |
isFieldModifyable(String fieldName)
Determines whether a field is modifyable or not
|
boolean |
isHidden()
This is not hidden
|
boolean |
isNewLine()
Gets the newLine attribute.
|
void |
makeDeletable()
Makes the line within this accounting line context deletable
|
protected void |
padOutRow(int cellCount,
AccountingLineTableRow row)
Adds empty cells to a table row
|
void |
populateValuesForFields()
Forces the population of values for all fields used to render the accounting line
|
void |
populateWithTabIndexIfRequested(int reallyHighIndex)
Allows the arbitrarily high tab index to be set for controls
|
void |
renderElement(javax.servlet.jsp.PageContext pageContext,
javax.servlet.jsp.tagext.Tag parentTag,
AccountingLineRenderingContext renderingContext)
Renders all the rows
|
void |
setEditableLine(boolean editableLine)
Sets the editableLine attribute value.
|
protected void |
setShouldShowSecure(org.kuali.rice.kns.web.ui.Field field,
org.kuali.rice.krad.datadictionary.BusinessObjectEntry boDDEntry)
Sets the masked value equal to the value if the current user can see the unmasked value for a secure field
|
protected void |
setUnconvertedValueIfNecessary(org.kuali.rice.kns.web.ui.Field field)
Sees if the given field has an unconverted value living in the unconverted value map and if so,
changes the value to that
|
public RenderableAccountingLineContainer(KualiAccountingDocumentFormBase form, AccountingLine accountingLine, String accountingLineProperty, List<AccountingLineTableRow> rows, Integer lineCount, String groupLabel, List errors, AccountingLineAuthorizer accountingLineAuthorizer, boolean editableLine)
form
- the form being renderedaccountingLine
- the accounting line this container will renderaccountingLineProperty
- the property to that accounting linerows
- the rows to rendernewLine
- whether this is a new accounting line or notgroupLabel
- the label for the group this accounting line is being rendered part oferrors
- the set of errors currently on the documentaccountingLineAuthorizer
- the accounting line authorizer for the documenteditableLine
- whether this line, as a whole _line_ is editablepublic AccountingLine getAccountingLine()
getAccountingLine
in interface AccountingLineRenderingContext
public String getAccountingLineProperty()
public List<AccountingLineViewAction> getActionsForLine()
getActionsForLine
in interface AccountingLineRenderingContext
public boolean isNewLine()
isNewLine
in interface AccountingLineRenderingContext
public Integer getCurrentLineCount()
AccountingLineRenderingContext
getCurrentLineCount
in interface AccountingLineRenderingContext
AccountingLineRenderingContext.getCurrentLineCount()
public List<AccountingLineTableRow> getRows()
getRows
in interface AccountingLineRenderingContext
public int getCellCount()
public int getRenderableCellCount()
getRenderableCellCount
in interface AccountingLineRenderingContext
AccountingLineRenderingContext.getRenderableCellCount()
protected void padOutRow(int cellCount, AccountingLineTableRow row)
cellCount
- the number of cells we should be renderingrow
- the row to pad outpublic boolean isActionBlock()
isActionBlock
in interface RenderableElement
RenderableElement.isActionBlock()
public boolean isEmpty()
isEmpty
in interface RenderableElement
RenderableElement.isEmpty()
public boolean isHidden()
isHidden
in interface RenderableElement
RenderableElement.isHidden()
public void renderElement(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag, AccountingLineRenderingContext renderingContext) throws javax.servlet.jsp.JspException
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
RenderableElement.renderElement(javax.servlet.jsp.PageContext, javax.servlet.jsp.tagext.Tag, org.kuali.ole.sys.document.web.AccountingLineRenderingContext)
public String getAccountingLinePropertyPath()
getAccountingLinePropertyPath
in interface AccountingLineRenderingContext
AccountingLineRenderingContext.getAccountingLinePropertyPath()
public void appendFields(List<org.kuali.rice.kns.web.ui.Field> fields)
appendFields
in interface RenderableElement
org.kuali.ole.sys.document.web.RenderableElement#appendFieldNames(java.util.List)
public List<org.kuali.rice.kns.web.ui.Field> getFieldsForAccountingLine()
public List<String> getFieldNamesForAccountingLine()
AccountingLineRenderingContext
getFieldNamesForAccountingLine
in interface AccountingLineRenderingContext
KRAD Conversion: Customization of 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)
public Map getUnconvertedValues()
getUnconvertedValues
in interface AccountingLineRenderingContext
AccountingLineRenderingContext.getUnconvertedValues()
public void populateValuesForFields()
AccountingLineRenderingContext
populateValuesForFields
in interface AccountingLineRenderingContext
KRAD Conversion: Customization of populating the field values - Use of data dictionary
protected void setUnconvertedValueIfNecessary(org.kuali.rice.kns.web.ui.Field field)
field
- the field to possibly set an unconverted value on
KRAD Conversion: Customization of the fields - No use of data dictionaryprotected void setShouldShowSecure(org.kuali.rice.kns.web.ui.Field field, org.kuali.rice.krad.datadictionary.BusinessObjectEntry boDDEntry)
field
- the field to possible change the value forboDDEntry
- the data dictionary entry for the accounting line
KRAD Conversion: Customization of the fields - No use of data dictionarypublic AccountingDocument getAccountingDocument()
getAccountingDocument
in interface AccountingLineRenderingContext
AccountingLineRenderingContext.getAccountingDocument()
public boolean fieldsCanRenderDynamicLabels()
AccountingLineRenderingContext
fieldsCanRenderDynamicLabels
in interface AccountingLineRenderingContext
AccountingLineRenderingContext.fieldsCanRenderDynamicLabels()
public boolean fieldsShouldRenderHelp()
AccountingLineRenderingContext
fieldsShouldRenderHelp
in interface AccountingLineRenderingContext
AccountingLineRenderingContext.fieldsShouldRenderHelp()
public String getTabState(String tabKey)
AccountingLineRenderingContext
getTabState
in interface AccountingLineRenderingContext
tabKey
- the tab key to get the state ofAccountingLineRenderingContext.getTabState(java.lang.String)
public void incrementTabIndex()
AccountingLineRenderingContext
incrementTabIndex
in interface AccountingLineRenderingContext
AccountingLineRenderingContext.incrementTabIndex()
public String getGroupLabel()
getGroupLabel
in interface AccountingLineRenderingContext
AccountingLineRenderingContext.getGroupLabel()
public List getErrors()
getErrors
in interface AccountingLineRenderingContext
public KualiAccountingDocumentFormBase getForm()
getForm
in interface AccountingLineRenderingContext
AccountingLineRenderingContext.getForm()
public String getAccountingLineContainingObjectPropertyName()
getAccountingLineContainingObjectPropertyName
in interface AccountingLineRenderingContext
AccountingLineRenderingContext.getAccountingLineContainingObjectPropertyName()
public boolean isFieldModifyable(String fieldName)
AccountingLineRenderingContext
isFieldModifyable
in interface AccountingLineRenderingContext
fieldName
- the simple name (that is, the name does not include the collection property) of the fieldorg.kuali.ole.sys.document.web.AccountingLineRenderingContext#isFieldModifyable(org.kuali.ole.sys.document.web.AccountingLineViewField)
public boolean isEditableLine()
isEditableLine
in interface AccountingLineRenderingContext
public void setEditableLine(boolean editableLine)
editableLine
- The editableLine to set.public boolean allowDelete()
allowDelete
in interface AccountingLineRenderingContext
AccountingLineRenderingContext.allowDelete()
public void makeDeletable()
makeDeletable
in interface AccountingLineRenderingContext
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.