Interface CollectionGroup
- All Superinterfaces:
Cloneable,Component,Container,Copyable,DataBinding,DictionaryBean,Group,Helpable,LifecycleElement,Ordered,org.springframework.core.Ordered,ScriptEventSupport,Serializable,UifDictionaryBean
- All Known Implementing Classes:
CollectionGroupBase
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
Fields inherited from interface org.kuali.rice.krad.uif.component.Ordered
INITIAL_ORDER_VALUEFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptionvoidcompleteValidation(ValidationTrace tracer) Validates different requirements of component compiling a series of reports detailing information on errors found in the component.Collection filter instance for filtering the collection data when the showInactive flag is set to falseThe add blank lineActionfield rendered when renderAddBlankLineButton is trueThe css style class that will be added on the add item group or rowConvenience getter for the add line label field text.Component fields that should be rendered for the add line.BindingInfoinstance for the add line property used to determine the full binding path.Dialog group to use for the add line whenisAddWithDialog()is true.Get the id of the add line action to invoke when the enter key is pressed.List ofComponentinstances that should be rendered for the collection add line (if enabled).Messageinstance for the add line labelIndicates the add line placementName of the property that contains an instance for the add line.TheActionthat will be displayed that will open the add line group in a dialog.CollectionGroupBuilderinstance that will build the components dynamically for the collection instanceCollection Security object that indicates what authorization (permissions) exist for the collectionInstance of theQuickFinderwidget that configures a multi-value lookup for the collectionClass<?> Object class the collection maintains.intThe number of records to display for a collectionintGets the displayLength, the number of items to display on the page (assuming useServerPaging is enabled).intGets the displayStart, the index of the first item to display on the page (assuming useServerPaging is enabled).List of property names that should be checked for duplicates in the collection.TheActionthat will be displayed within the edit line group in a dialog.Dialog group prototype to use to create the edit line dialog whenisEditWithDialog()is true.TheActionthat will be displayed that will open the edit line group in a dialog.intGets the number of un-filtered elements from the model collection.List ofCollectionFilterinstances that should be invoked to filter the collection before displayingAction fields that should be rendered for each collection line.List of dialog groups that are configured for a line in the collection.Get the id of the nonAdd line action to invoke when the enter key is pressed.WhenisIncludeLineSelectionField()is true, gives the name of the property the select field should bind toThe css style class that will be added on new itemsintList ofCollectionGroupinstances that are sub-collections of the collection represented by this collection groupList ofBindingInfoinstances that represent lines not authorized to be viewed or edited by the user.voidinitializeNewCollectionLine(View view, Object model, CollectionGroup collectionGroup, boolean clearExistingLine) New collection lines are handled in the framework by maintaining a map on the form.booleanIndicates that a add action should be rendered and that the add group be displayed in a model dialog.booleanIndicates that a custom edit line dialog is provided by the user.booleanbooleanIndicates that an edit action should be rendered and that the edit group be displayed in a model dialog.booleanIndicates whether the add item group or row should be styled with the #addItemCssClassbooleanIndicates whether new items should be styled with the #newItemsCssClassbooleanIndicates whether lines of the collection group should be selected by rendering a field for each line that will allow selectionbooleanIndicates that a button will be rendered that allows the user to add blank lines to the collectionbooleanIndicates whether an add line should be rendered for the collectionbooleanbooleanIndicates whether the action column for the collection should be renderedbooleanIndicates whether the save line actions should be renderedbooleanIndicates whether inactive collections lines should be displayedbooleanGets useServerPaging, the flag that indicates whether server side paging is enabled.booleanvoidSets a reference in the context map for all nested components in the collection group instance, and sets selected collection path and id data attributes on nested actions of this group.voidsetActiveCollectionFilter(CollectionFilter activeCollectionFilter) Setter for the collection filter to use for filter inactive records from the collectionvoidsetAddBlankLineAction(Action addBlankLineAction) Setter for the add blank lineActionfieldvoidsetAddItemCssClass(String addItemCssClass) Setter for the add item css style classvoidsetAddLabel(String addLabelText) Setter for the add line label textvoidsetAddLineActions(List<? extends Component> addLineActions) Setter for the add line action components fieldsvoidsetAddLineBindingInfo(BindingInfo addLineBindingInfo) Setter for the add line binding infovoidsetAddLineDialog(DialogGroup addLineDialog) voidsetAddLineEnterKeyAction(String addLineEnterKeyAction) voidsetAddLineItems(List<? extends Component> addLineItems) Setter for the add line field listvoidsetAddLineLabel(Message addLineLabel) Setter for theMessageinstance for the add line labelvoidsetAddLinePlacement(String addLinePlacement) Setter for the add line placementvoidsetAddLinePropertyName(String addLinePropertyName) Setter for the add line property namevoidsetAddWithDialog(boolean addWithDialog) voidsetAddWithDialogAction(Action addViaLightBoxAction) voidsetCollectionGroupBuilder(CollectionGroupBuilder collectionGroupBuilder) Setter for the collection group building instancevoidsetCollectionLookup(QuickFinder collectionLookup) Setter for the collection lookup quickfinder instancevoidsetCollectionObjectClass(Class<?> collectionObjectClass) Setter for the collection object classvoidsetComponentSecurity(ComponentSecurity componentSecurity) Override to assert aCollectionGroupSecurityinstance is setvoidsetCustomEditLineDialog(boolean customEditLineDialog) voidsetDisplayCollectionSize(int displayCollectionSize) Setter for the display collection sizevoidsetDisplayLength(int displayLength) Sets the displayLength, the number of items to display on the page (assuming useServerPaging is enabled).voidsetDisplayStart(int displayStart) Sets the displayStart, the index of the first item to display on the page (assuming useServerPaging is enabled).voidsetDuplicateLinePropertyNames(List<String> duplicateLinePropertyNames) voidsetEditInDialogSaveActionPrototype(Action editInDialogSaveActionPrototype) voidsetEditLineAuthz(boolean editLineAuthz) voidsetEditLineDialogPrototype(DialogGroup editLineDialogPrototype) voidsetEditWithDialog(boolean editWithDialog) voidsetEditWithDialogActionPrototype(Action editWithDialogActionPrototype) voidsetFilteredCollectionSize(int filteredCollectionSize) Sets the number of un-filtered elements from the model collection.voidsetFilters(List<CollectionFilter> filters) Setter for the List of collection filters for which the collection will be filtered againstvoidsetHighlightAddItem(boolean highlightAddItem) Setter for the flag that allows for different styling of the add item group or rowvoidsetHighlightNewItems(boolean highlightNewItems) Setter for the flag that allows for different styling of new itemsvoidsetIncludeLineSelectionField(boolean includeLineSelectionField) Setter for the render selected field indicatorvoidsetLineActions(List<? extends Component> lineActions) Setter for the line action fields listvoidsetLineDialogs(List<DialogGroup> dialogGroups) voidsetLineEnterKeyAction(String lineEnterKeyAction) voidsetLineSelectPropertyName(String lineSelectPropertyName) Setter for the property name that will bind to the select fieldvoidsetNewItemsCssClass(String newItemsCssClass) Setter for the new items css style classvoidsetPageSize(int pageSize) voidsetPropertyName(String propertyName) Setter for the collections property namevoidsetRenderAddBlankLineButton(boolean renderAddBlankLineButton) Setter for the flag indicating that the add blank line button must be renderedvoidsetRenderAddLine(boolean renderAddLine) Setter for the render add line indicatorvoidsetRenderInactiveToggleButton(boolean renderInactiveToggleButton) voidsetRenderLineActions(boolean renderLineActions) Setter for the render line actions indicatorvoidsetRenderSaveLineActions(boolean renderSaveLineActions) Setter for the flag indicating whether the save actions should be renderedvoidsetShowInactiveLines(boolean showInactiveLines) Setter for the show inactive indicatorvoidsetSubCollections(List<CollectionGroup> subCollections) Setter for the sub collection listvoidsetUnauthorizedLineBindingInfos(List<BindingInfo> unauthorizedLineBindingInfos) voidsetUseServerPaging(boolean useServerPaging) Sets useServerPaging, the flag indicating whether server side paging is enabled.voidsetViewLineAuthz(boolean viewLineAuthz) Methods inherited from interface org.kuali.rice.krad.uif.component.Component
addAriaAttribute, addDataAttribute, addScriptDataAttribute, addStyleClass, addWrapperCssClass, afterEvaluateExpression, appendToStyle, getAdditionalComponentsToRefresh, getAdditionalComponentsToRefreshJs, getAdditionalCssClasses, getAdditionalTemplates, getAlign, getAriaAttributes, getAriaAttributesAsString, getCanCopyOnReadOnly, getCellWidth, getColSpan, getComponentModifiers, getComponentSecurity, getComponentTypeName, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContext, getCssClasses, getCssGridSizes, getDataAttributes, getEventHandlerScript, getExcludeIf, getExcludeUnless, getFieldsToSendOnRefresh, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getLibraryCssClasses, getMethodToCallOnRefresh, getOrder, getPostRenderContent, getPreRenderContent, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertyReplacerComponents, getPropertyReplacers, getReadOnly, getRefreshTimer, getRefreshWhenChangedPropertyNames, getRenderedHtmlOutput, getRequired, getRole, getRowSpan, getScriptDataAttributes, getScriptDataAttributesJs, getSimpleDataAttributes, getStyle, getStyleClassesAsString, getTemplate, getTemplateName, getTemplateOptions, getTemplateOptionsJSString, getTitle, getToolTip, getValign, getWidth, getWrapperCssClasses, getWrapperStyle, isDisableSessionPersistence, isDisclosedByAction, isForceSessionPersistence, isHidden, isOmitFromFormPost, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isRefreshedByAction, isRendered, isResetDataOnRefresh, isRetrieveViaAjax, isSelfRendered, setAdditionalComponentsToRefresh, setAdditionalCssClasses, setAlign, setAriaAttributes, setCanCopyOnReadOnly, setCellWidth, setColSpan, setComponentModifiers, setConditionalRefresh, setContext, setCssClasses, setCssGridSizes, setDataAttributes, setDisableSessionPersistence, setDisclosedByAction, setFieldsToSendOnRefresh, setForceSessionPersistence, setHidden, setLibraryCssClasses, setOmitFromFormPost, setOrder, setPostRenderContent, setPreRenderContent, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefreshedByAction, setRefreshTimer, setRefreshWhenChangedPropertyNames, setRenderedHtmlOutput, setRequired, setResetDataOnRefresh, setRetrieveViaAjax, setRole, setRowSpan, setScriptDataAttributes, setSelfRendered, setStyle, setTemplate, setTemplateName, setTemplateOptions, setTemplateOptionsJSString, setTitle, setToolTip, setValign, setViewStatus, setWidth, setWrapperCssClasses, setWrapperStyleMethods inherited from interface org.kuali.rice.krad.uif.container.Container
getEnterKeyAction, getFooter, getHeader, getInstructionalMessage, getItems, getLayoutManager, getSupportedComponents, getValidationMessages, isProcessRemoteFieldHolders, setEnterKeyAction, setFooter, setHeader, setInstructionalMessage, setItems, setLayoutManager, setValidationMessages, sortItemsMethods inherited from interface org.kuali.rice.krad.uif.component.DataBinding
getBindingInfo, getPropertyName, setBindingInfoMethods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean
dataDictionaryPostProcessing, getComponentCode, getNamespaceCodeMethods inherited from interface org.kuali.rice.krad.uif.container.Group
getDisclosure, getFieldBindByNamePrefix, getFieldBindingObjectPath, getHeaderText, getScrollpane, getWrapperTag, isRenderLoading, setDisclosure, setFieldBindByNamePrefix, setFieldBindingObjectPath, setHeaderText, setRenderFooter, setScrollpane, setWrapperTagMethods inherited from interface org.kuali.rice.krad.uif.widget.Helpable
getHelp, getHelpTitle, setHelp, setTooltipOfComponentMethods inherited from interface org.kuali.rice.krad.uif.util.LifecycleElement
checkMutable, getContainerIdSuffix, getId, getPhasePathMapping, getViewPath, getViewStatus, isFinal, isInitialized, isModelApplied, isMutable, isRender, notifyCompleted, performApplyModel, performFinalize, performInitialization, pushAllToContext, pushObjectToContext, setContainerIdSuffix, setId, setPhasePathMapping, setRender, setViewPath, skipLifecycleMethods inherited from interface org.kuali.rice.krad.uif.component.ScriptEventSupport
getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnInputScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, setOnBlurScript, setOnChangeScript, setOnClickScript, setOnCloseScript, setOnDblClickScript, setOnDocumentReadyScript, setOnFocusScript, setOnInputScript, setOnKeyDownScript, setOnKeyPressScript, setOnKeyUpScript, setOnLoadScript, setOnMouseDownScript, setOnMouseMoveScript, setOnMouseOutScript, setOnMouseOverScript, setOnMouseUpScript, setOnSubmitScript, setOnUnloadScriptMethods inherited from interface org.kuali.rice.krad.datadictionary.uif.UifDictionaryBean
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
-
Method Details
-
pushCollectionGroupToReference
void pushCollectionGroupToReference()Sets a reference in the context map for all nested components in the collection group instance, and sets selected collection path and id data attributes on nested actions of this group. -
initializeNewCollectionLine
void initializeNewCollectionLine(View view, Object model, CollectionGroup collectionGroup, boolean clearExistingLine) New collection lines are handled in the framework by maintaining a map on the form. The map contains as a key the collection name, and as value an instance of the collection type. An entry is created here for the collection represented by theCollectionGroupif an instance is not available (clearExistingLine will force a new instance). The given model must be a subclass ofUifFormBasein order to find the Map.- Parameters:
model- Model instance that contains the new collection lines MapclearExistingLine- boolean that indicates whether the line should be set to a new instance if it already exists
-
getCollectionObjectClass
Class<?> getCollectionObjectClass()Object class the collection maintains. Used to get dictionary information in addition to creating new instances for the collection when necessary- Returns:
- collection object class
-
setCollectionObjectClass
Setter for the collection object class- Parameters:
collectionObjectClass-
-
setPropertyName
Setter for the collections property name- Parameters:
propertyName-
-
getLineActions
Action fields that should be rendered for each collection line. Example line action is the delete action- Returns:
- line action fields
-
setLineActions
Setter for the line action fields list- Parameters:
lineActions-
-
isRenderLineActions
boolean isRenderLineActions()Indicates whether the action column for the collection should be rendered- Returns:
- true if the actions should be rendered, false if not
- See Also:
-
setRenderLineActions
void setRenderLineActions(boolean renderLineActions) Setter for the render line actions indicator- Parameters:
renderLineActions-
-
isRenderAddLine
boolean isRenderAddLine()Indicates whether an add line should be rendered for the collection- Returns:
- true if add line should be rendered, false if it should not be
-
setRenderAddLine
void setRenderAddLine(boolean renderAddLine) Setter for the render add line indicator- Parameters:
renderAddLine-
-
getAddLineEnterKeyAction
String getAddLineEnterKeyAction()Get the id of the add line action to invoke when the enter key is pressed.Use '@DEFAULT' if supposed to use first action where 'defaultEnterKeyAction' property is set to true.
- Returns:
- id or '@DEFAULT'
-
setAddLineEnterKeyAction
- See Also:
-
getLineEnterKeyAction
String getLineEnterKeyAction()Get the id of the nonAdd line action to invoke when the enter key is pressed.Use '@DEFAULT' if supposed to use first action where 'defaultEnterKeyAction' property is set to true. In a collection may have to use SpringEL to identify line ID values. Here is a sample value: DemoButton@{#lineSuffix}. Notice the use of '@{#lineSuffix}' to help append line suffix information.
- Returns:
- id or '@DEFAULT'
-
setLineEnterKeyAction
- See Also:
-
getAddLabel
String getAddLabel()Convenience getter for the add line label field text. The text is used to label the add line when rendered and its placement depends on theLayoutManagerFor the
TableLayoutManagerthe label appears in the sequence column to the left of the add line fields. For theStackedLayoutManagerthe label is placed into the group header for the line.- Returns:
- add line label
-
setAddLabel
Setter for the add line label text- Parameters:
addLabelText-
-
getAddLineLabel
Message getAddLineLabel()Messageinstance for the add line label- Returns:
- add line Message
- See Also:
-
setAddLineLabel
Setter for theMessageinstance for the add line label- Parameters:
addLineLabel-- See Also:
-
getAddLinePropertyName
String getAddLinePropertyName()Name of the property that contains an instance for the add line. If set this is used with the binding info to create the path to the add line. Can be left blank in which case the framework will manage the add line instance in a generic map.- Returns:
- add line property name
-
setAddLinePropertyName
Setter for the add line property name- Parameters:
addLinePropertyName-
-
getAddLineBindingInfo
BindingInfo getAddLineBindingInfo()BindingInfoinstance for the add line property used to determine the full binding path. If add line name givengetAddLabel()then it is set as the binding name on the binding info. Add line label and binding info are not required, in which case the framework will manage the new add line instances through a generic map (model must extend UifFormBase)- Returns:
- BindingInfo add line binding info
-
setAddLineBindingInfo
Setter for the add line binding info- Parameters:
addLineBindingInfo-
-
getAddLineItems
List ofComponentinstances that should be rendered for the collection add line (if enabled). If not set, the default group's items list will be used- Returns:
- add line field list
- See Also:
-
setAddLineItems
Setter for the add line field list- Parameters:
addLineItems-
-
getAddLineActions
Component fields that should be rendered for the add line.This is generally the add action (button) but can be configured to contain additional components
- Returns:
- add line action fields
-
setAddLineActions
Setter for the add line action components fields- Parameters:
addLineActions-
-
isIncludeLineSelectionField
boolean isIncludeLineSelectionField()Indicates whether lines of the collection group should be selected by rendering a field for each line that will allow selectionFor example, having the select field enabled could allow selecting multiple lines from a search to return (multi-value lookup)
- Returns:
- true if select field should be rendered, false if not
-
setIncludeLineSelectionField
void setIncludeLineSelectionField(boolean includeLineSelectionField) Setter for the render selected field indicator- Parameters:
includeLineSelectionField-
-
getLineSelectPropertyName
String getLineSelectPropertyName()WhenisIncludeLineSelectionField()is true, gives the name of the property the select field should bind toNote if no prefix is given in the property name, such as 'form.', it is assumed the property is contained on the collection line. In this case the binding path to the collection line will be appended. In other cases, it is assumed the property is a list or set of String that will hold the selected identifier strings
This property is not required. If not the set the framework will use a property contained on
UifFormBase- Returns:
- property name for select field
-
setLineSelectPropertyName
Setter for the property name that will bind to the select field- Parameters:
lineSelectPropertyName-
-
getCollectionLookup
QuickFinder getCollectionLookup()Instance of theQuickFinderwidget that configures a multi-value lookup for the collectionIf the collection lookup is enabled (by the render property of the quick finder),
getCollectionObjectClass()will be used as the data object class for the lookup (if not set). Field conversions need to be set as usual and will be applied for each line returned- Returns:
- instance configured for the collection lookup
-
setCollectionLookup
Setter for the collection lookup quickfinder instance- Parameters:
collectionLookup-
-
isShowInactiveLines
boolean isShowInactiveLines()Indicates whether inactive collections lines should be displayedSetting only applies when the collection line type implements the
Inactivatableinterface. If true and showInactive is set to false, the collection will be filtered to remove any items whose active status returns false- Returns:
- true to show inactive records, false to not render inactive records
-
setShowInactiveLines
void setShowInactiveLines(boolean showInactiveLines) Setter for the show inactive indicator- Parameters:
showInactiveLines- boolean show inactive
-
getActiveCollectionFilter
CollectionFilter getActiveCollectionFilter()Collection filter instance for filtering the collection data when the showInactive flag is set to false- Returns:
- CollectionFilter
-
setActiveCollectionFilter
Setter for the collection filter to use for filter inactive records from the collection- Parameters:
activeCollectionFilter- CollectionFilter instance
-
getFilters
List<CollectionFilter> getFilters()List ofCollectionFilterinstances that should be invoked to filter the collection before displaying- Returns:
- List<CollectionFilter>
-
setFilters
Setter for the List of collection filters for which the collection will be filtered against -
getDuplicateLinePropertyNames
List of property names that should be checked for duplicates in the collection.- Returns:
- the list of property names that should be checked for duplicates in the collection
-
setDuplicateLinePropertyNames
- See Also:
-
getUnauthorizedLineBindingInfos
List<BindingInfo> getUnauthorizedLineBindingInfos()List ofBindingInfoinstances that represent lines not authorized to be viewed or edited by the user. -
setUnauthorizedLineBindingInfos
- See Also:
-
getSubCollections
List<CollectionGroup> getSubCollections()List ofCollectionGroupinstances that are sub-collections of the collection represented by this collection group- Returns:
- sub collections
-
setSubCollections
Setter for the sub collection list -
getCollectionGroupSecurity
CollectionGroupSecurity getCollectionGroupSecurity()Collection Security object that indicates what authorization (permissions) exist for the collection- Returns:
- CollectionGroupSecurity instance
-
setComponentSecurity
Override to assert aCollectionGroupSecurityinstance is set- Specified by:
setComponentSecurityin interfaceComponent- Parameters:
componentSecurity- instance of CollectionGroupSecurity
-
isEditLineAuthz
boolean isEditLineAuthz()- See Also:
-
setEditLineAuthz
void setEditLineAuthz(boolean editLineAuthz) - See Also:
-
isViewLineAuthz
boolean isViewLineAuthz()- See Also:
-
setViewLineAuthz
void setViewLineAuthz(boolean viewLineAuthz) - See Also:
-
getCollectionGroupBuilder
CollectionGroupBuilder getCollectionGroupBuilder()CollectionGroupBuilderinstance that will build the components dynamically for the collection instance- Returns:
- CollectionGroupBuilder instance
-
setCollectionGroupBuilder
Setter for the collection group building instance- Parameters:
collectionGroupBuilder-
-
setRenderInactiveToggleButton
void setRenderInactiveToggleButton(boolean renderInactiveToggleButton) - Parameters:
renderInactiveToggleButton- the showHideInactiveButton to set
-
isRenderInactiveToggleButton
boolean isRenderInactiveToggleButton()- Returns:
- the showHideInactiveButton
-
getDisplayCollectionSize
int getDisplayCollectionSize()The number of records to display for a collection- Returns:
- int
-
setDisplayCollectionSize
void setDisplayCollectionSize(int displayCollectionSize) Setter for the display collection size- Parameters:
displayCollectionSize-
-
isHighlightNewItems
boolean isHighlightNewItems()Indicates whether new items should be styled with the #newItemsCssClass- Returns:
- true if new items must be highlighted
-
setHighlightNewItems
void setHighlightNewItems(boolean highlightNewItems) Setter for the flag that allows for different styling of new items- Parameters:
highlightNewItems-
-
getNewItemsCssClass
String getNewItemsCssClass()The css style class that will be added on new items- Returns:
- the new items css style class
-
setNewItemsCssClass
Setter for the new items css style class- Parameters:
newItemsCssClass-
-
getAddItemCssClass
String getAddItemCssClass()The css style class that will be added on the add item group or row- Returns:
- the add item group or row css style class
-
setAddItemCssClass
Setter for the add item css style class- Parameters:
addItemCssClass-
-
isHighlightAddItem
boolean isHighlightAddItem()Indicates whether the add item group or row should be styled with the #addItemCssClass- Returns:
- true if add item group or row must be highlighted
-
setHighlightAddItem
void setHighlightAddItem(boolean highlightAddItem) Setter for the flag that allows for different styling of the add item group or row- Parameters:
highlightAddItem-
-
isRenderAddBlankLineButton
boolean isRenderAddBlankLineButton()Indicates that a button will be rendered that allows the user to add blank lines to the collectionThe button will be added separately from the collection items. The default add line wil not be rendered. The action of the button will call the controller, add the blank line to the collection and do a component refresh.
- Returns:
- boolean
-
setRenderAddBlankLineButton
void setRenderAddBlankLineButton(boolean renderAddBlankLineButton) Setter for the flag indicating that the add blank line button must be rendered- Parameters:
renderAddBlankLineButton-
-
getAddBlankLineAction
Action getAddBlankLineAction()The add blank lineActionfield rendered when renderAddBlankLineButton is true- Returns:
- boolean
-
setAddBlankLineAction
Setter for the add blank lineActionfield- Parameters:
addBlankLineAction-
-
getAddLinePlacement
String getAddLinePlacement()Indicates the add line placementValid values are 'TOP' or 'BOTTOM'. The default is 'TOP'. When the value is 'BOTTOM' the blank line will be added to the end of the collection.
- Returns:
- the add blank line action placement
-
setAddLinePlacement
Setter for the add line placement- Parameters:
addLinePlacement- add line placement string
-
isRenderSaveLineActions
boolean isRenderSaveLineActions()Indicates whether the save line actions should be rendered- Returns:
- boolean
-
setRenderSaveLineActions
void setRenderSaveLineActions(boolean renderSaveLineActions) Setter for the flag indicating whether the save actions should be rendered- Parameters:
renderSaveLineActions-
-
isAddWithDialog
boolean isAddWithDialog()Indicates that a add action should be rendered and that the add group be displayed in a model dialog.- Returns:
- boolean true if add should be through model dialog, false if not
-
setAddWithDialog
void setAddWithDialog(boolean addWithDialog) - See Also:
-
getAddWithDialogAction
Action getAddWithDialogAction()TheActionthat will be displayed that will open the add line group in a dialog.- Returns:
- Action
-
setAddWithDialogAction
- See Also:
-
getAddLineDialog
DialogGroup getAddLineDialog()Dialog group to use for the add line whenisAddWithDialog()is true.If dialog group is not set by add with dialog is true, a default dialog group will be created.
The add line items and actions are still used as usual, unless the items and footer items have been explicity set in the dialog group
- Returns:
- dialog group instance for add line
-
setAddLineDialog
- See Also:
-
isUseServerPaging
boolean isUseServerPaging()Gets useServerPaging, the flag that indicates whether server side paging is enabled. Defaults to false.- Returns:
- true if server side paging is enabled.
-
setUseServerPaging
void setUseServerPaging(boolean useServerPaging) Sets useServerPaging, the flag indicating whether server side paging is enabled.- Parameters:
useServerPaging- the useServerPaging value to set
-
getPageSize
int getPageSize() -
setPageSize
void setPageSize(int pageSize) -
getDisplayStart
int getDisplayStart()Gets the displayStart, the index of the first item to display on the page (assuming useServerPaging is enabled).if this field has not been set, the returned value will be -1
- Returns:
- the index of the first item to display, or -1 if unset
-
setDisplayStart
void setDisplayStart(int displayStart) Sets the displayStart, the index of the first item to display on the page (assuming useServerPaging is enabled).- Parameters:
displayStart- the displayStart to set
-
getDisplayLength
int getDisplayLength()Gets the displayLength, the number of items to display on the page (assuming useServerPaging is enabled).if this field has not been set, the returned value will be -1
- Returns:
- the number of items to display on the page, or -1 if unset
-
setDisplayLength
void setDisplayLength(int displayLength) Sets the displayLength, the number of items to display on the page (assuming useServerPaging is enabled).- Parameters:
displayLength- the displayLength to set
-
getFilteredCollectionSize
int getFilteredCollectionSize()Gets the number of un-filtered elements from the model collection.if this field has not been set, the returned value will be -1
- Returns:
- the filtered collection size, or -1 if unset
-
setFilteredCollectionSize
void setFilteredCollectionSize(int filteredCollectionSize) Sets the number of un-filtered elements from the model collection.This value is used for display and rendering purposes, it has no effect on the model collection
- Parameters:
filteredCollectionSize- the filtered collection size
-
completeValidation
Description copied from interface:ComponentValidates different requirements of component compiling a series of reports detailing information on errors found in the component. Used by the RiceDictionaryValidator.- Specified by:
completeValidationin interfaceComponent- Parameters:
tracer- Record of component's location- See Also:
-
isEditWithDialog
boolean isEditWithDialog()Indicates that an edit action should be rendered and that the edit group be displayed in a model dialog.- Returns:
- boolean true if edit should be through model dialog, false if not
-
setEditWithDialog
void setEditWithDialog(boolean editWithDialog) - See Also:
-
isCustomEditLineDialog
boolean isCustomEditLineDialog()Indicates that a custom edit line dialog is provided by the user.- Returns:
- boolean true if custom edit line dialog
-
setCustomEditLineDialog
void setCustomEditLineDialog(boolean customEditLineDialog) - See Also:
-
getEditLineDialogPrototype
DialogGroup getEditLineDialogPrototype()Dialog group prototype to use to create the edit line dialog whenisEditWithDialog()is true.If not specified a default prototype edit line dialog will be created with the items from the collection.
- Returns:
- dialog group prototype for edit line
-
setEditLineDialogPrototype
- See Also:
-
getEditWithDialogActionPrototype
Action getEditWithDialogActionPrototype()TheActionthat will be displayed that will open the edit line group in a dialog.- Returns:
- Action
-
setEditWithDialogActionPrototype
- See Also:
-
getEditInDialogSaveActionPrototype
Action getEditInDialogSaveActionPrototype()TheActionthat will be displayed within the edit line group in a dialog.- Returns:
- Action
-
setEditInDialogSaveActionPrototype
- See Also:
-
getLineDialogs
List<DialogGroup> getLineDialogs()List of dialog groups that are configured for a line in the collection.- Returns:
- list of dialog group instances
-
setLineDialogs
- See Also:
-