Interface Form<F extends Form<F>>
-
- All Superinterfaces:
Comparable<F>
,Component<F>
,Copyable<F>
,Serializable
- All Known Subinterfaces:
CollapsibleGroup<G>
,ControlGroup<G>
,EntityFormView<V>
,FormView<V>
,Group<G>
,InlineGroup<G>
,LinkGroup<G>
,SelectTargetEntityFormView<V>
- All Known Implementing Classes:
AbstractGroup
,AbstractSelectTargetEntityFormView
,DefaultBasicGroup
,DefaultCollapsibleGroup
,DefaultControlGroup
,DefaultEntityFormView
,DefaultFormView
,DefaultGroup
,DefaultInlineGroup
,DefaultLinkGroup
public interface Form<F extends Form<F>> extends Component<F>
Represents the metadata for a component whose children are variousFormComponent
.- Author:
- Nick Crum (ncrum)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Form.Keys
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default F
addExternal(External<?> external)
default F
addExternal(String id, External<?> external)
default F
addField(Field<?> field)
default F
addField(String name)
default F
addField(String name, Field<?> field)
default F
addFields(Collection<Field<?>> fields)
default F
addFormComponents(Collection<FormComponent<?>> formComponents)
default F
addGroup(Group<?> group)
default F
addGroup(String id, Group<?> group)
default F
external(String id, UnaryOperator<External<?>> fn)
default F
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 F
group(String id, UnaryOperator<Group<?>> fn)
default F
removeExternal(String id)
default F
removeField(String name)
Removes a field with the given name.default F
removeGroup(String id)
-
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, findComponent, findComponent, findComponents, 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
-
-
-
-
Method Detail
-
addFormComponents
default F addFormComponents(Collection<FormComponent<?>> formComponents)
-
addFields
default F addFields(Collection<Field<?>> fields)
-
removeField
default F removeField(String name)
Removes a field with the given name.- Parameters:
name
- the name of the field- Returns:
- this
-
field
default F 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 F external(String id, UnaryOperator<External<?>> fn)
-
group
default F group(String id, UnaryOperator<Group<?>> fn)
-
-