public class AccountingLineViewDebitCreditAmountLayoutElement extends Object implements TableJoiningWithHeader, ReadOnlyable
| Constructor and Description |
|---|
AccountingLineViewDebitCreditAmountLayoutElement() |
| Modifier and Type | Method and Description |
|---|---|
protected AccountingLineTableCell |
createCellForField(org.kuali.rice.kns.web.ui.Field field,
AccountingLineViewFieldDefinition definition,
boolean isDebit)
Creates a table cell with a renderable field inside
|
protected AccountingLineTableCell |
createHeaderCellForField(boolean isDebit)
Creates a header cell for the given field
|
HeaderLabel |
createHeaderLabel()
We don't generate headers
|
org.kuali.rice.kns.web.ui.Field |
getCreditAmountField()
Gets the creditAmountField attribute.
|
AccountingLineViewFieldDefinition |
getCreditFieldDefinition()
Gets the creditFieldDefinition attribute.
|
protected String |
getCreditPropertyName() |
org.kuali.rice.kns.web.ui.Field |
getDebitAmountField()
Gets the debitAmountField attribute.
|
AccountingLineViewFieldDefinition |
getDebitFieldDefinition()
Gets the debitFieldDefinition attribute.
|
protected String |
getDebitPropertyName() |
AccountingLineViewDebitCreditAmountFieldDefinition |
getDefinition()
Gets the definition attribute.
|
String |
getName()
This renderable element...it ain't got no single name!
|
int |
getRequestedRowCount()
Request two rows - one for the header, one for the field
|
boolean |
isHidden()
This isn't hidden
|
boolean |
isReadOnly()
Returns whether the debit and the credit amount fields are both read only
|
void |
joinRow(AccountingLineTableRow headerLabelRow,
AccountingLineTableRow row)
Requests that this element join a table row
|
void |
joinTable(List<AccountingLineTableRow> rows)
Requests that this layout element property join a number of rows which will make up a table
|
void |
performFieldTransformations(List<AccountingLineFieldRenderingTransformation> fieldTransformations,
AccountingLine accountingLine,
Map unconvertedValues)
Performs a transformations on any fields this TableJoining layout element knows about
|
void |
readOnlyize()
Read onlyizes both the credit and the debit amount fields
|
void |
readOnlyizeReadOnlyBlocks(Set<String> readOnlyBlocks)
Instructs the element to make any child readOnlyizable blocks named within the given Set to read only
|
void |
removeAllActionBlocks()
Does nothing - we don't have action blocks, like, ever
|
void |
removeUnviewableBlocks(Set<String> unviewableBlocks)
Removes any unviewable blocks within this this table joining element
|
void |
setCreditAmountField(org.kuali.rice.kns.web.ui.Field creditAmountField)
Sets the creditAmountField attribute value.
|
void |
setCreditFieldDefinition(AccountingLineViewFieldDefinition creditFieldDefinition)
Sets the creditFieldDefinition attribute value.
|
void |
setDebitAmountField(org.kuali.rice.kns.web.ui.Field debitAmountField)
Sets the debitAmountField attribute value.
|
void |
setDebitFieldDefinition(AccountingLineViewFieldDefinition debitFieldDefinition)
Sets the debitFieldDefinition attribute value.
|
void |
setDefinition(AccountingLineViewDebitCreditAmountFieldDefinition definition)
Sets the definition attribute value.
|
void |
setEditable()
Sets any renderable element within this table joining block to be editable
|
void |
setEditableBlocks(Set<String> editableBlocks)
Instructs the element to make any child readOnlyizable blocks named within the given Set to read only
|
public AccountingLineViewDebitCreditAmountLayoutElement()
public boolean isReadOnly()
isReadOnly in interface ReadOnlyableReadOnlyable.isReadOnly()public void readOnlyize()
readOnlyize in interface ReadOnlyableReadOnlyable.readOnlyize()public HeaderLabel createHeaderLabel()
createHeaderLabel in interface TableJoiningWithHeaderTableJoiningWithHeader.createHeaderLabel()public boolean isHidden()
isHidden in interface TableJoiningWithHeaderTableJoiningWithHeader.isHidden()public String getName()
getName in interface ElementNamableElementNamable.getName()public int getRequestedRowCount()
getRequestedRowCount in interface TableJoiningTableJoining.getRequestedRowCount()public void joinRow(AccountingLineTableRow headerLabelRow, AccountingLineTableRow row)
TableJoiningjoinRow in interface TableJoiningheaderLabelRow - the header row which can be joinedrow - the row which can be joinedTableJoining.joinRow(org.kuali.kfs.sys.document.web.AccountingLineTableRow, org.kuali.kfs.sys.document.web.AccountingLineTableRow)public void joinTable(List<AccountingLineTableRow> rows)
TableJoiningjoinTable in interface TableJoiningrows - the rows to joinTableJoining.joinTable(java.util.List)protected AccountingLineTableCell createCellForField(org.kuali.rice.kns.web.ui.Field field, AccountingLineViewFieldDefinition definition, boolean isDebit)
field - the field to create a cell forprotected AccountingLineTableCell createHeaderCellForField(boolean isDebit)
field - the field to create a header cell forprotected String getDebitPropertyName()
protected String getCreditPropertyName()
public void performFieldTransformations(List<AccountingLineFieldRenderingTransformation> fieldTransformations, AccountingLine accountingLine, Map unconvertedValues)
TableJoiningperformFieldTransformations in interface TableJoiningaccountingLine - the accounting line which is being rendering during the transformationunconvertedValues - any unconverted values from the formorg.kuali.kfs.sys.document.web.TableJoining#performFieldTransformations(java.util.List, org.kuali.kfs.sys.businessobject.AccountingLine, java.util.Map, java.util.Map)public void readOnlyizeReadOnlyBlocks(Set<String> readOnlyBlocks)
TableJoiningreadOnlyizeReadOnlyBlocks in interface TableJoiningreadOnlyBlocks - the names of blocks to make read onlyTableJoining.readOnlyizeReadOnlyBlocks(java.util.Set)public void removeAllActionBlocks()
removeAllActionBlocks in interface TableJoiningTableJoining.removeAllActionBlocks()public void removeUnviewableBlocks(Set<String> unviewableBlocks)
TableJoiningremoveUnviewableBlocks in interface TableJoiningunviewableBlocks - a Set of the names of blocks that should not be renderedTableJoining.removeUnviewableBlocks(java.util.Set)public org.kuali.rice.kns.web.ui.Field getCreditAmountField()
public void setCreditAmountField(org.kuali.rice.kns.web.ui.Field creditAmountField)
creditAmountField - The creditAmountField to set.
KRAD Conversion: setting up the value of the fields - No use of data dictionarypublic AccountingLineViewFieldDefinition getCreditFieldDefinition()
public void setCreditFieldDefinition(AccountingLineViewFieldDefinition creditFieldDefinition)
creditFieldDefinition - The creditFieldDefinition to set.public org.kuali.rice.kns.web.ui.Field getDebitAmountField()
public void setDebitAmountField(org.kuali.rice.kns.web.ui.Field debitAmountField)
debitAmountField - The debitAmountField to set.public AccountingLineViewFieldDefinition getDebitFieldDefinition()
public void setDebitFieldDefinition(AccountingLineViewFieldDefinition debitFieldDefinition)
debitFieldDefinition - The debitFieldDefinition to set.public AccountingLineViewDebitCreditAmountFieldDefinition getDefinition()
public void setDefinition(AccountingLineViewDebitCreditAmountFieldDefinition definition)
definition - The definition to set.public void setEditableBlocks(Set<String> editableBlocks)
TableJoiningsetEditableBlocks in interface TableJoiningTableJoining.setEditableBlocks(java.util.Set)public void setEditable()
ReadOnlyablesetEditable in interface ReadOnlyableReadOnlyable.setEditable()Copyright © 2004–2015 The Kuali Foundation. All rights reserved.