public interface TableLayoutManager extends CollectionLayoutManager
CollectionGroup
components and renders the collection as a
Table.Modifier and Type | Method and Description |
---|---|
int |
getActionColumnIndex()
Indicates the index of the action column
|
String |
getActionColumnPlacement()
Indicates the actions column placement
|
FieldGroup |
getActionFieldPrototype()
FieldGroup instance to serve as a prototype for the actions column. |
List<Field> |
getAllRowFields()
List of
Field instances that make up all the table's rows of data |
List<Component> |
getColumnCalculationComponents()
Gets a list of column calculation components.
|
List<ColumnCalculationInfo> |
getColumnCalculations()
Gets the column calculations.
|
List<String> |
getColumnsToCalculate()
A list of all the columns to be calculated
|
Map<String,String> |
getConditionalRowCssClasses()
The row css classes for the rows of this layout
|
Action |
getExpandDetailsActionPrototype()
The Action prototype used for the row details expand link.
|
List<Field> |
getFirstRowFields()
List of
Field instances that make us the table's first row of data |
List<Component> |
getFooterCalculationComponents()
Gets the footer calculation components to be used by the layout.
|
int |
getGroupingColumnIndex()
Gets the grouping column index
|
String |
getGroupingPrefix()
Get the groupingPrefix.
|
List<String> |
getGroupingPropertyNames()
Gets the list of property names to use for grouping.
|
String |
getGroupingTitle()
Get the groupingTitle.
|
Label |
getGroupTotalLabelPrototype()
The groupTotal label to use when renderOnlyLeftTotalLabels is TRUE.
|
Label |
getHeaderLabelPrototype()
Label instance to use as a prototype for creating the tables header fields. |
List<Label> |
getHeaderLabels()
List of
Label instances that should be rendered to make up the tables header |
Set<String> |
getHiddenColumns()
Gets a set of property names defining hidden columns.
|
int |
getNumberOfColumns()
Indicates the number of columns that should make up one row of data.
|
int |
getNumberOfDataColumns() |
Label |
getPageTotalLabel()
The pageTotal label to use when renderOnlyLeftTotalLabels is TRUE for total.
|
RichTable |
getRichTable()
Widget associated with the table to add functionality such as sorting, paging, and export
|
List<String> |
getRowCssClasses()
List of styles for each row.
|
List<String> |
getRowDataAttributes()
List of data attributes for each row.
|
Group |
getRowDetailsGroup()
The row details info group to use when using a TableLayoutManager with the a richTable.
|
Field |
getSequenceFieldPrototype()
Field instance to serve as a prototype for the sequence field. |
String |
getSequencePropertyName()
Attribute name to use as sequence value.
|
Set<String> |
getSortableColumns()
Gets a set of property names defining sortable columns.
|
Action |
getToggleAllDetailsAction()
The toggleAllDetailsAction action component used to toggle all row details open/closed.
|
Label |
getTotalLabel()
The total label to use when renderOnlyLeftTotalLabels is TRUE for total.
|
boolean |
isAjaxDetailsRetrieval()
If true, when a row details open action is performed, it will get the details content from
the server the first time it is opened.
|
boolean |
isApplyAlternatingRowStyles()
Indicates whether alternating row styles should be applied.
|
boolean |
isApplyDefaultCellWidths()
Indicates whether the manager should default the cell widths.
|
Boolean |
isAutoTruncateColumns()
Indicates whether the column text should be truncated when the table cell
is to small to display the text without wrapping.
|
boolean |
isGenerateAutoSequence()
Indicates whether the sequence field should be generated with the current line number
|
boolean |
isRenderOnlyLeftTotalLabels()
When true, labels for the totals fields will only appear in the left most column.
|
boolean |
isRenderSequenceField()
Indicates whether the sequence field should be rendered for the collection
|
boolean |
isRepeatHeader()
Indicates whether the header should be repeated before each collection row.
|
boolean |
isRowDetailsOpen()
If true, all details will be opened by default when the table loads.
|
boolean |
isSeparateAddLine()
Indicates whether the add line should be rendered in a separate group, or as part of the
table (first line)
|
boolean |
isShowGroupTotal()
Gets showGroupTotal.
|
boolean |
isShowPageTotal()
Gets showTotal.
|
boolean |
isShowToggleAllDetails()
If true, the toggleAllDetailsAction will be shown.
|
boolean |
isShowTotal()
Gets showTotal.
|
boolean |
isSuppressLineWrapping()
Indicates whether the number of columns for the table data should match
the number of fields given in the container's items list (so that each
field takes up one column without wrapping), this overrides the configured
numberOfColumns.
|
boolean |
isUseShortLabels()
Indicates whether the short label for the collection field should be used as the table header
or the regular label
|
void |
setActionColumnPlacement(String actionColumnPlacement)
Setter for the action column placement
|
void |
setActionFieldPrototype(FieldGroup actionFieldPrototype)
Setter for the action field prototype
|
void |
setAjaxDetailsRetrieval(boolean ajaxDetailsRetrieval)
Set if row details content should be retrieved fromt he server
|
void |
setApplyAlternatingRowStyles(boolean applyAlternatingRowStyles) |
void |
setApplyDefaultCellWidths(boolean applyDefaultCellWidths) |
void |
setAutoTruncateColumns(Boolean autoTruncateColumns) |
void |
setColumnCalculations(List<ColumnCalculationInfo> columnCalculations)
Sets the columnCalculations.
|
void |
setConditionalRowCssClasses(Map<String,String> conditionalRowCssClasses)
Set the conditionalRowCssClasses
|
void |
setExpandDetailsActionPrototype(Action expandDetailsActionPrototype)
Set the expand details Action prototype link
|
void |
setGenerateAutoSequence(boolean generateAutoSequence)
Setter for the generate auto sequence field
|
void |
setGroupingPrefix(String groupingPrefix)
Set the groupingPrefix.
|
void |
setGroupingPropertyNames(List<String> groupingPropertyNames)
Sets the list of property names to use for grouping.
|
void |
setGroupingTitle(String groupingTitle)
Set the groupingTitle.
|
void |
setGroupTotalLabelPrototype(Label groupTotalLabelPrototype)
Sets the groupTotal label to use when renderOnlyLeftTotalLabels is TRUE.
|
void |
setHeaderLabelPrototype(Label headerLabelPrototype)
Setter for the header field prototype
|
void |
setHiddenColumns(Set<String> hiddenColumns)
Setter for
getHiddenColumns() . |
void |
setNumberOfColumns(int numberOfColumns) |
void |
setNumberOfDataColumns(int numberOfDataColumns) |
void |
setPageTotalLabel(Label pageTotalLabel)
Sets the pageTotal label to use when renderOnlyLeftTotalLabels is TRUE for total.
|
void |
setRenderOnlyLeftTotalLabels(boolean renderOnlyLeftTotalLabels)
Set the renderOnlyLeftTotalLabels flag for rendring total labels in the left-most column
|
void |
setRenderSequenceField(boolean renderSequenceField)
Setter for the render sequence field indicator
|
void |
setRepeatHeader(boolean repeatHeader)
Setter for the repeat header indicator
|
void |
setRichTable(RichTable richTable)
Setter for the rich table widget
|
void |
setRowCssClasses(List<String> rowCssClasses) |
void |
setRowDataAttributes(List<String> rowDataAttributes) |
void |
setRowDetailsGroup(Group rowDetailsGroup)
Set the row details info group
|
void |
setRowDetailsOpen(boolean rowDetailsOpen)
Set if row details should be open on table load
|
void |
setSeparateAddLine(boolean separateAddLine)
Setter for the separate add line indicator
|
void |
setSequenceFieldPrototype(Field sequenceFieldPrototype)
Setter for the sequence field prototype
|
void |
setSequencePropertyName(String sequencePropertyName)
Setter for the sequence property name
|
void |
setShowGroupTotal(boolean showGroupTotal)
Sets showGroupTotal.
|
void |
setShowPageTotal(boolean showPageTotal)
Sets showPageTotal.
|
void |
setShowToggleAllDetails(boolean showToggleAllDetails)
Set if the toggleAllDetailsAction should be shown
|
void |
setShowTotal(boolean showTotal)
Sets showTotal.
|
void |
setSortableColumns(Set<String> sortableColumns)
Setterfor
getSortableColumns() . |
void |
setSuppressLineWrapping(boolean suppressLineWrapping) |
void |
setToggleAllDetailsAction(Action toggleAllDetailsAction)
Set the toggleAllDetailsAction action component used to toggle all row details open/closed.
|
void |
setTotalLabel(Label totalLabel)
Sets the total label to use when renderOnlyLeftTotalLabels is TRUE for total.
|
void |
setUseShortLabels(boolean useShortLabels)
Setter for the use short label indicator
|
buildLine, getAddLineGroup, getPagerWidget, getSelectFieldPrototype, getSubCollectionFieldGroupPrototype, processPagingRequest, setAddLineGroup, setPagerWidget, setSelectFieldPrototype, setSubCollectionFieldGroupPrototype
addStyleClass, appendToStyle, getAdditionalCssClasses, getCssClasses, getLibraryCssClasses, getPropertyReplacers, getStyle, getSupportedContainer, getTemplate, getTemplateName, setAdditionalCssClasses, setCssClasses, setLibraryCssClasses, setPropertyReplacers, setStyle, setTemplate, setTemplateName
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
checkMutable, getContainerIdSuffix, getContext, getId, getPhasePathMapping, getViewPath, getViewStatus, isFinal, isInitialized, isModelApplied, isMutable, isRender, notifyCompleted, performApplyModel, performFinalize, performInitialization, pushAllToContext, pushObjectToContext, setContainerIdSuffix, setContext, setId, setPhasePathMapping, setRender, setViewPath, setViewStatus, skipLifecycle
int getNumberOfColumns()
If the item count is greater than the number of columns, a new row will be created to render the remaining items (and so on until all items are placed).
Note this does not include any generated columns by the layout manager, so the final column count could be greater (if label fields are separate).
void setNumberOfColumns(int numberOfColumns)
getNumberOfColumns()
boolean isSuppressLineWrapping()
If set to true during the initialize phase the number of columns will be set to the size of the container's field list, if false the configured number of columns is used
void setSuppressLineWrapping(boolean suppressLineWrapping)
isSuppressLineWrapping()
Boolean isAutoTruncateColumns()
A tooltip is added to the table cell which displays the text before truncation.
void setAutoTruncateColumns(Boolean autoTruncateColumns)
isAutoTruncateColumns()
boolean isApplyAlternatingRowStyles()
Indicator to layout manager templates to apply alternating row styles. See the configured template for the actual style classes used
void setApplyAlternatingRowStyles(boolean applyAlternatingRowStyles)
isApplyAlternatingRowStyles()
boolean isApplyDefaultCellWidths()
If true, the manager will set the cell width by equally dividing by the number of columns
void setApplyDefaultCellWidths(boolean applyDefaultCellWidths)
isApplyDefaultCellWidths()
List<String> getRowCssClasses()
Each entry in the list gives the style for the row with the same index. This style will be added to the
void setRowCssClasses(List<String> rowCssClasses)
getRowCssClasses()
List<String> getRowDataAttributes()
Each entry in the list gives the data attributes for the row with the same index. These data attributes will be added to the
void setRowDataAttributes(List<String> rowDataAttributes)
getRowDataAttributes()
boolean isUseShortLabels()
void setUseShortLabels(boolean useShortLabels)
useShortLabels
- boolean isRepeatHeader()
void setRepeatHeader(boolean repeatHeader)
repeatHeader
- Label getHeaderLabelPrototype()
Label
instance to use as a prototype for creating the tables header fields. For each
header field the prototype will be copied and adjusted as necessaryvoid setHeaderLabelPrototype(Label headerLabelPrototype)
headerLabelPrototype
- List<Label> getHeaderLabels()
Label
instances that should be rendered to make up the tables headerboolean isRenderSequenceField()
void setRenderSequenceField(boolean renderSequenceField)
renderSequenceField
- String getSequencePropertyName()
void setSequencePropertyName(String sequencePropertyName)
sequencePropertyName
- boolean isGenerateAutoSequence()
If set to true the sequence field prototype will be changed to a message field (if not already a message field) and the text will be set to the current line number
void setGenerateAutoSequence(boolean generateAutoSequence)
generateAutoSequence
- Field getSequenceFieldPrototype()
Field
instance to serve as a prototype for the sequence field. For each collection
line this instance is copied and adjusted as necessaryvoid setSequenceFieldPrototype(Field sequenceFieldPrototype)
sequenceFieldPrototype
- FieldGroup getActionFieldPrototype()
FieldGroup
instance to serve as a prototype for the actions column. For each
collection line this instance is copied and adjusted as necessary. Note the actual actions
for the group come from the collection groups actions List
(org.kuali.rice.krad.uif.container.CollectionGroup.getActions()). The FieldGroup prototype is
useful for setting styling of the actions column and for the layout of the action fields.
Note also the label associated with the prototype is used for the action column headervoid setActionFieldPrototype(FieldGroup actionFieldPrototype)
actionFieldPrototype
- boolean isSeparateAddLine()
When separate add line is enabled, the fields for the add line will be placed in the
CollectionLayoutManager.getAddLineGroup()
. This group can be used to configure the add line presentation. In
addition to the fields, the header on the group (unless already set) will be set to
CollectionGroup.getAddLabel()
and the add line
actions will be placed into the group's footer.
void setSeparateAddLine(boolean separateAddLine)
separateAddLine
- List<Field> getAllRowFields()
Field
instances that make up all the table's rows of dataList<Field> getFirstRowFields()
Field
instances that make us the table's first row of dataRichTable getRichTable()
void setRichTable(RichTable richTable)
richTable
- int getNumberOfDataColumns()
void setNumberOfDataColumns(int numberOfDataColumns)
numberOfDataColumns
- the numberOfDataColumns to setSet<String> getHiddenColumns()
RichTable.getHiddenColumns()
void setHiddenColumns(Set<String> hiddenColumns)
getHiddenColumns()
.hiddenColumns
- set of property namesSet<String> getSortableColumns()
RichTable.getSortableColumns()
void setSortableColumns(Set<String> sortableColumns)
getSortableColumns()
.sortableColumns
- set of property namesint getActionColumnIndex()
String getActionColumnPlacement()
Valid values are 'LEFT', 'RIGHT' or any valid number. The default is 'RIGHT' or '-1'. The column placement index takes all displayed columns, including sequence and selection columns, into account.
void setActionColumnPlacement(String actionColumnPlacement)
actionColumnPlacement
- action column placement stringGroup getRowDetailsGroup()
This group will be displayed when the user clicks the "Details" link/image on a row. This allows extra/long data to be hidden in table rows and then revealed during interaction with the table without the need to leave the page. Allows for any group content.
Does not currently work with javascript required content.
void setRowDetailsGroup(Group rowDetailsGroup)
rowDetailsGroup
- row details groupList<String> getColumnsToCalculate()
The list must contain valid column indexes. The indexes takes all displayed columns into account.
boolean isShowTotal()
void setShowTotal(boolean showTotal)
showTotal
- boolean isShowPageTotal()
void setShowPageTotal(boolean showPageTotal)
showPageTotal
- boolean isShowGroupTotal()
void setShowGroupTotal(boolean showGroupTotal)
showGroupTotal
- Label getTotalLabel()
void setTotalLabel(Label totalLabel)
totalLabel
- Label getPageTotalLabel()
void setPageTotalLabel(Label pageTotalLabel)
pageTotalLabel
- Label getGroupTotalLabelPrototype()
void setGroupTotalLabelPrototype(Label groupTotalLabelPrototype)
groupTotalLabelPrototype
- List<ColumnCalculationInfo> getColumnCalculations()
void setColumnCalculations(List<ColumnCalculationInfo> columnCalculations)
columnCalculations
- boolean isRenderOnlyLeftTotalLabels()
void setRenderOnlyLeftTotalLabels(boolean renderOnlyLeftTotalLabels)
renderOnlyLeftTotalLabels
- List<Component> getFooterCalculationComponents()
List<String> getGroupingPropertyNames()
When this property is set, grouping for this collection will be enabled and the lines of the collection will be grouped by the propertyName(s) supplied. Supplying multiple property names will cause the grouping to be on multiple fields and ordered alphabetically on "propetyValue1, propertyValue2" (this is also how the group title will display for each group). The property names supplied must be relative to the line, so #lp SHOULD NOT be used (it is assumed automatically).
void setGroupingPropertyNames(List<String> groupingPropertyNames)
groupingPropertyNames
- String getGroupingTitle()
void setGroupingTitle(String groupingTitle)
groupingTitle
- String getGroupingPrefix()
void setGroupingPrefix(String groupingPrefix)
groupingPrefix
- boolean isRowDetailsOpen()
void setRowDetailsOpen(boolean rowDetailsOpen)
rowDetailsOpen
- boolean isShowToggleAllDetails()
void setShowToggleAllDetails(boolean showToggleAllDetails)
showToggleAllDetails
- Action getToggleAllDetailsAction()
void setToggleAllDetailsAction(Action toggleAllDetailsAction)
toggleAllDetailsAction
- boolean isAjaxDetailsRetrieval()
void setAjaxDetailsRetrieval(boolean ajaxDetailsRetrieval)
ajaxDetailsRetrieval
- Action getExpandDetailsActionPrototype()
int getGroupingColumnIndex()
void setExpandDetailsActionPrototype(Action expandDetailsActionPrototype)
expandDetailsActionPrototype
- Map<String,String> getConditionalRowCssClasses()
To set a css class on all rows, use "all" as a key. To set a class for even rows, use "even" as a key, for odd rows, use "odd". Use a one-based index to target a specific row by index. SpringEL can be used as a key and the expression will be evaluated; if evaluated to true, the class(es) specified will be applied.
void setConditionalRowCssClasses(Map<String,String> conditionalRowCssClasses)
conditionalRowCssClasses
- List<Component> getColumnCalculationComponents()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.