public abstract class CollectionLayoutManagerBase extends LayoutManagerBase implements CollectionLayoutManager
componentCode, namespaceCode
Constructor and Description |
---|
CollectionLayoutManagerBase() |
Modifier and Type | Method and Description |
---|---|
protected void |
addEnterKeyDataAttributeToGroup(Group group,
Map<String,Object> lineContext,
ExpressionEvaluator expressionEvaluator,
String enterKeyAction)
Method to add and enter key add to the given Group.
|
Group |
getAddLineGroup()
Group for rendering the add line when separate (always the case for stacked layout, and a configuration
for table layout).
|
Pager |
getPagerWidget()
Widget used to page the collection.
|
Field |
getSelectFieldPrototype()
Field instance that serves as a prototype for creating the select field on each line when
CollectionGroup.isIncludeLineSelectionField() is
true. |
FieldGroup |
getSubCollectionFieldGroupPrototype()
Field group instance that is used as a prototype for creating the sub-collection field groups.
|
void |
setAddLineGroup(Group addLineGroup) |
void |
setPagerWidget(Pager pagerWidget) |
void |
setSelectFieldPrototype(Field selectFieldPrototype) |
void |
setSubCollectionFieldGroupPrototype(FieldGroup subCollectionFieldGroupPrototype) |
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, skipLifecycle
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildLine, processPagingRequest
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
public CollectionLayoutManagerBase()
public Group getAddLineGroup()
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.
getAddLineGroup
in interface CollectionLayoutManager
public void setAddLineGroup(Group addLineGroup)
setAddLineGroup
in interface CollectionLayoutManager
CollectionLayoutManager.getAddLineGroup()
protected void addEnterKeyDataAttributeToGroup(Group group, Map<String,Object> lineContext, ExpressionEvaluator expressionEvaluator, String enterKeyAction)
group
- lineContext
- expressionEvaluator
- enterKeyAction
- @ViewLifecycleRestriction(value="INITIALIZE") public 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 interface CollectionLayoutManager
public void setSelectFieldPrototype(Field selectFieldPrototype)
setSelectFieldPrototype
in interface CollectionLayoutManager
CollectionLayoutManager.getSelectFieldPrototype()
@ViewLifecycleRestriction(value="INITIALIZE") public FieldGroup getSubCollectionFieldGroupPrototype()
getSubCollectionFieldGroupPrototype
in interface CollectionLayoutManager
public void setSubCollectionFieldGroupPrototype(FieldGroup subCollectionFieldGroupPrototype)
setSubCollectionFieldGroupPrototype
in interface CollectionLayoutManager
CollectionLayoutManager.getSubCollectionFieldGroupPrototype()
public Pager getPagerWidget()
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.
getPagerWidget
in interface CollectionLayoutManager
public void setPagerWidget(Pager pagerWidget)
setPagerWidget
in interface CollectionLayoutManager
CollectionLayoutManager.getPagerWidget()
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.