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
Represents the metadata for a component whose children are various
FormComponent.- Author:
- Nick Crum (ncrum)
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault FaddExternal(External<?> external) default FaddExternal(String id, External<?> external) default Fdefault Fdefault Fdefault FaddFields(Collection<Field<?>> fields) default FaddFormComponents(Collection<FormComponent<?>> formComponents) default Fdefault Fdefault 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.findExternal(String id) default External<?>getExternal(String id) default Field<?>default Group<?>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
compareToMethods 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 Details
-
addFormComponents
-
addField
-
addField
-
addField
-
addFields
-
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
-