|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.sys.document.web.AccountingLineViewColumns
public class AccountingLineViewColumns
A layout element that renders elements
| Constructor Summary | |
|---|---|
AccountingLineViewColumns(AccountingLineViewColumnsDefinition definition,
List<AccountingLineViewField> fields)
Constructs a AccountingLineViewColumns |
|
| Method Summary | |
|---|---|
protected AccountingLineTableCell |
createCellForField(AccountingLineViewField field)
Creates the "field" cell for the given field |
protected AccountingLineTableCell |
createHeaderCellForField(AccountingLineViewField field)
Creates a header cell for for the given field |
protected AccountingLineTableCell |
createPaddingCell()
Creates an empty cell to pad out the place typically held for a cell |
protected List<AccountingLineTableRow> |
createRowsForFields()
Creates rows for the inner tables for each field inside this columsn definition |
int |
getDisplayingFieldWidth()
Always returns 1; this will build an inner table in one cell |
List<AccountingLineViewField> |
getFields()
Gets the fields attribute. |
String |
getName()
Returns the name of this element |
int |
getRequestedRowCount()
The minimum number of rows this element needs if it is going to join a table |
boolean |
isReadOnly()
Determines whether is element is entirely read only or not |
void |
joinRow(AccountingLineTableRow headerLabelRow,
AccountingLineTableRow row)
Joins the header row with a line filling cell, which includes within it an inner table that shows all the child fields |
void |
joinTable(List<AccountingLineTableRow> rows)
An exception state; line filling elements can only join tables through lines |
void |
performFieldTransformations(List<AccountingLineFieldRenderingTransformation> fieldTransformations,
AccountingLine accountingLine,
Map unconvertedValues)
Has fields perform the transformations |
void |
readOnlyize()
Sets any renderable element within this table joining block to be read only |
void |
readOnlyizeReadOnlyBlocks(Set<String> readOnlyBlocks)
Has each field readOnlyize |
void |
removeAllActionBlocks()
Removes any child action blocks; surviving blocks are instructed to remove child blocks they have |
void |
removeUnviewableBlocks(Set<String> unviewableBlocks)
Goes through all child fields; removes any fields which match unviewable blocks or otherwise, has the field remove unviewable blocks |
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 |
void |
setFields(List<AccountingLineViewField> fields)
Sets the fields attribute value. |
boolean |
shouldStretchToFillLine()
This element should be stretched |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AccountingLineViewColumns(AccountingLineViewColumnsDefinition definition,
List<AccountingLineViewField> fields)
definition - the data dictionary validation of this columns layout elementfields - the fields to render within this columns layout element| Method Detail |
|---|
public String getName()
getName in interface ElementNamableElementNamable.getName()public int getRequestedRowCount()
TableJoining
getRequestedRowCount in interface TableJoiningTableJoining.getRequestedRowCount()public boolean shouldStretchToFillLine()
shouldStretchToFillLine in interface AccountingLineViewLineFillingElementorg.kuali.kfs.sys.document.web.AccountingLineViewLineFillingElement#stretchToFillLine()
public void joinRow(AccountingLineTableRow headerLabelRow,
AccountingLineTableRow row)
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)protected List<AccountingLineTableRow> createRowsForFields()
protected AccountingLineTableCell createHeaderCellForField(AccountingLineViewField field)
field - the field to create a header cell for
protected AccountingLineTableCell createCellForField(AccountingLineViewField field)
field - the field to create a cell for
protected AccountingLineTableCell createPaddingCell()
public void joinTable(List<AccountingLineTableRow> rows)
joinTable in interface TableJoiningrows - the rows to joinTableJoining.joinTable(java.util.List)
public void performFieldTransformations(List<AccountingLineFieldRenderingTransformation> fieldTransformations,
AccountingLine accountingLine,
Map unconvertedValues)
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 removeAllActionBlocks()
removeAllActionBlocks in interface TableJoiningTableJoining.removeAllActionBlocks()public void removeUnviewableBlocks(Set<String> unviewableBlocks)
removeUnviewableBlocks in interface TableJoiningunviewableBlocks - a Set of the names of blocks that should not be renderedTableJoining.removeUnviewableBlocks(java.util.Set)public void readOnlyizeReadOnlyBlocks(Set<String> readOnlyBlocks)
readOnlyizeReadOnlyBlocks in interface TableJoiningreadOnlyBlocks - the names of blocks to make read onlyTableJoining.readOnlyizeReadOnlyBlocks(java.util.Set)public List<AccountingLineViewField> getFields()
public void setFields(List<AccountingLineViewField> fields)
fields - The fields to set.public boolean isReadOnly()
ReadOnlyable
isReadOnly in interface ReadOnlyableReadOnlyable.isReadOnly()public void readOnlyize()
ReadOnlyable
readOnlyize in interface ReadOnlyableReadOnlyable.readOnlyize()public int getDisplayingFieldWidth()
getDisplayingFieldWidth in interface AccountingLineViewLineFillingElementAccountingLineViewLineFillingElement.getDisplayingFieldWidth()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 | |||||||||