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, setupTotalField
getNumberOfColumns, getRowCssClasses, isApplyAlternatingRowStyles, isApplyDefaultCellWidths, isRenderAlternatingHeaderColumns, isRenderFirstRowHeader, isRenderRowFirstCellHeader, isSuppressLineWrapping, setApplyAlternatingRowStyles, setApplyDefaultCellWidths, setCellAttributes, setNumberOfColumns, setRenderAlternatingHeaderColumns, setRenderFirstRowHeader, setRenderRowFirstCellHeader, setRowCssClasses, setSuppressLineWrapping
addStyleClass, appendToStyle, getContext, getCssClasses, getId, getPropertiesForReferenceCopy, getPropertyReplacers, getStyle, getStyleClassesAsString, getTemplate, getTemplateName, pushObjectToContext, setContext, setCssClasses, setId, setPropertyReplacers, setStyle, setStyleClasses, setTemplate, setTemplateName
getExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraph
getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addStyleClass, appendToStyle, getContext, getCssClasses, getId, getPropertiesForReferenceCopy, getPropertyReplacers, getStyle, getTemplate, pushObjectToContext, setContext, setCssClasses, setId, setPropertyReplacers, setStyle, setTemplate
public 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.LayoutManager
performInitialization
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
LayoutManagerBase.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.LayoutManager
performApplyModel
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
view
- 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.LayoutManager
performFinalize
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
LayoutManagerBase.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.CollectionLayoutManager
buildLine
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
CollectionLayoutManager.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.TableLayoutManager
items
- 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.LayoutManager
getSupportedContainer
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
LayoutManager.getSupportedContainer()
public List<org.kuali.rice.krad.uif.component.Component> getComponentsForLifecycle()
getComponentsForLifecycle
in interface org.kuali.rice.krad.uif.layout.LayoutManager
getComponentsForLifecycle
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
LayoutManagerBase.getComponentsForLifecycle()
public List<org.kuali.rice.krad.uif.component.Component> getComponentPrototypes()
getComponentPrototypes
in interface org.kuali.rice.krad.uif.layout.LayoutManager
getComponentPrototypes
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
LayoutManager.getComponentPrototypes()
public boolean isUseShortLabels()
isUseShortLabels
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
public void setUseShortLabels(boolean useShortLabels)
setUseShortLabels
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
useShortLabels
- public boolean isRenderSequenceField()
isRenderSequenceField
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
public void setRenderSequenceField(boolean renderSequenceField)
setRenderSequenceField
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
renderSequenceField
- public String getSequencePropertyName()
getSequencePropertyName
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
public void setSequencePropertyName(String sequencePropertyName)
setSequencePropertyName
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
sequencePropertyName
- 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.TableLayoutManager
public void setGenerateAutoSequence(boolean generateAutoSequence)
setGenerateAutoSequence
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
generateAutoSequence
- 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.TableLayoutManager
public void setSequenceFieldPrototype(org.kuali.rice.krad.uif.field.Field sequenceFieldPrototype)
setSequenceFieldPrototype
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
sequenceFieldPrototype
- public org.kuali.rice.krad.uif.field.FieldGroup getSubCollectionFieldGroupPrototype()
getSubCollectionFieldGroupPrototype
in interface org.kuali.rice.krad.uif.layout.CollectionLayoutManager
getSubCollectionFieldGroupPrototype
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
CollectionLayoutManager.getSubCollectionFieldGroupPrototype()
public void setSubCollectionFieldGroupPrototype(org.kuali.rice.krad.uif.field.FieldGroup subCollectionFieldGroupPrototype)
setSubCollectionFieldGroupPrototype
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
subCollectionFieldGroupPrototype
- 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.TableLayoutManager
public void setSelectFieldPrototype(org.kuali.rice.krad.uif.field.Field selectFieldPrototype)
setSelectFieldPrototype
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
selectFieldPrototype
- 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.TableLayoutManager
public org.kuali.rice.krad.uif.widget.RichTable getRichTable()
getRichTable
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
public void setRichTable(org.kuali.rice.krad.uif.widget.RichTable richTable)
setRichTable
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
richTable
- public int getNumberOfDataColumns()
getNumberOfDataColumns
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
public void setNumberOfDataColumns(int numberOfDataColumns)
setNumberOfDataColumns
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
numberOfDataColumns
- the numberOfDataColumns to setpublic Set<String> getHiddenColumns()
getHiddenColumns
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
RichTable.getHiddenColumns()
public void setHiddenColumns(Set<String> hiddenColumns)
setHiddenColumns
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
org.kuali.rice.krad.uif.widget.RichTable#setHiddenColumns(java.util.Set)
public Set<String> getSortableColumns()
getSortableColumns
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
RichTable.getSortableColumns()
public void setSortableColumns(Set<String> sortableColumns)
setSortableColumns
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
org.kuali.rice.krad.uif.widget.RichTable#setSortableColumns(java.util.Set)
public int getActionColumnIndex()
getActionColumnIndex
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
public 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.TableLayoutManager
public void setActionColumnPlacement(String actionColumnPlacement)
setActionColumnPlacement
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
actionColumnPlacement
- 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.TableLayoutManager
public void setRowDetailsGroup(org.kuali.rice.krad.uif.container.Group rowDetailsGroup)
setRowDetailsGroup
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
rowDetailsGroup
- 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.TableLayoutManager
collectionGroup
- 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.TableLayoutManager
public boolean isShowTotal()
isShowTotal
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
public boolean isShowPageTotal()
isShowPageTotal
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
public boolean isShowGroupTotal()
isShowGroupTotal
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
public List<org.kuali.rice.krad.uif.util.ColumnCalculationInfo> getColumnCalculations()
getColumnCalculations
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
public boolean isRenderOnlyLeftTotalLabels()
isRenderOnlyLeftTotalLabels
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
public List<org.kuali.rice.krad.uif.component.Component> getFooterCalculationComponents()
getFooterCalculationComponents
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
public boolean isRowDetailsOpen()
isRowDetailsOpen
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
public void setRowDetailsOpen(boolean rowDetailsOpen)
setRowDetailsOpen
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
rowDetailsOpen
- public boolean isShowToggleAllDetails()
isShowToggleAllDetails
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
public void setShowToggleAllDetails(boolean showToggleAllDetails)
setShowToggleAllDetails
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
showToggleAllDetails
- public org.kuali.rice.krad.uif.element.Action getToggleAllDetailsAction()
getToggleAllDetailsAction
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
public void setToggleAllDetailsAction(org.kuali.rice.krad.uif.element.Action toggleAllDetailsAction)
setToggleAllDetailsAction
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
toggleAllDetailsAction
- public boolean isAjaxDetailsRetrieval()
isAjaxDetailsRetrieval
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
public void setAjaxDetailsRetrieval(boolean ajaxDetailsRetrieval)
setAjaxDetailsRetrieval
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
ajaxDetailsRetrieval
- public org.kuali.rice.krad.uif.element.Action getExpandDetailsActionPrototype()
getExpandDetailsActionPrototype
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
public void setExpandDetailsActionPrototype(org.kuali.rice.krad.uif.element.Action expandDetailsActionPrototype)
setExpandDetailsActionPrototype
in class org.kuali.rice.krad.uif.layout.TableLayoutManager
expandDetailsActionPrototype
- Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.