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 classForm.Keys
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default FaddExternal(External<?> external)default FaddExternal(String id, External<?> external)default FaddField(Field<?> field)default FaddField(String name)default FaddField(String name, Field<?> field)default FaddFields(Collection<Field<?>> fields)default FaddFormComponents(Collection<FormComponent<?>> formComponents)default FaddGroup(Group<?> group)default FaddGroup(String id, Group<?> group)default Fexternal(String id, UnaryOperator<External<?>> fn)default Ffield(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 Fgroup(String id, UnaryOperator<Group<?>> fn)default FremoveExternal(String id)default FremoveField(String name)Removes a field with the given name.default FremoveGroup(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)
-
-