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 F
addExternal
(External<?> external) default F
addExternal
(String id, External<?> external) default F
default F
default F
default F
addFields
(Collection<Field<?>> fields) default F
addFormComponents
(Collection<FormComponent<?>> formComponents) default F
default F
default F
addMessage
(Message<?> message) default F
addMessage
(String id, Message<?> message) 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.findExternal
(String id) findMessage
(String id) default External<?>
getExternal
(String id) default Field<?>
default Group<?>
default Message<?>
getMessage
(String id) default F
group
(String id, UnaryOperator<Group<?>> fn) default F
message
(String id, UnaryOperator<Message<?>> fn) default F
removeExternal
(String id) default F
removeField
(String name) Removes a field with the given name.default F
removeGroup
(String id) default F
removeMessage
(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, findAttribute, findComponent, findComponent, findComponents, findEndpoint, 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
-
addMessage
-
addMessage
-
removeMessage
-
message
-
findMessage
-
getMessage
-