Package org.kuali.rice.krad.uif.layout
Interface StackedLayoutManager
- All Superinterfaces:
Cloneable,CollectionLayoutManager,Copyable,DictionaryBean,LayoutManager,LifecycleElement,Serializable,UifDictionaryBean
- All Known Implementing Classes:
StackedLayoutManagerBase
Layout manager interface for stacked collections.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionGroup instance that is used as a prototype for creating the collection line groups.FinalListof Groups to render for the collectionUsed by reflection during the lifecycle to get groups for the lifecycle when not using a wrapper groupGet a string representation of all style classes defined by this layout manager.List of attribute names from the collection line class that should be used to build the line summary.Text to appears in the header for each collection lines Group.Group that will 'wrap' the generated collection lines so that they have a different layout from the general stacked layoutbooleanWhen true, actions specified in lineActions will appear to the very right of the header (appears in the corner of the stacked item) by placing the actions in the Header's rightGroup.booleanFlag that indicates whether actions will be added in the same group as the line items instead of in the footer of the line groupvoidsetLineGroupPrototype(Group lineGroupPrototype) Setter for the line group prototypevoidsetRenderLineActionsInHeader(boolean renderLineActionsInHeader) voidsetRenderLineActionsInLineGroup(boolean actionsInLineGroup) Set flag to add actions in the same group as the line itemsvoidsetStackedGroups(List<Group> stackedGroups) Setter for the collection groupsvoidsetSummaryFields(List<String> summaryFields) Setter for the summary field name listvoidsetSummaryTitle(String summaryTitle) Setter for the summary title textvoidsetWrapperGroup(Group wrapperGroup) Setter for the wrapper group that will receive the generated line groupsMethods inherited from interface org.kuali.rice.krad.uif.layout.CollectionLayoutManager
buildLine, getAddLineGroup, getPagerWidget, getSelectFieldPrototype, getSubCollectionFieldGroupPrototype, processPagingRequest, setAddLineGroup, setPagerWidget, setSelectFieldPrototype, setSubCollectionFieldGroupPrototypeMethods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean
dataDictionaryPostProcessing, getComponentCode, getNamespaceCodeMethods inherited from interface org.kuali.rice.krad.uif.layout.LayoutManager
addStyleClass, appendToStyle, getAdditionalCssClasses, getCssClasses, getLibraryCssClasses, getPropertyReplacers, getStyle, getSupportedContainer, getTemplate, getTemplateName, setAdditionalCssClasses, setCssClasses, setLibraryCssClasses, setPropertyReplacers, setStyle, setTemplate, setTemplateNameMethods inherited from interface org.kuali.rice.krad.uif.util.LifecycleElement
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, skipLifecycleMethods inherited from interface org.kuali.rice.krad.datadictionary.uif.UifDictionaryBean
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
-
Method Details
-
getSummaryTitle
String getSummaryTitle()Text to appears in the header for each collection lines Group. Used in conjunction withgetSummaryFields()to build up the final header text- Returns:
- summary title text
-
setSummaryTitle
Setter for the summary title text- Parameters:
summaryTitle-
-
getSummaryFields
List of attribute names from the collection line class that should be used to build the line summary. To build the summary the value for each attribute is retrieved from the line instance. All the values are then placed together with a separator.- Returns:
- summary field names
- See Also:
-
setSummaryFields
Setter for the summary field name list- Parameters:
summaryFields-
-
getLineGroupPrototype
Group getLineGroupPrototype()Group instance that is used as a prototype for creating the collection line groups. For each line a copy of the prototype is made and then adjusted as necessary- Returns:
- Group instance to use as prototype
-
setLineGroupPrototype
Setter for the line group prototype- Parameters:
lineGroupPrototype-
-
getWrapperGroup
Group getWrapperGroup()Group that will 'wrap' the generated collection lines so that they have a different layout from the general stacked layoutBy default (when the wrapper group is null), each collection line will become a group and the groups are rendered one after another. If the wrapper group is configured, the generated groups will be inserted as the items for the wrapper group, and the layout manager configured for the wrapper group will determine how they are rendered. For example, the layout manager could be a grid layout configured for three columns, which would layout the first three lines horizontally then break to a new row.
- Returns:
- Group instance whose items list should be populated with the generated groups, or null to use the default layout
-
setWrapperGroup
Setter for the wrapper group that will receive the generated line groups- Parameters:
wrapperGroup-
-
getStackedGroups
FinalListof Groups to render for the collection- Returns:
- collection groups
-
getStackedGroupsNoWrapper
Used by reflection during the lifecycle to get groups for the lifecycle when not using a wrapper groupThere are no references to this method in the code, this is intentional. DO NOT REMOVE.
- Returns:
- the stacked groups, if any
-
setStackedGroups
Setter for the collection groups- Parameters:
stackedGroups-
-
isRenderLineActionsInLineGroup
boolean isRenderLineActionsInLineGroup()Flag that indicates whether actions will be added in the same group as the line items instead of in the footer of the line group- Returns:
- boolean
-
setRenderLineActionsInLineGroup
void setRenderLineActionsInLineGroup(boolean actionsInLineGroup) Set flag to add actions in the same group as the line items- Parameters:
actionsInLineGroup-
-
isRenderLineActionsInHeader
boolean isRenderLineActionsInHeader()When true, actions specified in lineActions will appear to the very right of the header (appears in the corner of the stacked item) by placing the actions in the Header's rightGroup.- Returns:
- true if rendering actions at the header level, false otherwise
-
setRenderLineActionsInHeader
void setRenderLineActionsInHeader(boolean renderLineActionsInHeader) - See Also:
-
getStyleClassesAsString
String getStyleClassesAsString()Get a string representation of all style classes defined by this layout manager.- Returns:
- string representing CSS classes
-