public interface CollectionLayoutManager extends LayoutManager
Component
instances
Unlike other Group
instances, CollectionGroup
instances need to generate new instances of the configured components for
each line of the collection. The Field
instances for each line
are wrapped differently depending on what LayoutManager
is being
applied. Therefore as the collection lines are being built (during the
applyModel phase) this method will be invoked on the manager so that it may
setup the line as needed.
CollectionGroupBuilder
Modifier and Type | Method and Description |
---|---|
void |
buildLine(View view,
Object model,
CollectionGroup collectionGroup,
List<Field> lineFields,
List<FieldGroup> subCollectionFields,
String bindingPath,
List<ActionField> actions,
String idSuffix,
Object currentLine,
int lineIndex)
Call to the layout manager to build the components necessary for the
given collection line
|
FieldGroup |
getSubCollectionFieldGroupPrototype()
Field group instance that is used as a prototype for creating the
sub-collection field groups.
|
addStyleClass, getComponentPrototypes, getComponentsForLifecycle, getContext, getId, getPropertiesForReferenceCopy, getPropertyReplacers, getStyle, getStyleClasses, getSupportedContainer, getTemplate, performApplyModel, performFinalize, performInitialization, pushObjectToContext, setContext, setId, setPropertyReplacers, setStyle, setStyleClasses, setTemplate
getPropertyExpression, getPropertyExpressions, setPropertyExpressions
void buildLine(View view, Object model, CollectionGroup collectionGroup, List<Field> lineFields, List<FieldGroup> subCollectionFields, String bindingPath, List<ActionField> actions, String idSuffix, Object currentLine, int lineIndex)
As the collection is being iterated over by the
CollectionGroupBuilder
this method is invoked for each line.
The builder will create copies of the configured fields and actions for
the line and pass into the layout manager so they can be assembled
view
- - view instance the collection belongs tomodel
- - object containing the datacollectionGroup
- - collection group the layout manager applies tolineFields
- - the field instances for the collection line which were
copied from the collection groups items, id and binding
already updatedsubCollectionFields
- - group field instances for each sub collection of the current
linebindingPath
- - binding path for the groups items (if DataBinding)actions
- - list of action instances for the collection line, with id
and binding updatedidSuffix
- - suffix to use for any generated itemscurrentLine
- - object instance for the current line, or null if add linelineIndex
- - index of the collection line being iterated over, or -1 if
the add lineFieldGroup getSubCollectionFieldGroupPrototype()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.