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 AccountingLineRenderingContextpublic String getAccountingLineProperty()
public List<AccountingLineViewAction> getActionsForLine()
getActionsForLine in interface AccountingLineRenderingContextpublic boolean isNewLine()
isNewLine in interface AccountingLineRenderingContextpublic Integer getCurrentLineCount()
AccountingLineRenderingContextgetCurrentLineCount in interface AccountingLineRenderingContextAccountingLineRenderingContext.getCurrentLineCount()public List<AccountingLineTableRow> getRows()
getRows in interface AccountingLineRenderingContextpublic int getCellCount()
public int getRenderableCellCount()
getRenderableCellCount in interface AccountingLineRenderingContextAccountingLineRenderingContext.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 RenderableElementRenderableElement.isActionBlock()public boolean isEmpty()
isEmpty in interface RenderableElementRenderableElement.isEmpty()public boolean isHidden()
isHidden in interface RenderableElementRenderableElement.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 RenderableElementpageContext - 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.JspExceptionRenderableElement.renderElement(javax.servlet.jsp.PageContext, javax.servlet.jsp.tagext.Tag, org.kuali.ole.sys.document.web.AccountingLineRenderingContext)public String getAccountingLinePropertyPath()
getAccountingLinePropertyPath in interface AccountingLineRenderingContextAccountingLineRenderingContext.getAccountingLinePropertyPath()public void appendFields(List<org.kuali.rice.kns.web.ui.Field> fields)
appendFields in interface RenderableElementorg.kuali.ole.sys.document.web.RenderableElement#appendFieldNames(java.util.List)public List<org.kuali.rice.kns.web.ui.Field> getFieldsForAccountingLine()
public List<String> getFieldNamesForAccountingLine()
AccountingLineRenderingContextgetFieldNamesForAccountingLine in interface AccountingLineRenderingContextKRAD Conversion: Customization of the fields - No use of data dictionarypublic void populateWithTabIndexIfRequested(int reallyHighIndex)
RenderableElementpopulateWithTabIndexIfRequested in interface RenderableElementreallyHighIndex - 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 AccountingLineRenderingContextAccountingLineRenderingContext.getUnconvertedValues()public void populateValuesForFields()
AccountingLineRenderingContextpopulateValuesForFields in interface AccountingLineRenderingContextKRAD Conversion: Customization of populating the field values - Use of data dictionaryprotected 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 AccountingLineRenderingContextAccountingLineRenderingContext.getAccountingDocument()public boolean fieldsCanRenderDynamicLabels()
AccountingLineRenderingContextfieldsCanRenderDynamicLabels in interface AccountingLineRenderingContextAccountingLineRenderingContext.fieldsCanRenderDynamicLabels()public boolean fieldsShouldRenderHelp()
AccountingLineRenderingContextfieldsShouldRenderHelp in interface AccountingLineRenderingContextAccountingLineRenderingContext.fieldsShouldRenderHelp()public String getTabState(String tabKey)
AccountingLineRenderingContextgetTabState in interface AccountingLineRenderingContexttabKey - the tab key to get the state ofAccountingLineRenderingContext.getTabState(java.lang.String)public void incrementTabIndex()
AccountingLineRenderingContextincrementTabIndex in interface AccountingLineRenderingContextAccountingLineRenderingContext.incrementTabIndex()public String getGroupLabel()
getGroupLabel in interface AccountingLineRenderingContextAccountingLineRenderingContext.getGroupLabel()public List getErrors()
getErrors in interface AccountingLineRenderingContextpublic KualiAccountingDocumentFormBase getForm()
getForm in interface AccountingLineRenderingContextAccountingLineRenderingContext.getForm()public String getAccountingLineContainingObjectPropertyName()
getAccountingLineContainingObjectPropertyName in interface AccountingLineRenderingContextAccountingLineRenderingContext.getAccountingLineContainingObjectPropertyName()public boolean isFieldModifyable(String fieldName)
AccountingLineRenderingContextisFieldModifyable in interface AccountingLineRenderingContextfieldName - 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 AccountingLineRenderingContextpublic void setEditableLine(boolean editableLine)
editableLine - The editableLine to set.public boolean allowDelete()
allowDelete in interface AccountingLineRenderingContextAccountingLineRenderingContext.allowDelete()public void makeDeletable()
makeDeletable in interface AccountingLineRenderingContextCopyright © 2004–2015 The Kuali Foundation. All rights reserved.