Class LineBuilderContext
java.lang.Object
org.kuali.rice.krad.uif.container.collections.LineBuilderContext
- All Implemented Interfaces:
Serializable
Holds components and configuration for a line during the build process.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty 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. -
Method Summary
Modifier and TypeMethodDescriptionPath to the line in the full model.Collection group the line is being built for.Object containing the line's data.Suffix to use for adjusting the ids on components within the line.Returns theCollectionLayoutManagerconfigured on the collection group.List of components to render in the lines action column.List of dialog groups that make up the lines dialogs.List of field instances that make up the lines columns.intIndex for the line within the collection, or -1 for the add line.getModel()Object containing the view's data.List of field groups that wrap the sub-collections for the line.booleanIndicates whether the line is the add line, or an existing collection line.booleanIndicates if the line fields bind to the form (not the default object path).voidsetBindingPath(String bindingPath) voidsetBindToForm(boolean bindToForm) voidsetCollectionGroup(CollectionGroup collectionGroup) voidsetCurrentLine(Object currentLine) voidsetLineActions(List<? extends Component> lineActions) voidsetLineDialogs(List<DialogGroup> dialogGroups) voidsetLineFields(List<Field> lineFields) voidsetLineIndex(int lineIndex) voidvoidsetSubCollectionFields(List<FieldGroup> subCollectionFields)
-
Constructor Details
-
LineBuilderContext
public LineBuilderContext()Empty constructor. -
LineBuilderContext
public LineBuilderContext(int lineIndex, Object currentLine, String bindingPath, boolean bindToForm, ViewModel model, CollectionGroup collectionGroup, List<? extends Component> lineActions) Constructor.- Parameters:
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 column
-
LineBuilderContext
public LineBuilderContext(int lineIndex, Object currentLine, String bindingPath, boolean bindToForm, ViewModel model, CollectionGroup collectionGroup, List<? extends Component> lineActions, List<DialogGroup> lineDialogs) Constructor.- Parameters:
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 line
-
-
Method Details
-
getIdSuffix
Suffix to use for adjusting the ids on components within the line.- Returns:
- String id suffix
-
isAddLine
public boolean isAddLine()Indicates whether the line is the add line, or an existing collection line.- Returns:
- boolean true if the line is the add line, false if not
-
getLayoutManager
Returns theCollectionLayoutManagerconfigured on the collection group.- Returns:
- collection layout manager instance
-
getLineIndex
public int getLineIndex()Index for the line within the collection, or -1 for the add line.- Returns:
- line index
-
setLineIndex
public void setLineIndex(int lineIndex) - See Also:
-
getCurrentLine
Object containing the line's data.- Returns:
- object instance
-
setCurrentLine
- See Also:
-
getBindingPath
Path to the line in the full model.- Returns:
- binding path
-
setBindingPath
- See Also:
-
isBindToForm
public boolean isBindToForm()Indicates if the line fields bind to the form (not the default object path).- Returns:
- boolean true if line fields bindi to the form, false if not
-
setBindToForm
public void setBindToForm(boolean bindToForm) - See Also:
-
getModel
Object containing the view's data.- Returns:
- model instance
-
setModel
- See Also:
-
getCollectionGroup
Collection group the line is being built for.- Returns:
- collection group instance
-
setCollectionGroup
- See Also:
-
getLineActions
List of components to render in the lines action column.- Returns:
- list of component instances
-
setLineActions
- See Also:
-
getLineFields
List of field instances that make up the lines columns.- Returns:
- list of field instances.
-
setLineFields
- See Also:
-
getSubCollectionFields
List of field groups that wrap the sub-collections for the line.- Returns:
- list of field groups instances
-
setSubCollectionFields
- See Also:
-
getLineDialogs
List of dialog groups that make up the lines dialogs.- Returns:
- list of field instances.
-
setLineDialogs
- See Also:
-