public class AccountingLineViewLines extends Object implements TableJoining, ReadOnlyable
Constructor and Description |
---|
AccountingLineViewLines() |
Modifier and Type | Method and Description |
---|---|
AccountingLineViewLinesDefinition |
getDefinition()
Gets the definition attribute.
|
List<AccountingLineViewLineFillingElement> |
getElements()
Gets the elements attribute.
|
int |
getMaxExpectedLineWidth() |
String |
getName()
Returns the name(s) of this table joining element; some table joining elements are compound
|
int |
getRequestedRowCount()
The interesting implementation...how many does it need? Let's see here...one for each child row...
|
boolean |
isReadOnly()
Determines whether is element is entirely read only or not
|
void |
joinRow(AccountingLineTableRow headerRow,
AccountingLineTableRow row)
Throws an exception - lines should never be asked to join rows
|
void |
joinTable(List<AccountingLineTableRow> rows)
Attempts to have each child line join the rows that have been given
|
protected void |
padOutOrStretchCells(AccountingLineViewLineFillingElement line,
int maxExpectedLineWidth,
AccountingLineTableRow headerRow,
AccountingLineTableRow row)
Either pads out out the given table rows with an empty cell or stretches the cell to fill the whole line
|
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
|
void |
readOnlyizeReadOnlyBlocks(Set<String> readOnlyBlocks)
Shuffles the responsibility to the child lines
|
void |
removeAllActionBlocks()
Removes any action blocks from the given element
|
void |
removeUnviewableBlocks(Set<String> unviewableBlocks)
Removes any unviewable blocks within this this table joining element
|
void |
setDefinition(AccountingLineViewLinesDefinition 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
|
void |
setElements(List<AccountingLineViewLineFillingElement> lines)
Sets the elements attribute value.
|
public AccountingLineViewLines()
public AccountingLineViewLinesDefinition getDefinition()
public void setDefinition(AccountingLineViewLinesDefinition definition)
definition
- The definition to set.public String getName()
ElementNamable
getName
in interface ElementNamable
org.kuali.ole.sys.document.web.AccountingLineViewRenderableElementContainer#getName()
public List<AccountingLineViewLineFillingElement> getElements()
public void setElements(List<AccountingLineViewLineFillingElement> lines)
elements
- The elements to set.public int getRequestedRowCount()
getRequestedRowCount
in interface TableJoining
org.kuali.ole.sys.document.web.AccountingLineViewRenderableElement#getRequestedRowCount()
public void joinRow(AccountingLineTableRow headerRow, AccountingLineTableRow row)
joinRow
in interface TableJoining
headerRow
- the header row which can be joinedrow
- the row which can be joinedorg.kuali.ole.sys.document.web.TableJoining#joinRow(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)
protected void padOutOrStretchCells(AccountingLineViewLineFillingElement line, int maxExpectedLineWidth, AccountingLineTableRow headerRow, AccountingLineTableRow row)
line
- the line joining the tablemaxExpectedLineWidth
- the expected width, in cell count, of the lineheaderRow
- the first row to add padding out torow
- the second row to add padding out to - if we're only filling one row, this will be nullpublic void readOnlyize()
ReadOnlyable
readOnlyize
in interface ReadOnlyable
ReadOnlyable.readOnlyize()
public boolean isReadOnly()
ReadOnlyable
isReadOnly
in interface ReadOnlyable
ReadOnlyable.isReadOnly()
public void removeAllActionBlocks()
TableJoining
removeAllActionBlocks
in interface TableJoining
TableJoining.removeAllActionBlocks()
public void removeUnviewableBlocks(Set<String> unviewableBlocks)
TableJoining
removeUnviewableBlocks
in interface TableJoining
unviewableBlocks
- a Set of the names of blocks that should not be renderedTableJoining.removeUnviewableBlocks(java.util.Set)
public 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.TableJoining#performFieldTransformation(org.kuali.ole.sys.document.service.AccountingLineFieldRenderingTransformation, org.kuali.ole.sys.businessobject.AccountingLine, java.util.Map, java.util.Map)
public int getMaxExpectedLineWidth()
public void readOnlyizeReadOnlyBlocks(Set<String> readOnlyBlocks)
readOnlyizeReadOnlyBlocks
in interface TableJoining
readOnlyBlocks
- the names of blocks to make read onlyTableJoining.readOnlyizeReadOnlyBlocks(java.util.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()
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.