|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CollectionLayoutManager
Layout manager implementations that work with a collection (such as a table
layout) should implement this interface for building the collection
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
Method Summary | |
---|---|
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. |
Methods inherited from interface org.kuali.rice.krad.uif.layout.LayoutManager |
---|
addStyleClass, getComponentPrototypes, getComponentsForLifecycle, getContext, getId, getPropertiesForReferenceCopy, getPropertyReplacers, getStyle, getStyleClasses, getSupportedContainer, getTemplate, performApplyModel, performFinalize, performInitialization, pushObjectToContext, setContext, setId, setPropertyReplacers, setStyle, setStyleClasses, setTemplate |
Methods inherited from interface org.kuali.rice.krad.uif.component.Configurable |
---|
getPropertyExpression, getPropertyExpressions, setPropertyExpressions |
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |