|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.sys.document.web.RenderableAccountingLineContainer
public class RenderableAccountingLineContainer
A container which holds a single accounting line and the elements which will render it
| Constructor Summary | |
|---|---|
RenderableAccountingLineContainer(KualiAccountingDocumentFormBase form,
AccountingLine accountingLine,
String accountingLineProperty,
List<AccountingLineTableRow> rows,
Integer lineCount,
String groupLabel,
List errors,
AccountingLineAuthorizer accountingLineAuthorizer,
boolean editableLine)
Constructs a RenderableAccountingLineContainer |
|
| Method Summary | |
|---|---|
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()
|
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.kns.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 editable| Method Detail |
|---|
public AccountingLine getAccountingLine()
getAccountingLine in interface AccountingLineRenderingContextpublic String getAccountingLineProperty()
public List<AccountingLineViewAction> getActionsForLine()
getActionsForLine in interface AccountingLineRenderingContextpublic boolean isNewLine()
isNewLine in interface AccountingLineRenderingContextpublic Integer getCurrentLineCount()
AccountingLineRenderingContext
getCurrentLineCount in interface AccountingLineRenderingContextAccountingLineRenderingContext.getCurrentLineCount()public List<AccountingLineTableRow> getRows()
public int getCellCount()
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 rendering
javax.servlet.jsp.JspExceptionRenderableElement.renderElement(javax.servlet.jsp.PageContext, javax.servlet.jsp.tagext.Tag, org.kuali.kfs.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.kfs.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 AccountingLineRenderingContextAccountingLineRenderingContext.getFieldNamesForAccountingLine()public void populateWithTabIndexIfRequested(int reallyHighIndex)
RenderableElement
populateWithTabIndexIfRequested in interface RenderableElementreallyHighIndex - a really high index for elements who should not be tabbed toorg.kuali.kfs.sys.document.web.RenderableElement#populateWithTabIndexIfRequested(int[], int)public Map getUnconvertedValues()
getUnconvertedValues in interface AccountingLineRenderingContextAccountingLineRenderingContext.getUnconvertedValues()public void populateValuesForFields()
AccountingLineRenderingContext
populateValuesForFields in interface AccountingLineRenderingContextAccountingLineRenderingContext.populateValuesForFields()protected void setUnconvertedValueIfNecessary(org.kuali.rice.kns.web.ui.Field field)
field - the field to possibly set an unconverted value on
protected void setShouldShowSecure(org.kuali.rice.kns.web.ui.Field field,
org.kuali.rice.kns.datadictionary.BusinessObjectEntry boDDEntry)
field - the field to possible change the value forboDDEntry - the data dictionary entry for the accounting linepublic AccountingDocument getAccountingDocument()
getAccountingDocument in interface AccountingLineRenderingContextAccountingLineRenderingContext.getAccountingDocument()public boolean fieldsCanRenderDynamicLabels()
AccountingLineRenderingContext
fieldsCanRenderDynamicLabels in interface AccountingLineRenderingContextAccountingLineRenderingContext.fieldsCanRenderDynamicLabels()public boolean fieldsShouldRenderHelp()
AccountingLineRenderingContext
fieldsShouldRenderHelp in interface AccountingLineRenderingContextAccountingLineRenderingContext.fieldsShouldRenderHelp()public String getTabState(String tabKey)
AccountingLineRenderingContext
getTabState in interface AccountingLineRenderingContexttabKey - the tab key to get the state of
AccountingLineRenderingContext.getTabState(java.lang.String)public void incrementTabIndex()
AccountingLineRenderingContext
incrementTabIndex 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)
AccountingLineRenderingContext
isFieldModifyable in interface AccountingLineRenderingContextfieldName - the simple name (that is, the name does not include the collection property) of the field
org.kuali.kfs.sys.document.web.AccountingLineRenderingContext#isFieldModifyable(org.kuali.kfs.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 AccountingLineRenderingContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||