public class AccountingLineViewLine extends Object implements ReadOnlyable, AccountingLineViewLineFillingElement
Constructor and Description |
---|
AccountingLineViewLine() |
Modifier and Type | Method and Description |
---|---|
protected AccountingLineTableCell |
createTableCellForNonTableJoining(RenderableElement element)
Creates a table cell to wrap the given rendering element
|
AccountingLineViewLineDefinition |
getDefinition()
Gets the definition attribute.
|
int |
getDisplayingFieldWidth()
Finds the number of table cells this line expects to take up
|
List<RenderableElement> |
getElements()
Gets the elements attribute.
|
protected int |
getMaxRequestedRowCount()
Determines the max requested row count in the line.
|
String |
getName()
Returns the name(s) of this table joining element; some table joining elements are compound
|
int |
getRequestedRowCount()
Gets the number of actual rows requested (1)
|
boolean |
isReadOnly()
Determines whether is element is entirely read only or not
|
void |
joinRow(AccountingLineTableRow headerRow,
AccountingLineTableRow row)
Requests that this element join a table row
|
void |
joinTable(List<AccountingLineTableRow> rows)
Always throws an exception - a line may only join a table through a parent lines element
|
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 responsibility on to any TableJoining children
|
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(AccountingLineViewLineDefinition 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<RenderableElement> fields)
Sets the elements attribute value.
|
boolean |
shouldStretchToFillLine()
This element should be padded out
|
public AccountingLineViewLine()
public AccountingLineViewLineDefinition getDefinition()
public void setDefinition(AccountingLineViewLineDefinition definition)
definition
- The definition to set.public String getName()
ElementNamable
getName
in interface ElementNamable
org.kuali.ole.sys.document.web.AccountingLineViewRenderableElementContainer#getName()
public List<RenderableElement> getElements()
public void setElements(List<RenderableElement> fields)
elements
- The elements to set.public int getRequestedRowCount()
getRequestedRowCount
in interface TableJoining
org.kuali.ole.sys.document.web.AccountingLineViewRenderableElement#getRequestedRowCount()
protected int getMaxRequestedRowCount()
public void joinRow(AccountingLineTableRow headerRow, AccountingLineTableRow row)
TableJoining
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)
protected AccountingLineTableCell createTableCellForNonTableJoining(RenderableElement element)
element
- the element to wrappublic void joinTable(List<AccountingLineTableRow> rows)
joinTable
in interface TableJoining
rows
- the rows to joinTableJoining.joinTable(java.util.List)
public boolean shouldStretchToFillLine()
shouldStretchToFillLine
in interface AccountingLineViewLineFillingElement
org.kuali.ole.sys.document.web.AccountingLineViewLineFillingElement#stretchToFillLine()
public void readOnlyize()
ReadOnlyable
readOnlyize
in interface ReadOnlyable
org.kuali.ole.sys.document.web.TableJoining#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 renderedorg.kuali.ole.sys.document.web.TableJoining#removeUnviewableBlocks()
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 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 getDisplayingFieldWidth()
getDisplayingFieldWidth
in interface AccountingLineViewLineFillingElement
public void setEditable()
ReadOnlyable
setEditable
in interface ReadOnlyable
ReadOnlyable.setEditable()
public void setEditableBlocks(Set<String> editableBlocks)
TableJoining
setEditableBlocks
in interface TableJoining
TableJoining.setEditableBlocks(java.util.Set)
Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.