Interface FormAction<A extends FormAction<A>>
-
- All Superinterfaces:
Action<A>
,Comparable<A>
,Copyable<A>
,Serializable
- All Known Subinterfaces:
CloneModalFormAction<A>
,CreateModalFormAction<A>
,ExportGridAction<A>
,GenerateTemplateAction<A>
,ImportGridAction<A>
,ModalFormAction<A>
,OrderableModalFormAction<A>
,ResidentMapCreateAction<A>
,RowModalFormAction<A>
- All Known Implementing Classes:
DefaultCloneModalFormAction
,DefaultCreateModalFormAction
,DefaultExportGridAction
,DefaultFormAction
,DefaultGenerateTemplateAction
,DefaultImportGridAction
,DefaultModalFormAction
,DefaultOrderableModalFormAction
,DefaultResidentMapCreateAction
,DefaultRowModalFormAction
public interface FormAction<A extends FormAction<A>> extends Action<A>
Represents the metadata for a action whose children are variousFormComponent
.- Author:
- Nick Crum (ncrum)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
FormAction.Keys
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default A
addExternal(External<?> external)
default A
addExternal(String id, External<?> external)
default A
addField(Field<?> field)
default A
addField(String name)
default A
addField(String name, Field<?> field)
default A
addFormComponents(Collection<? extends FormComponent<?>> formComponents)
default A
addGroup(Group<?> group)
default A
addGroup(String id, Group<?> group)
default A
external(String id, UnaryOperator<External<?>> fn)
default A
field(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.default Optional<External<?>>
findExternal(String id)
default Optional<Field<?>>
findField(String name)
default Optional<Group<?>>
findGroup(String id)
default External<?>
getExternal(String id)
default Field<?>
getField(String name)
default Group<?>
getGroup(String id)
default A
group(String id, UnaryOperator<Group<?>> fn)
default A
removeExternal(String id)
default A
removeField(String name)
Removes a field with the given name.default A
removeGroup(String id)
-
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, type
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
addFormComponents
default A addFormComponents(Collection<? extends FormComponent<?>> formComponents)
-
removeField
default A removeField(String name)
Removes a field with the given name.- Parameters:
name
- the name of the field- Returns:
- this
-
field
default A field(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.- Parameters:
name
- the name of the fieldfn
- the customize function- Returns:
- this
-
external
default A external(String id, UnaryOperator<External<?>> fn)
-
group
default A group(String id, UnaryOperator<Group<?>> fn)
-
-