Class CollectionLayoutManagerBase
- All Implemented Interfaces:
Serializable,Cloneable,Copyable,DictionaryBean,UifDictionaryBean,CollectionLayoutManager,LayoutManager,LifecycleElement
- Direct Known Subclasses:
StackedLayoutManagerBase,TableLayoutManagerBase
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
Fields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
componentCode, namespaceCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddEnterKeyDataAttributeToGroup(Group group, Map<String, Object> lineContext, ExpressionEvaluator expressionEvaluator, String enterKeyAction) Method to add and enter key add to the given Group.Group for rendering the add line when separate (always the case for stacked layout, and a configuration for table layout).Widget used to page the collection.Field instance that serves as a prototype for creating the select field on each line whenCollectionGroup.isIncludeLineSelectionField()is true.Field group instance that is used as a prototype for creating the sub-collection field groups.voidsetAddLineGroup(Group addLineGroup) voidsetPagerWidget(Pager pagerWidget) voidsetSelectFieldPrototype(Field selectFieldPrototype) voidsetSubCollectionFieldGroupPrototype(FieldGroup subCollectionFieldGroupPrototype) Methods inherited from class org.kuali.rice.krad.uif.layout.LayoutManagerBase
addStyleClass, appendToStyle, checkMutable, clone, getAdditionalCssClasses, getContainerIdSuffix, getContext, getCssClasses, getId, getLibraryCssClasses, getPhasePathMapping, getPropertyReplacers, getStyle, getStyleClassesAsString, getSupportedContainer, getTemplate, getTemplateName, getViewPath, getViewStatus, isFinal, isInitialized, isModelApplied, isMutable, isRender, notifyCompleted, performApplyModel, performFinalize, performInitialization, pushAllToContext, pushObjectToContext, setAdditionalCssClasses, setContainerIdSuffix, setContext, setCssClasses, setId, setLibraryCssClasses, setPhasePathMapping, setPropertyReplacers, setRender, setStyle, setStyleClasses, setTemplate, setTemplateName, setViewPath, setViewStatus, skipLifecycleMethods inherited from class org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressionsMethods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCodeMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.uif.layout.CollectionLayoutManager
buildLine, processPagingRequestMethods 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
-
Constructor Details
-
CollectionLayoutManagerBase
public CollectionLayoutManagerBase()
-
-
Method Details
-
getAddLineGroup
Group for rendering the add line when separate (always the case for stacked layout, and a configuration for table layout).This group can be used to configure how the add line will be rendered. For example the layout manager configured on the group will be used to rendered the add line fields. If the header (title) is not set on the group, it will be set from
CollectionGroup.getAddLabel(). In addition,CollectionGroup.getAddLineActions()will be added to the group footer items.- Specified by:
getAddLineGroupin interfaceCollectionLayoutManager- Returns:
- Group instance for the collection add line
-
setAddLineGroup
- Specified by:
setAddLineGroupin interfaceCollectionLayoutManager- See Also:
-
addEnterKeyDataAttributeToGroup
protected void addEnterKeyDataAttributeToGroup(Group group, Map<String, Object> lineContext, ExpressionEvaluator expressionEvaluator, String enterKeyAction) Method to add and enter key add to the given Group. Will use given lineContext and expressionEvaluator if action string starts with '@{'.- Parameters:
group-lineContext-expressionEvaluator-enterKeyAction-
-
getSelectFieldPrototype
Field instance that serves as a prototype for creating the select field on each line whenCollectionGroup.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 useUifFormBase.getSelectedCollectionLines()- Specified by:
getSelectFieldPrototypein interfaceCollectionLayoutManager- Returns:
- select field prototype instance
-
setSelectFieldPrototype
- Specified by:
setSelectFieldPrototypein interfaceCollectionLayoutManager- See Also:
-
getSubCollectionFieldGroupPrototype
Field group instance that is used as a prototype for creating the sub-collection field groups.- Specified by:
getSubCollectionFieldGroupPrototypein interfaceCollectionLayoutManager- Returns:
- GroupField instance to use as prototype
-
setSubCollectionFieldGroupPrototype
- Specified by:
setSubCollectionFieldGroupPrototypein interfaceCollectionLayoutManager- See Also:
-
getPagerWidget
Widget used to page the collection.The settings in this widget are only used by TableLayoutManagers which DO NOT take advantage of the RichTable option (this has its own paging implementation). To turn off RichTable and use a basic table with server paging set richTable.render="false" and useServerPaging="true" on the CollectionGroup which uses this layout manager.
- Specified by:
getPagerWidgetin interfaceCollectionLayoutManager- Returns:
- the Pager widget
-
setPagerWidget
- Specified by:
setPagerWidgetin interfaceCollectionLayoutManager- See Also:
-