public class AccountingLineViewCurrentBaseAmount extends Object implements TableJoiningWithHeader, ReadOnlyable
Constructor and Description |
---|
AccountingLineViewCurrentBaseAmount() |
Modifier and Type | Method and Description |
---|---|
protected AccountingLineTableCell |
createCellForField(org.kuali.rice.kns.web.ui.Field field,
AccountingLineViewFieldDefinition definition)
Creates a table cell with a renderable field inside
|
protected AccountingLineTableCell |
createHeaderCellForField(org.kuali.rice.kns.web.ui.Field field)
Creates a header cell for the given field
|
HeaderLabel |
createHeaderLabel()
Not used; returns null.
|
org.kuali.rice.kns.web.ui.Field |
getBaseAmountField()
Gets the baseAmountField attribute.
|
AccountingLineViewFieldDefinition |
getBaseAmountFieldDefinition()
Gets the baseAmountFieldDefinition attribute.
|
org.kuali.rice.kns.web.ui.Field |
getCurrentAmountField()
Gets the currentAmountField attribute.
|
AccountingLineViewFieldDefinition |
getCurrentAmountFieldDefinition()
Gets the currentAmountFieldDefinition attribute.
|
AccountingLineViewCurrentBaseAmountFieldDefinition |
getDefinition()
Gets the definition attribute.
|
String |
getName()
Returns null; we don't want to participate in normal naming schemes
|
int |
getRequestedRowCount()
Always returns 2 - one line for the header, one line for the fields
|
protected boolean |
isFieldUnviewable(org.kuali.rice.kns.web.ui.Field field,
Set<String> unviewableBlocks)
Determines if the given field is among the blocks which should not be viewable
|
boolean |
isHidden()
This field is never hidden
|
boolean |
isReadOnly()
Determines whether is element is entirely read only or not
|
void |
joinRow(AccountingLineTableRow headerLabelRow,
AccountingLineTableRow row)
Adds the header cell to the first row, and the regular cell to the second row
|
void |
joinTable(List<AccountingLineTableRow> rows)
Adds the header cell to the first row and adds to the second row a cell that spans all remaining rows
|
void |
performFieldTransformations(List<AccountingLineFieldRenderingTransformation> fieldTransformations,
AccountingLine accountingLine,
Map unconvertedValues)
Performs a transformations on any fields this TableJoining layout element knows about
|
void |
readOnlyize()
Sets any renderable element within this table joining block to be read only
|
protected void |
readOnlyizeField(org.kuali.rice.kns.web.ui.Field field,
Set<String> readOnlyBlocks)
Checks if the given field is named as a readOnlyBlock; if so, makes it read only
|
void |
readOnlyizeReadOnlyBlocks(Set<String> readOnlyBlocks)
Checks if either the current amount field or base amount field need to be set to read only
|
void |
removeAllActionBlocks()
Does nothing - we don't have action blocks, like, ever
|
void |
removeUnviewableBlocks(Set<String> unviewableBlocks)
Checks to see if either the current amount or the base amount are unviewable; if so, sets them to null
|
void |
setBaseAmountField(org.kuali.rice.kns.web.ui.Field baseAmountField)
Sets the baseAmountField attribute value.
|
void |
setBaseAmountFieldDefinition(AccountingLineViewFieldDefinition baseAmountFieldDefinition)
Sets the baseAmountFieldDefinition attribute value.
|
void |
setCurrentAmountField(org.kuali.rice.kns.web.ui.Field currentAmountField)
Sets the currentAmountField attribute value.
|
void |
setCurrentAmountFieldDefinition(AccountingLineViewFieldDefinition currentAmountFieldDefinition)
Sets the currentAmountFieldDefinition attribute value.
|
void |
setDefinition(AccountingLineViewCurrentBaseAmountFieldDefinition 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
|
protected void |
setEditableField(org.kuali.rice.kns.web.ui.Field field,
Set<String> editableBlocks)
Checks if the given field is named as an editableBlocks; if so, makes it editable
|
public AccountingLineViewCurrentBaseAmount()
public String getName()
getName
in interface ElementNamable
ElementNamable.getName()
public void readOnlyizeReadOnlyBlocks(Set<String> readOnlyBlocks)
readOnlyizeReadOnlyBlocks
in interface TableJoining
readOnlyBlocks
- the names of blocks to make read onlyFieldTableJoining.readOnlyizeReadOnlyBlocks(java.util.Set)
public boolean isReadOnly()
ReadOnlyable
isReadOnly
in interface ReadOnlyable
ReadOnlyable.isReadOnly()
public void readOnlyize()
ReadOnlyable
readOnlyize
in interface ReadOnlyable
ReadOnlyable.readOnlyize()
protected void readOnlyizeField(org.kuali.rice.kns.web.ui.Field field, Set<String> readOnlyBlocks)
field
- the field to checkreadOnlyBlocks
- the names of all read only blocks
KRAD Conversion: Customization of the fields by setting them to read only - No use of data dictionarypublic int getRequestedRowCount()
getRequestedRowCount
in interface TableJoining
TableJoining.getRequestedRowCount()
public void joinRow(AccountingLineTableRow headerLabelRow, AccountingLineTableRow row)
joinRow
in interface TableJoining
headerLabelRow
- the header row which can be joinedrow
- the row which can be joinedTableJoining.joinRow(org.kuali.ole.sys.document.web.AccountingLineTableRow, org.kuali.ole.sys.document.web.AccountingLineTableRow)
public void joinTable(List<AccountingLineTableRow> rows)
joinTable
in interface TableJoining
rows
- the rows to joinTableJoining.joinTable(java.util.List)
public void removeAllActionBlocks()
removeAllActionBlocks
in interface TableJoining
TableJoining.removeAllActionBlocks()
public void removeUnviewableBlocks(Set<String> unviewableBlocks)
removeUnviewableBlocks
in interface TableJoining
unviewableBlocks
- a Set of the names of blocks that should not be renderedFieldTableJoining.removeUnviewableBlocks(java.util.Set)
protected boolean isFieldUnviewable(org.kuali.rice.kns.web.ui.Field field, Set<String> unviewableBlocks)
field
- the field to check for unviewabilityunviewableBlocks
- the names of all unviewable blocksprotected AccountingLineTableCell createCellForField(org.kuali.rice.kns.web.ui.Field field, AccountingLineViewFieldDefinition definition)
field
- the field to create a cell forprotected AccountingLineTableCell createHeaderCellForField(org.kuali.rice.kns.web.ui.Field field)
field
- the field to create a header cell forpublic void performFieldTransformations(List<AccountingLineFieldRenderingTransformation> fieldTransformations, AccountingLine accountingLine, Map unconvertedValues)
TableJoining
performFieldTransformations
in interface TableJoining
accountingLine
- the accounting line which is being rendering during the transformationunconvertedValues
- any unconverted values from the formorg.kuali.ole.sys.document.web.FieldTableJoining#performFieldTransformations(java.util.List, org.kuali.ole.sys.businessobject.AccountingLine, java.util.Map, java.util.Map)
public HeaderLabel createHeaderLabel()
createHeaderLabel
in interface TableJoiningWithHeader
TableJoiningWithHeader.createHeaderLabel()
public boolean isHidden()
isHidden
in interface TableJoiningWithHeader
TableJoiningWithHeader.isHidden()
public org.kuali.rice.kns.web.ui.Field getBaseAmountField()
public void setBaseAmountField(org.kuali.rice.kns.web.ui.Field baseAmountField)
baseAmountField
- The baseAmountField to set.
KRAD Conversion: Setting up field's amountpublic org.kuali.rice.kns.web.ui.Field getCurrentAmountField()
public void setCurrentAmountField(org.kuali.rice.kns.web.ui.Field currentAmountField)
currentAmountField
- The currentAmountField to set.public AccountingLineViewCurrentBaseAmountFieldDefinition getDefinition()
public void setDefinition(AccountingLineViewCurrentBaseAmountFieldDefinition definition)
definition
- The definition to set.public AccountingLineViewFieldDefinition getBaseAmountFieldDefinition()
public void setBaseAmountFieldDefinition(AccountingLineViewFieldDefinition baseAmountFieldDefinition)
baseAmountFieldDefinition
- The baseAmountFieldDefinition to set.public AccountingLineViewFieldDefinition getCurrentAmountFieldDefinition()
public void setCurrentAmountFieldDefinition(AccountingLineViewFieldDefinition currentAmountFieldDefinition)
currentAmountFieldDefinition
- The currentAmountFieldDefinition to set.public void setEditableBlocks(Set<String> editableBlocks)
TableJoining
setEditableBlocks
in interface TableJoining
TableJoining.setEditableBlocks(java.util.Set)
public void setEditable()
ReadOnlyable
setEditable
in interface ReadOnlyable
ReadOnlyable.setEditable()
protected void setEditableField(org.kuali.rice.kns.web.ui.Field field, Set<String> editableBlocks)
field
- the field to checkeditableBlocks
- the names of all editable blocks
KRAD Conversion: Customization of the fields - No use of data dictionaryCopyright © 2004–2015 The Kuali Foundation. All rights reserved.