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.ActionPlacements
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.FetchGrid
FetchGrid.EndpointTypes
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.Field
Field.Attributes
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Filterable
Filterable.Attributes
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Grid
Grid.Attributes, Grid.Keys
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Orderable
Orderable.ActionLabels, Orderable.Attributes, Orderable.EndpointTypes
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Selectable
Selectable.ConfigureSelectable, Selectable.SelectableTypes
Nested 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 F
addCreateAction
(CreateModalFormAction<?> createAction) Add theResidentGridField.ActionTypes.CREATE
action to the grid.default F
addDeleteAction
(Action<?> deleteAction) Add theResidentGridField.ActionTypes.DELETE
action to the grid.default F
addGenerateTemplateAction
(GenerateTemplateAction<?> generateAction) Add theResidentGridField.ActionTypes.UPDATE
action to the grid.default F
addUpdateAction
(ModalFormAction<?> updateAction) Add theResidentGridField.ActionTypes.UPDATE
action to the grid.default F
addViewReadOnlyAction
(FormAction<?> viewReadOnlyAction) Adds aActionGrid.ActionPlacements.ROW
action that allows a user to view the details of the row in a read-only form.default F
Configures theResidentGridField.ActionTypes.CREATE
action for the grid.default F
createLabel
(String labelKey) Shortcut for changing the label of the create grid action.default F
deleteAction
(UnaryOperator<Action<?>> fn) Configures theResidentGridField.ActionTypes.DELETE
action for the grid.default F
deleteLabel
(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 F
Configures theResidentGridField.ActionTypes.UPDATE
action for the grid.default F
generateTemplateLabel
(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 F
updateAction
(UnaryOperator<ModalFormAction<?>> fn) Configures theResidentGridField.ActionTypes.UPDATE
action for the grid.default F
updateLabel
(String labelKey) Shortcut for changing the label of the update grid action.default F
Configure theActionGrid.ActionPlacements.ROW
action that allows a user to view the details of the row in a read-only form.default F
viewReadOnlyLabel
(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, rowAction
Methods inherited from interface java.lang.Comparable
compareTo
Methods 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, type
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
addCssClass, addCssClass, addCssClass, clearCssClasses, getCssClasses, removeCssClass, removeCssClass, removeCssClass
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.FetchGrid
displayRefresh, findReadEndpoint, getReadEndpoint, getReadEndpointType, narrowedPaging, narrowedPaging, numberedPaging, numberedPaging, readEndpoint, readEndpoint, readScope, readUrl, readUrl, unpaged
Methods 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, validationSchema
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Filterable
implicitFilter, implicitFilters, implicitFilters
Methods 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, tooltip
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Grid
addColumn, addColumn, addColumn, addColumns, addRowMessage, addRowMessage, findColumn, findRowMessage, getColumn, getRowMessage, idKey, removeColumn, removeRowMessage, rowMessage
Methods 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, orderableUrl
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Selectable
multiPageSelectable, multiPageSelectableWithExclusions, multipleSelectable, notSelectable, selectable, selectable, selectable, selectableType, singleSelectable
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.SortableGrid
notSortable, notSortable, sortable, sortable, sortableWithDefault, sortableWithDefault
-
Method Details
-
addCreateAction
Add theResidentGridField.ActionTypes.CREATE
action 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.CREATE
action 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.DELETE
action 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.DELETE
action 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.UPDATE
action 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.UPDATE
action 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.UPDATE
action 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.UPDATE
action 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.ROW
action 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.ROW
action 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
-