public class SimpleTableLayoutManager extends org.kuali.rice.krad.uif.layout.TableLayoutManager
| Constructor and Description |
|---|
SimpleTableLayoutManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildLine(org.kuali.rice.krad.uif.view.View view,
Object model,
org.kuali.rice.krad.uif.container.CollectionGroup collectionGroup,
List<org.kuali.rice.krad.uif.field.Field> lineFields,
List<org.kuali.rice.krad.uif.field.FieldGroup> subCollectionFields,
String bindingPath,
List<org.kuali.rice.krad.uif.element.Action> actions,
String idSuffix,
Object currentLine,
int lineIndex)
Assembles the field instances for the collection line.
|
protected int |
calculateNumberOfRows(List<? extends org.kuali.rice.krad.uif.field.Field> items)
Calculates how many rows will be needed per collection line to display
the list of fields.
|
int |
getActionColumnIndex()
Indicates the index of the action column
|
String |
getActionColumnPlacement()
Indicates the actions column placement
|
List<org.kuali.rice.krad.uif.util.ColumnCalculationInfo> |
getColumnCalculations()
Gets the column calculations.
|
List<String> |
getColumnsToCalculate()
A list of all the columns to be calculated
|
List<org.kuali.rice.krad.uif.component.Component> |
getComponentPrototypes() |
List<org.kuali.rice.krad.uif.component.Component> |
getComponentsForLifecycle() |
List<org.kuali.rice.krad.uif.component.Component> |
getDataFields()
List of
Component instances that make up the tables body. |
org.kuali.rice.krad.uif.element.Action |
getExpandDetailsActionPrototype()
The Action prototype used for the row details expand link.
|
List<org.kuali.rice.krad.uif.component.Component> |
getFooterCalculationComponents()
Gets the footer calculation components to be used by the layout.
|
Set<String> |
getHiddenColumns() |
int |
getNumberOfDataColumns() |
org.kuali.rice.krad.uif.widget.RichTable |
getRichTable()
Widget associated with the table to add functionality such as sorting,
paging, and export
|
org.kuali.rice.krad.uif.container.Group |
getRowDetailsGroup()
The row details info group to use when using a TableLayoutManager with the a richTable.
|
org.kuali.rice.krad.uif.field.Field |
getSelectFieldPrototype()
Field instance that serves as a prototype for creating the select field on each line when
CollectionGroup.isIncludeLineSelectionField() is true |
org.kuali.rice.krad.uif.field.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() |
org.kuali.rice.krad.uif.field.FieldGroup |
getSubCollectionFieldGroupPrototype() |
Class<? extends org.kuali.rice.krad.uif.container.Container> |
getSupportedContainer() |
org.kuali.rice.krad.uif.element.Action |
getToggleAllDetailsAction()
The toggleAllDetailsAction action component used to toggle all row details open/closed.
|
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 |
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 |
isRowDetailsOpen()
If true, all details will be opened by default when the table loads.
|
boolean |
isShowGroupTotal()
Gets showGroupTotal.
|
boolean |
isShowPageTotal()
Gets showTotal.
|
boolean |
isShowToggleAllDetails()
If true, the toggleAllDetailsAction will be shown.
|
boolean |
isShowTotal()
Gets showTotal.
|
boolean |
isUseShortLabels()
Indicates whether the short label for the collection field should be used
as the table header or the regular label
|
void |
performApplyModel(org.kuali.rice.krad.uif.view.View view,
Object model,
org.kuali.rice.krad.uif.container.Container container)
performApplyModel override.
|
void |
performFinalize(org.kuali.rice.krad.uif.view.View view,
Object model,
org.kuali.rice.krad.uif.container.Container container)
Sets up the final column count for rendering based on whether the
sequence and action fields have been generated, sets up column calculations, and richTable rowGrouping
options
|
void |
performInitialization(org.kuali.rice.krad.uif.view.View view,
Object model,
org.kuali.rice.krad.uif.container.Container container)
The following actions are performed:
Sets sequence field prototype if auto sequence is true
Initializes the prototypes
|
void |
setActionColumnPlacement(String actionColumnPlacement)
Setter for the action column placement
|
void |
setAjaxDetailsRetrieval(boolean ajaxDetailsRetrieval)
Set if row details content should be retrieved fromt he server
|
void |
setExpandDetailsActionPrototype(org.kuali.rice.krad.uif.element.Action expandDetailsActionPrototype)
Set the expand details Action prototype link
|
void |
setGenerateAutoSequence(boolean generateAutoSequence)
Setter for the generate auto sequence field
|
void |
setHiddenColumns(Set<String> hiddenColumns) |
void |
setNumberOfDataColumns(int numberOfDataColumns) |
void |
setRenderSequenceField(boolean renderSequenceField)
Setter for the render sequence field indicator
|
void |
setRichTable(org.kuali.rice.krad.uif.widget.RichTable richTable)
Setter for the rich table widget
|
void |
setRowDetailsGroup(org.kuali.rice.krad.uif.container.Group rowDetailsGroup)
Set the row details info group
|
void |
setRowDetailsOpen(boolean rowDetailsOpen)
Set if row details should be open on table load
|
void |
setSelectFieldPrototype(org.kuali.rice.krad.uif.field.Field selectFieldPrototype)
Setter for the prototype instance for select fields
|
void |
setSequenceFieldPrototype(org.kuali.rice.krad.uif.field.Field sequenceFieldPrototype)
Setter for the sequence field prototype
|
void |
setSequencePropertyName(String sequencePropertyName)
Setter for the sequence property name
|
void |
setShowToggleAllDetails(boolean showToggleAllDetails)
Set if the toggleAllDetailsAction should be shown
|
void |
setSortableColumns(Set<String> sortableColumns) |
void |
setSubCollectionFieldGroupPrototype(org.kuali.rice.krad.uif.field.FieldGroup subCollectionFieldGroupPrototype)
Setter for the sub-collection field group prototype
|
void |
setToggleAllDetailsAction(org.kuali.rice.krad.uif.element.Action toggleAllDetailsAction)
Set the toggleAllDetailsAction action component used to toggle all row details open/closed.
|
void |
setupDetails(org.kuali.rice.krad.uif.container.CollectionGroup collectionGroup,
org.kuali.rice.krad.uif.view.View view)
Creates the details group for the line using the information setup through the setter methods of this
interface.
|
void |
setUseShortLabels(boolean useShortLabels)
Setter for the use short label indicator
|
addHeaderField, buildTableHeaderRows, completeValidation, getActionFieldPrototype, getAddLineGroup, getGroupingPrefix, getGroupingPropertyNames, getGroupingTitle, getGroupTotalLabelPrototype, getHeaderLabelPrototype, getHeaderLabels, getPageTotalLabel, getTotalLabel, isRepeatHeader, isSeparateAddLine, setActionFieldPrototype, setAddLineGroup, setColumnCalculations, setGroupingPrefix, setGroupingPropertyNames, setGroupingTitle, setGroupTotalLabelPrototype, setHeaderLabelPrototype, setPageTotalLabel, setRenderOnlyLeftTotalLabels, setRepeatHeader, setSeparateAddLine, setShowGroupTotal, setShowPageTotal, setShowTotal, setTotalLabel, setupColumnCalculations, setupTotalFieldgetNumberOfColumns, getRowCssClasses, isApplyAlternatingRowStyles, isApplyDefaultCellWidths, isRenderAlternatingHeaderColumns, isRenderFirstRowHeader, isRenderRowFirstCellHeader, isSuppressLineWrapping, setApplyAlternatingRowStyles, setApplyDefaultCellWidths, setCellAttributes, setNumberOfColumns, setRenderAlternatingHeaderColumns, setRenderFirstRowHeader, setRenderRowFirstCellHeader, setRowCssClasses, setSuppressLineWrappingaddStyleClass, appendToStyle, getContext, getCssClasses, getId, getPropertiesForReferenceCopy, getPropertyReplacers, getStyle, getStyleClassesAsString, getTemplate, getTemplateName, pushObjectToContext, setContext, setCssClasses, setId, setPropertyReplacers, setStyle, setStyleClasses, setTemplate, setTemplateNamegetExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraphgetComponentCode, getNamespaceCode, setComponentCode, setNamespaceCodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddStyleClass, appendToStyle, getContext, getCssClasses, getId, getPropertiesForReferenceCopy, getPropertyReplacers, getStyle, getTemplate, pushObjectToContext, setContext, setCssClasses, setId, setPropertyReplacers, setStyle, setTemplatepublic SimpleTableLayoutManager()
public void performInitialization(org.kuali.rice.krad.uif.view.View view, Object model, org.kuali.rice.krad.uif.container.Container container)
performInitialization in interface org.kuali.rice.krad.uif.layout.LayoutManagerperformInitialization in class org.kuali.rice.krad.uif.layout.TableLayoutManagerLayoutManagerBase.performInitialization(org.kuali.rice.krad.uif.view.View,
java.lang.Object, org.kuali.rice.krad.uif.container.Container)public void performApplyModel(org.kuali.rice.krad.uif.view.View view, Object model, org.kuali.rice.krad.uif.container.Container container)
performApplyModel in interface org.kuali.rice.krad.uif.layout.LayoutManagerperformApplyModel in class org.kuali.rice.krad.uif.layout.TableLayoutManagerview - view instance to which the layout manager belongsmodel - Top level object containing the data (could be the form or a
top level business object, dto)container - public void performFinalize(org.kuali.rice.krad.uif.view.View view, Object model, org.kuali.rice.krad.uif.container.Container container)
performFinalize in interface org.kuali.rice.krad.uif.layout.LayoutManagerperformFinalize in class org.kuali.rice.krad.uif.layout.TableLayoutManagerLayoutManagerBase.performFinalize(org.kuali.rice.krad.uif.view.View,
java.lang.Object, org.kuali.rice.krad.uif.container.Container)public void buildLine(org.kuali.rice.krad.uif.view.View view, Object model, org.kuali.rice.krad.uif.container.CollectionGroup collectionGroup, List<org.kuali.rice.krad.uif.field.Field> lineFields, List<org.kuali.rice.krad.uif.field.FieldGroup> subCollectionFields, String bindingPath, List<org.kuali.rice.krad.uif.element.Action> actions, String idSuffix, Object currentLine, int lineIndex)
buildLine in interface org.kuali.rice.krad.uif.layout.CollectionLayoutManagerbuildLine in class org.kuali.rice.krad.uif.layout.TableLayoutManagerCollectionLayoutManager.buildLine(org.kuali.rice.krad.uif.view.View,
java.lang.Object, org.kuali.rice.krad.uif.container.CollectionGroup,
java.util.List, java.util.List, java.lang.String, java.util.List,
java.lang.String, java.lang.Object, int)protected int calculateNumberOfRows(List<? extends org.kuali.rice.krad.uif.field.Field> items)
calculateNumberOfRows in class org.kuali.rice.krad.uif.layout.TableLayoutManageritems - list of items that make up one collection linepublic Class<? extends org.kuali.rice.krad.uif.container.Container> getSupportedContainer()
getSupportedContainer in interface org.kuali.rice.krad.uif.layout.LayoutManagergetSupportedContainer in class org.kuali.rice.krad.uif.layout.TableLayoutManagerLayoutManager.getSupportedContainer()public List<org.kuali.rice.krad.uif.component.Component> getComponentsForLifecycle()
getComponentsForLifecycle in interface org.kuali.rice.krad.uif.layout.LayoutManagergetComponentsForLifecycle in class org.kuali.rice.krad.uif.layout.TableLayoutManagerLayoutManagerBase.getComponentsForLifecycle()public List<org.kuali.rice.krad.uif.component.Component> getComponentPrototypes()
getComponentPrototypes in interface org.kuali.rice.krad.uif.layout.LayoutManagergetComponentPrototypes in class org.kuali.rice.krad.uif.layout.TableLayoutManagerLayoutManager.getComponentPrototypes()public boolean isUseShortLabels()
isUseShortLabels in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic void setUseShortLabels(boolean useShortLabels)
setUseShortLabels in class org.kuali.rice.krad.uif.layout.TableLayoutManageruseShortLabels - public boolean isRenderSequenceField()
isRenderSequenceField in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic void setRenderSequenceField(boolean renderSequenceField)
setRenderSequenceField in class org.kuali.rice.krad.uif.layout.TableLayoutManagerrenderSequenceField - public String getSequencePropertyName()
getSequencePropertyName in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic void setSequencePropertyName(String sequencePropertyName)
setSequencePropertyName in class org.kuali.rice.krad.uif.layout.TableLayoutManagersequencePropertyName - public 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
isGenerateAutoSequence in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic void setGenerateAutoSequence(boolean generateAutoSequence)
setGenerateAutoSequence in class org.kuali.rice.krad.uif.layout.TableLayoutManagergenerateAutoSequence - public org.kuali.rice.krad.uif.field.Field getSequenceFieldPrototype()
Field instance to serve as a prototype for the
sequence field. For each collection line this instance is copied and
adjusted as necessarygetSequenceFieldPrototype in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic void setSequenceFieldPrototype(org.kuali.rice.krad.uif.field.Field sequenceFieldPrototype)
setSequenceFieldPrototype in class org.kuali.rice.krad.uif.layout.TableLayoutManagersequenceFieldPrototype - public org.kuali.rice.krad.uif.field.FieldGroup getSubCollectionFieldGroupPrototype()
getSubCollectionFieldGroupPrototype in interface org.kuali.rice.krad.uif.layout.CollectionLayoutManagergetSubCollectionFieldGroupPrototype in class org.kuali.rice.krad.uif.layout.TableLayoutManagerCollectionLayoutManager.getSubCollectionFieldGroupPrototype()public void setSubCollectionFieldGroupPrototype(org.kuali.rice.krad.uif.field.FieldGroup subCollectionFieldGroupPrototype)
setSubCollectionFieldGroupPrototype in class org.kuali.rice.krad.uif.layout.TableLayoutManagersubCollectionFieldGroupPrototype - public org.kuali.rice.krad.uif.field.Field getSelectFieldPrototype()
CollectionGroup.isIncludeLineSelectionField() is true
This prototype can be used to set the control used for the select field (generally will be a checkbox control)
in addition to styling and other setting. The binding path will be formed with using the
CollectionGroup.getLineSelectPropertyName() or if not set the
framework
will use UifFormBase.getSelectedCollectionLines()
getSelectFieldPrototype in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic void setSelectFieldPrototype(org.kuali.rice.krad.uif.field.Field selectFieldPrototype)
setSelectFieldPrototype in class org.kuali.rice.krad.uif.layout.TableLayoutManagerselectFieldPrototype - public List<org.kuali.rice.krad.uif.component.Component> getDataFields()
Component instances that make up the tables body. Pulled
by the layout manager template to send through the Grid layoutgetDataFields in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic org.kuali.rice.krad.uif.widget.RichTable getRichTable()
getRichTable in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic void setRichTable(org.kuali.rice.krad.uif.widget.RichTable richTable)
setRichTable in class org.kuali.rice.krad.uif.layout.TableLayoutManagerrichTable - public int getNumberOfDataColumns()
getNumberOfDataColumns in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic void setNumberOfDataColumns(int numberOfDataColumns)
setNumberOfDataColumns in class org.kuali.rice.krad.uif.layout.TableLayoutManagernumberOfDataColumns - the numberOfDataColumns to setpublic Set<String> getHiddenColumns()
getHiddenColumns in class org.kuali.rice.krad.uif.layout.TableLayoutManagerRichTable.getHiddenColumns()public void setHiddenColumns(Set<String> hiddenColumns)
setHiddenColumns in class org.kuali.rice.krad.uif.layout.TableLayoutManagerorg.kuali.rice.krad.uif.widget.RichTable#setHiddenColumns(java.util.Set) public Set<String> getSortableColumns()
getSortableColumns in class org.kuali.rice.krad.uif.layout.TableLayoutManagerRichTable.getSortableColumns()public void setSortableColumns(Set<String> sortableColumns)
setSortableColumns in class org.kuali.rice.krad.uif.layout.TableLayoutManagerorg.kuali.rice.krad.uif.widget.RichTable#setSortableColumns(java.util.Set) public int getActionColumnIndex()
getActionColumnIndex in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic 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.
getActionColumnPlacement in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic void setActionColumnPlacement(String actionColumnPlacement)
setActionColumnPlacement in class org.kuali.rice.krad.uif.layout.TableLayoutManageractionColumnPlacement - action column placement stringpublic org.kuali.rice.krad.uif.container.Group 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.
getRowDetailsGroup in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic void setRowDetailsGroup(org.kuali.rice.krad.uif.container.Group rowDetailsGroup)
setRowDetailsGroup in class org.kuali.rice.krad.uif.layout.TableLayoutManagerrowDetailsGroup - row details grouppublic void setupDetails(org.kuali.rice.krad.uif.container.CollectionGroup collectionGroup, org.kuali.rice.krad.uif.view.View view)
setupDetails in class org.kuali.rice.krad.uif.layout.TableLayoutManagercollectionGroup - the CollectionGroup for this TableLayoutManagerview - the current viewpublic List<String> getColumnsToCalculate()
The list must contain valid column indexes. The indexes takes all displayed columns into account.
getColumnsToCalculate in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic boolean isShowTotal()
isShowTotal in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic boolean isShowPageTotal()
isShowPageTotal in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic boolean isShowGroupTotal()
isShowGroupTotal in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic List<org.kuali.rice.krad.uif.util.ColumnCalculationInfo> getColumnCalculations()
getColumnCalculations in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic boolean isRenderOnlyLeftTotalLabels()
isRenderOnlyLeftTotalLabels in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic List<org.kuali.rice.krad.uif.component.Component> getFooterCalculationComponents()
getFooterCalculationComponents in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic boolean isRowDetailsOpen()
isRowDetailsOpen in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic void setRowDetailsOpen(boolean rowDetailsOpen)
setRowDetailsOpen in class org.kuali.rice.krad.uif.layout.TableLayoutManagerrowDetailsOpen - public boolean isShowToggleAllDetails()
isShowToggleAllDetails in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic void setShowToggleAllDetails(boolean showToggleAllDetails)
setShowToggleAllDetails in class org.kuali.rice.krad.uif.layout.TableLayoutManagershowToggleAllDetails - public org.kuali.rice.krad.uif.element.Action getToggleAllDetailsAction()
getToggleAllDetailsAction in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic void setToggleAllDetailsAction(org.kuali.rice.krad.uif.element.Action toggleAllDetailsAction)
setToggleAllDetailsAction in class org.kuali.rice.krad.uif.layout.TableLayoutManagertoggleAllDetailsAction - public boolean isAjaxDetailsRetrieval()
isAjaxDetailsRetrieval in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic void setAjaxDetailsRetrieval(boolean ajaxDetailsRetrieval)
setAjaxDetailsRetrieval in class org.kuali.rice.krad.uif.layout.TableLayoutManagerajaxDetailsRetrieval - public org.kuali.rice.krad.uif.element.Action getExpandDetailsActionPrototype()
getExpandDetailsActionPrototype in class org.kuali.rice.krad.uif.layout.TableLayoutManagerpublic void setExpandDetailsActionPrototype(org.kuali.rice.krad.uif.element.Action expandDetailsActionPrototype)
setExpandDetailsActionPrototype in class org.kuali.rice.krad.uif.layout.TableLayoutManagerexpandDetailsActionPrototype - Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.