|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.sys.document.web.AccountingLineViewLines
public class AccountingLineViewLines
Represents the rendering for a bunch of elements within the accounting line view
| Constructor Summary | |
|---|---|
AccountingLineViewLines()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AccountingLineViewLines()
| Method Detail |
|---|
public AccountingLineViewLinesDefinition getDefinition()
public void setDefinition(AccountingLineViewLinesDefinition definition)
definition - The definition to set.public String getName()
ElementNamable
getName in interface ElementNamableorg.kuali.kfs.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 TableJoiningorg.kuali.kfs.sys.document.web.AccountingLineViewRenderableElement#getRequestedRowCount()
public void joinRow(AccountingLineTableRow headerRow,
AccountingLineTableRow row)
joinRow in interface TableJoiningheaderRow - the header row which can be joinedrow - the row which can be joinedorg.kuali.kfs.sys.document.web.TableJoining#joinRow(org.kuali.kfs.sys.document.web.AccountingLineTableRow)public void joinTable(List<AccountingLineTableRow> rows)
joinTable in interface TableJoiningrows - 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 ReadOnlyableReadOnlyable.readOnlyize()public boolean isReadOnly()
ReadOnlyable
isReadOnly in interface ReadOnlyableReadOnlyable.isReadOnly()public void removeAllActionBlocks()
TableJoining
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 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#performFieldTransformation(org.kuali.kfs.sys.document.service.AccountingLineFieldRenderingTransformation, org.kuali.kfs.sys.businessobject.AccountingLine, java.util.Map, java.util.Map)public int getMaxExpectedLineWidth()
public void readOnlyizeReadOnlyBlocks(Set<String> readOnlyBlocks)
readOnlyizeReadOnlyBlocks in interface TableJoiningreadOnlyBlocks - the names of blocks to make read onlyTableJoining.readOnlyizeReadOnlyBlocks(java.util.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 | |||||||||