|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.sys.document.web.AccountingLineViewDebitCreditAmountLayoutElement
public class AccountingLineViewDebitCreditAmountLayoutElement
A table joining element which adds two fields to an amount: debit amount and credit amount
| Constructor Summary | |
|---|---|
AccountingLineViewDebitCreditAmountLayoutElement()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AccountingLineViewDebitCreditAmountLayoutElement()
| Method Detail |
|---|
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)
TableJoining
joinRow 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)
TableJoining
joinTable 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 for
protected AccountingLineTableCell createHeaderCellForField(boolean isDebit)
field - the field to create a header cell for
protected String getDebitPropertyName()
protected String getCreditPropertyName()
public void performFieldTransformations(List<AccountingLineFieldRenderingTransformation> fieldTransformations,
AccountingLine accountingLine,
Map unconvertedValues)
TableJoining
performFieldTransformations 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)
TableJoining
readOnlyizeReadOnlyBlocks 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)
TableJoining
removeUnviewableBlocks 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.public 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)
TableJoining
setEditableBlocks in interface TableJoiningTableJoining.setEditableBlocks(java.util.Set)public void setEditable()
ReadOnlyable
setEditable in interface ReadOnlyableReadOnlyable.setEditable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||