public class LineBuilderContext extends Object implements Serializable
CollectionGroupBuilder
,
CollectionGroupLineBuilder
,
Serialized FormConstructor and Description |
---|
LineBuilderContext()
Empty constructor.
|
LineBuilderContext(int lineIndex,
Object currentLine,
String bindingPath,
boolean bindToForm,
ViewModel model,
CollectionGroup collectionGroup,
List<? extends Component> lineActions)
Constructor.
|
LineBuilderContext(int lineIndex,
Object currentLine,
String bindingPath,
boolean bindToForm,
ViewModel model,
CollectionGroup collectionGroup,
List<? extends Component> lineActions,
List<DialogGroup> lineDialogs)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getBindingPath()
Path to the line in the full model.
|
CollectionGroup |
getCollectionGroup()
Collection group the line is being built for.
|
Object |
getCurrentLine()
Object containing the line's data.
|
String |
getIdSuffix()
Suffix to use for adjusting the ids on components within the line.
|
CollectionLayoutManager |
getLayoutManager()
Returns the
CollectionLayoutManager configured on the collection
group. |
List<? extends Component> |
getLineActions()
List of components to render in the lines action column.
|
List<DialogGroup> |
getLineDialogs()
List of dialog groups that make up the lines dialogs.
|
List<Field> |
getLineFields()
List of field instances that make up the lines columns.
|
int |
getLineIndex()
Index for the line within the collection, or -1 for the add line.
|
ViewModel |
getModel()
Object containing the view's data.
|
List<FieldGroup> |
getSubCollectionFields()
List of field groups that wrap the sub-collections for the line.
|
boolean |
isAddLine()
Indicates whether the line is the add line, or an existing collection line.
|
boolean |
isBindToForm()
Indicates if the line fields bind to the form (not the default object path).
|
void |
setBindingPath(String bindingPath) |
void |
setBindToForm(boolean bindToForm) |
void |
setCollectionGroup(CollectionGroup collectionGroup) |
void |
setCurrentLine(Object currentLine) |
void |
setLineActions(List<? extends Component> lineActions) |
void |
setLineDialogs(List<DialogGroup> dialogGroups) |
void |
setLineFields(List<Field> lineFields) |
void |
setLineIndex(int lineIndex) |
void |
setModel(ViewModel model) |
void |
setSubCollectionFields(List<FieldGroup> subCollectionFields) |
public LineBuilderContext()
public LineBuilderContext(int lineIndex, Object currentLine, String bindingPath, boolean bindToForm, ViewModel model, CollectionGroup collectionGroup, List<? extends Component> lineActions)
lineIndex
- index of linecurrentLine
- object containing the line databindingPath
- path to the line in the modelbindToForm
- indicates if the line fields bind to the form (not the default object path)model
- object containing the views datacollectionGroup
- collection group instance the line is being built forlineActions
- list of components for the lines action columnpublic LineBuilderContext(int lineIndex, Object currentLine, String bindingPath, boolean bindToForm, ViewModel model, CollectionGroup collectionGroup, List<? extends Component> lineActions, List<DialogGroup> lineDialogs)
lineIndex
- index of linecurrentLine
- object containing the line databindingPath
- path to the line in the modelbindToForm
- indicates if the line fields bind to the form (not the default object path)model
- object containing the views datacollectionGroup
- collection group instance the line is being built forlineActions
- list of components for the lines action columnlineDialogs
- list of dialogs configured on the linepublic String getIdSuffix()
public boolean isAddLine()
public CollectionLayoutManager getLayoutManager()
CollectionLayoutManager
configured on the collection
group.public int getLineIndex()
public void setLineIndex(int lineIndex)
getLineIndex()
public Object getCurrentLine()
public void setCurrentLine(Object currentLine)
getCurrentLine()
public String getBindingPath()
public void setBindingPath(String bindingPath)
getBindingPath()
public boolean isBindToForm()
public void setBindToForm(boolean bindToForm)
isBindToForm()
public void setModel(ViewModel model)
getModel()
public CollectionGroup getCollectionGroup()
public void setCollectionGroup(CollectionGroup collectionGroup)
getCollectionGroup()
public List<? extends Component> getLineActions()
public void setLineActions(List<? extends Component> lineActions)
getLineActions()
public List<Field> getLineFields()
public void setLineFields(List<Field> lineFields)
getLineFields()
public List<FieldGroup> getSubCollectionFields()
public void setSubCollectionFields(List<FieldGroup> subCollectionFields)
getSubCollectionFields()
public List<DialogGroup> getLineDialogs()
public void setLineDialogs(List<DialogGroup> dialogGroups)
org.kuali.rice.krad.uif.container.collections.LineBuilderContext#getDialogGroups()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.