Interface SlideOverFormAction<A extends SlideOverFormAction<A>>
- All Superinterfaces:
Action<A>,Comparable<A>,Copyable<A>,Serializable
- All Known Implementing Classes:
DefaultSlideOverFormAction
Represents the metadata for the
ResidentGridField.ActionTypes.CREATE_VIEW and
ResidentGridField.ActionTypes.UPDATE_VIEW actions within an ResidentGridField.
This component will use the SlideOverFormAction.FieldNames.COMPONENT_METADATA to define the form fields. This
is the ID that defines pre-configured form fields. Typically, in the form of
"catalog:product:create". This component can be configured with a field to provide the forms
response (SlideOverFormAction.FieldNames.RESPONSE_FIELD_NAME). If not provided, the form response will be
returned to the row.- Author:
- Jon Fleschler (jfleschler)
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault AaddExternal(External<?> external) default AaddExternal(String id, External<?> external) default Adefault Adefault Adefault AaddFormComponents(Collection<? extends FormComponent<?>> formComponents) default Adefault Adefault AadditionalFormState(String name) Adds an additional form state field to the action.default AadditionalFormState(String target, String source) Adds an additional form state field to the action.default AadditionalResponseFields(Collection<String> additionalResponseFields) Adds additional response fields to the action.default AcomponentMetadata(String componentMetadata) default Aexternal(String id, UnaryOperator<External<?>> fn) default Afield(String name, UnaryOperator<Field<?>> fn) Selects or creates a field with the given name and provides it as an argument to the function for further customization.findExternal(String id) default External<?>getExternal(String id) default Field<?>default Group<?>default Agroup(String id, UnaryOperator<Group<?>> fn) default AremoveExternal(String id) default AremoveField(String name) Removes a field with the given name.default AremoveGroup(String id) default AresponseFieldName(String responseFieldName) Sets the field name for the response.Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.Action
addComponent, addComponents, addEndpoint, addEndpoint, apply, attribute, clearEndpoints, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoints, get, get, getAttribute, getAttribute, getAttributes, getComponent, getComponent, getComponents, getComponentsList, getEndpoint, getEndpoint, getEndpoints, getEndpointsList, getId, getLabel, getOperationType, getOrder, getPlacement, getScope, getType, hasAttribute, hasComponent, hasEndpoint, id, label, label, operationType, order, placement, removeAttribute, removeComponent, removeEndpoint, scope, self, setAttributes, setComponents, setEndpoints, setId, setLabel, setOperationType, setOrder, setPlacement, setScope, setType, typeMethods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
componentMetadata
-
responseFieldName
Sets the field name for the response.- Parameters:
responseFieldName- the field name holding the response- Returns:
- this
-
additionalFormState
Adds an additional form state field to the action. This is used to pass additional state from the action to the form.- Parameters:
name- the field name of the additional form state and the source field name- Returns:
- this
- Since:
- Metadata Services 2.0.7, Release Train 2.3.0
-
additionalFormState
Adds an additional form state field to the action. This is used to pass additional state from the action to the form.- Parameters:
target- the field name of the additional form statesource- the field name of the field on the base form that holds the source value- Returns:
- this
- Since:
- Metadata Services 2.0.7, Release Train 2.3.0
-
additionalResponseFields
Adds additional response fields to the action. These fields will be included in the response of the form and can be used to pass additional data back to the caller.- Parameters:
additionalResponseFields- the collection of additional response field names- Returns:
- this
- Since:
- Metadata Services 2.0.7, Release Train 2.3.0
-
addFormComponents
-
addField
-
addField
-
addField
-
removeField
Removes a field with the given name.- Parameters:
name- the name of the field- Returns:
- this
-
field
Selects or creates a field with the given name and provides it as an argument to the function for further customization.- Parameters:
name- the name of the fieldfn- the customize function- Returns:
- this
-
findField
-
getField
-
addExternal
-
addExternal
-
removeExternal
-
external
-
findExternal
-
getExternal
-
addGroup
-
addGroup
-
removeGroup
-
group
-
findGroup
-
getGroup
-