public class HideShowLayoutElement extends Object implements AccountingLineViewLineFillingElement
Constructor and Description |
---|
HideShowLayoutElement() |
Modifier and Type | Method and Description |
---|---|
void |
addLine(AccountingLineViewLineFillingElement line)
Adds a single line to this element's list of lines
|
protected List<AccountingLineTableRow> |
createBlankRows(int cellCount)
Creates empty rows to populate the content of the hide/show block
|
protected HideShowBlock |
createHideShowBlock(int headerRowCount)
Creates the hide/show block
|
AccountingLineViewHideShowLinesDefinition |
getDefinition()
Gets the definition attribute.
|
int |
getDisplayingFieldWidth()
Always returns 1; this will appear in one table cell
|
List<AccountingLineViewLineFillingElement> |
getLines()
Gets the lines attribute.
|
String |
getName()
Returns the name of the child element - if that gets removed, then we need to be removed as well
|
int |
getRequestedRowCount()
All hide/show elements fit into one row
|
protected int |
getRowsRequested()
Returns the total number of rows requested by each child line
|
protected void |
haveLinesJoinRows(List<AccountingLineTableRow> rows,
int headerRowCount)
Causes child lines to join the given set of rows
|
boolean |
isReadOnly()
Checks that all child lines are read only; if none are, then this must be read only too
|
void |
joinRow(AccountingLineTableRow headerLabelRow,
AccountingLineTableRow row)
Joins the header label row with a cell that colspans the width of the row and that spans 2
|
void |
joinTable(List<AccountingLineTableRow> rows)
Requests that this layout element property join a number of rows which will make up a table
|
void |
performFieldTransformations(List<AccountingLineFieldRenderingTransformation> fieldTransformations,
AccountingLine accountingLine,
Map unconvertedValues)
Has the inner content perform any field transformations
|
void |
readOnlyize()
Read-onlyizes child lines
|
void |
readOnlyizeReadOnlyBlocks(Set<String> readOnlyBlocks)
Has the inner content read onlyize any blocks it needs to
|
void |
removeAllActionBlocks()
Shuffles the responsibility off to the inner content
|
void |
removeUnviewableBlocks(Set<String> unviewableBlocks)
Passes the unviewable blocks off the inner content
|
void |
setDefinition(AccountingLineViewHideShowLinesDefinition 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 |
setLines(List<AccountingLineViewLineFillingElement> lines)
Sets the lines attribute value.
|
boolean |
shouldStretchToFillLine()
This layout element should be stretched
|
public HideShowLayoutElement()
public String getName()
getName
in interface ElementNamable
ElementNamable.getName()
public 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 boolean shouldStretchToFillLine()
shouldStretchToFillLine
in interface AccountingLineViewLineFillingElement
org.kuali.ole.sys.document.web.AccountingLineViewLineFillingElement#stretchToFillLine()
public void joinTable(List<AccountingLineTableRow> rows)
TableJoining
joinTable
in interface TableJoining
rows
- the rows to joinTableJoining.joinTable(java.util.List)
protected HideShowBlock createHideShowBlock(int headerRowCount)
headerRowCount
- the number of header rowsprotected int getRowsRequested()
protected List<AccountingLineTableRow> createBlankRows(int cellCount)
cellCount
- the number of rows which will be returnedprotected void haveLinesJoinRows(List<AccountingLineTableRow> rows, int headerRowCount)
rows
- the List of rows which child lines can joinheaderRowCount
- the number of header rowspublic void performFieldTransformations(List<AccountingLineFieldRenderingTransformation> fieldTransformations, AccountingLine accountingLine, Map unconvertedValues)
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#performFieldTransformations(java.util.List, org.kuali.ole.sys.businessobject.AccountingLine, java.util.Map, java.util.Map)
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 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 renderedTableJoining.removeUnviewableBlocks(java.util.Set)
public List<AccountingLineViewLineFillingElement> getLines()
public void setLines(List<AccountingLineViewLineFillingElement> lines)
lines
- The lines to set.public void addLine(AccountingLineViewLineFillingElement line)
line
- the line to addpublic AccountingLineViewHideShowLinesDefinition getDefinition()
public void setDefinition(AccountingLineViewHideShowLinesDefinition definition)
definition
- The definition to set.public boolean isReadOnly()
isReadOnly
in interface ReadOnlyable
ReadOnlyable.isReadOnly()
public void readOnlyize()
readOnlyize
in interface ReadOnlyable
ReadOnlyable.readOnlyize()
public int getDisplayingFieldWidth()
getDisplayingFieldWidth
in interface AccountingLineViewLineFillingElement
AccountingLineViewLineFillingElement.getDisplayingFieldWidth()
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.