Interface ResidentGridField<F extends ResidentGridField<F>>
- All Superinterfaces:
ActionGrid<F>,Comparable<F>,Component<F>,Copyable<F>,CustomCssComponent<F>,FetchGrid<F>,Field<F>,Filterable<F>,FormComponent<F>,Grid<F>,Orderable<F>,Selectable<F>,Serializable,SortableGrid<F>
- All Known Implementing Classes:
DefaultResidentGridField
public interface ResidentGridField<F extends ResidentGridField<F>>
extends ActionGrid<F>, Field<F>, Filterable<F>, Orderable<F>, SortableGrid<F>
Represents the metadata for a resident grid field component. A resident grid field is rendered as
a list grid within a form, and allows the management of an embedded collection on the domain. For
example, this is useful for managing a set of attributes or other simple objects.
- Author:
- Nick Crum (ncrum)
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.ActionGrid
ActionGrid.ActionKeys, ActionGrid.ActionPlacementsNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.FetchGrid
FetchGrid.EndpointTypesNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.Field
Field.AttributesNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Filterable
Filterable.AttributesNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Grid
Grid.Attributes, Grid.KeysNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Orderable
Orderable.ActionLabels, Orderable.Attributes, Orderable.EndpointTypesNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Selectable
Selectable.ConfigureSelectable, Selectable.SelectableTypesNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.SortableGrid
SortableGrid.Attributes, SortableGrid.Sort -
Field Summary
Fields inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
CSS_ATTRIBUTE -
Method Summary
Modifier and TypeMethodDescriptiondefault FaddCreateAction(CreateModalFormAction<?> createAction) Add theResidentGridField.ActionTypes.CREATEaction to the grid.default FaddDeleteAction(Action<?> deleteAction) Add theResidentGridField.ActionTypes.DELETEaction to the grid.default FaddGenerateTemplateAction(GenerateTemplateAction<?> generateAction) Add theResidentGridField.ActionTypes.UPDATEaction to the grid.default FaddUpdateAction(ModalFormAction<?> updateAction) Add theResidentGridField.ActionTypes.UPDATEaction to the grid.default FaddViewReadOnlyAction(FormAction<?> viewReadOnlyAction) Adds aActionGrid.ActionPlacements.ROWaction that allows a user to view the details of the row in a read-only form.default FConfigures theResidentGridField.ActionTypes.CREATEaction for the grid.default FcreateLabel(String labelKey) Shortcut for changing the label of the create grid action.default FdeleteAction(UnaryOperator<Action<?>> fn) Configures theResidentGridField.ActionTypes.DELETEaction for the grid.default FdeleteLabel(String labelKey) Shortcut for changing the label of the delete grid action.default Optional<CreateModalFormAction<?>>Finds the grid action of typeResidentGridField.ActionTypes.CREATE.Finds the grid action of typeResidentGridField.ActionTypes.DELETE.default Optional<GenerateTemplateAction<?>>Finds the grid action of typeResidentGridField.ActionTypes.UPDATE.default Optional<ModalFormAction<?>>Finds the grid action of typeResidentGridField.ActionTypes.UPDATE.default Optional<FormAction<?>>default FConfigures theResidentGridField.ActionTypes.UPDATEaction for the grid.default FgenerateTemplateLabel(String labelKey) Shortcut for changing the label of the update grid action.default CreateModalFormAction<?>Retrieves the grid action of typeResidentGridField.ActionTypes.CREATE.default Action<?>Retrieves the grid action of typeResidentGridField.ActionTypes.DELETE.default GenerateTemplateAction<?>Retrieves the grid action of typeResidentGridField.ActionTypes.UPDATE.default ModalFormAction<?>Retrieves the grid action of typeResidentGridField.ActionTypes.UPDATE.default FormAction<?>default FupdateAction(UnaryOperator<ModalFormAction<?>> fn) Configures theResidentGridField.ActionTypes.UPDATEaction for the grid.default FupdateLabel(String labelKey) Shortcut for changing the label of the update grid action.default FConfigure theActionGrid.ActionPlacements.ROWaction that allows a user to view the details of the row in a read-only form.default FviewReadOnlyLabel(String labelKey) Shortcut for setting the label of the read-only action.Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.ActionGrid
addGridAction, addGridAction, addGridActionGroup, addRowAction, addRowAction, findGridAction, findRowAction, getGridAction, getRowAction, gridAction, removeGridAction, removeRowAction, rowActionMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.Component
addAction, addAction, addComponent, addEndpoint, addEndpoint, apply, attribute, augmentationKey, classifier, clearConditionals, clearEndpoints, conditional, conditionals, description, description, findAction, findAction, findActions, findAttribute, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoint, findEndpoints, get, get, getAction, getAction, getActions, getActionsList, getAttribute, getAttribute, getAttributes, getAugmentationKey, getClassifier, getComponent, getComponent, getComponents, getComponentsList, getConditionals, getDescription, getEndpoint, getEndpoint, getEndpoints, getEndpointsList, getId, getLabel, getOrder, getScope, getType, hasAction, hasAttribute, hasComponent, hasEndpoint, id, isAugmentable, isTranslatable, label, label, notTranslatable, order, removeAction, removeAttribute, removeComponent, removeEndpoint, scope, self, setActions, setAttributes, setAugmentationKey, setClassifier, setComponents, setConditionals, setDescription, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, translatable, translatable, typeMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
addCssClass, addCssClass, addCssClass, clearCssClasses, getCssClasses, removeCssClass, removeCssClass, removeCssClassMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.FetchGrid
displayRefresh, findReadEndpoint, getReadEndpoint, getReadEndpointType, narrowedPaging, narrowedPaging, numberedPaging, numberedPaging, readEndpoint, readEndpoint, readScope, readUrl, readUrl, unpagedMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.Field
clearReadOnlyConditionals, decorated, decorated, defaultValue, getDefaultValue, getName, getPlaceholder, getReadOnlyConditionals, getRequiredMessage, getValidationSchema, isReadOnly, isRequired, isShowInQueryBuilder, isTargetCollection, name, notReadOnly, notRequired, placeholder, placeholder, readOnly, readOnly, readOnlyConditional, readOnlyConditionals, required, required, required, required, requiredMessage, requiredMessage, setDefaultValue, setName, setPlaceholder, setReadOnly, setReadOnlyConditionals, setRequired, setRequiredMessage, setShowInQueryBuilder, setValidationSchema, targetIsCollection, targetIsNotCollection, validationMethod, validationSchema, validationSchemaMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Filterable
implicitFilter, implicitFilters, implicitFiltersMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.FormComponent
getHelpText, getHint, getTooltip, helpText, helpText, helpText, hidden, hidden, hint, hint, isHidden, notHidden, setHelpText, setHidden, setHint, setTooltip, tooltip, tooltipMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Grid
addColumn, addColumn, addColumn, addColumns, addRowMessage, addRowMessage, findColumn, findRowMessage, getColumn, getRowMessage, idKey, removeColumn, removeRowMessage, rowMessageMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Orderable
addOrderableAction, disableDragIfAllUnsorted, disableDragIfAllUnsorted, enableDragIfAllUnsorted, findOrderableAction, findOrderableEndpoint, getOrderableAction, getOrderableEndpoint, isOrderable, notOrderable, orderable, orderable, orderable, orderableAction, orderableEndpoint, orderableEndpoint, orderableScope, orderableUrl, orderableUrlMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Selectable
multiPageSelectable, multiPageSelectableWithExclusions, multipleSelectable, notSelectable, selectable, selectable, selectable, selectableType, singleSelectableMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.SortableGrid
notSortable, notSortable, sortable, sortable, sortableWithDefault, sortableWithDefault
-
Method Details
-
addCreateAction
Add theResidentGridField.ActionTypes.CREATEaction to the grid. This action allows the user to create new members of the collection using a modal form.- Parameters:
createAction- the create action- Returns:
- this
-
createAction
Configures theResidentGridField.ActionTypes.CREATEaction for the grid. This action allows the user to create new members of the collection using a modal form.- Parameters:
fn- the function configure the create action- Returns:
- this
-
createLabel
Shortcut for changing the label of the create grid action.- Parameters:
labelKey- the message key of the label- Returns:
- this
-
getCreateAction
Retrieves the grid action of typeResidentGridField.ActionTypes.CREATE.- Returns:
- the create action
-
findCreateAction
Finds the grid action of typeResidentGridField.ActionTypes.CREATE.- Returns:
- an optional with the create action, or empty
-
addDeleteAction
Add theResidentGridField.ActionTypes.DELETEaction to the grid. This row action allows the user to delete a member of the collection.- Parameters:
deleteAction- the delete action- Returns:
- this
-
deleteAction
Configures theResidentGridField.ActionTypes.DELETEaction for the grid. This row action allows the user to delete a member of the collection.- Parameters:
fn- the function configure the delete action- Returns:
- this
-
deleteLabel
Shortcut for changing the label of the delete grid action.- Parameters:
labelKey- the message key of the label- Returns:
- this
-
getDeleteAction
Retrieves the grid action of typeResidentGridField.ActionTypes.DELETE.- Returns:
- the delete action
-
findDeleteAction
Finds the grid action of typeResidentGridField.ActionTypes.DELETE.- Returns:
- an optional with the delete action, or empty
-
addUpdateAction
Add theResidentGridField.ActionTypes.UPDATEaction to the grid. This row action allows the user to update existing members of the collection using a modal form.- Parameters:
updateAction- the update action- Returns:
- this
-
updateAction
Configures theResidentGridField.ActionTypes.UPDATEaction for the grid. This row action allows the user to update existing members of the collection using a modal form.- Parameters:
fn- the function configure the update action- Returns:
- this
-
updateLabel
Shortcut for changing the label of the update grid action.- Parameters:
labelKey- the message key of the label- Returns:
- this
-
getUpdateAction
Retrieves the grid action of typeResidentGridField.ActionTypes.UPDATE.- Returns:
- the update action
-
findUpdateAction
Finds the grid action of typeResidentGridField.ActionTypes.UPDATE.- Returns:
- an optional with the update action, or empty
-
addGenerateTemplateAction
Add theResidentGridField.ActionTypes.UPDATEaction to the grid. This row action allows the user to update existing members of the collection using a modal form.- Parameters:
generateAction- the update action- Returns:
- this
-
generateTemplateAction
Configures theResidentGridField.ActionTypes.UPDATEaction for the grid. This row action allows the user to update existing members of the collection using a modal form.- Parameters:
fn- the function configure the update action- Returns:
- this
-
generateTemplateLabel
Shortcut for changing the label of the update grid action.- Parameters:
labelKey- the message key of the label- Returns:
- this
-
getGenerateTemplateAction
Retrieves the grid action of typeResidentGridField.ActionTypes.UPDATE.- Returns:
- the update action
-
findGenerateTemplateAction
Finds the grid action of typeResidentGridField.ActionTypes.UPDATE.- Returns:
- an optional with the update action, or empty
-
addViewReadOnlyAction
Adds aActionGrid.ActionPlacements.ROWaction that allows a user to view the details of the row in a read-only form. This is generally used when a row is not editable yet there is a need to present the details of the row.- Parameters:
viewReadOnlyAction- the action to add- Returns:
- this
-
viewReadOnlyAction
Configure theActionGrid.ActionPlacements.ROWaction that allows a user to view the details of the row in a read-only form. This is generally used when a row is not editable yet there is a need to present the details of the row.- Parameters:
fn- a function to configure the read-only form- Returns:
- this
-
viewReadOnlyLabel
Shortcut for setting the label of the read-only action.- Parameters:
labelKey- the label or label message key- Returns:
- this
-
getViewReadOnlyAction
- Returns:
- the read-only action if it exists
-
findViewReadOnlyAction
- Returns:
- an optional with the read-only action, or empty
-