public interface Form<F extends Form<F>> extends Component<F>
FormComponent
.Modifier and Type | Interface and Description |
---|---|
static class |
Form.Keys |
Modifier and Type | Method and 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) |
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
compareTo
default F addFormComponents(Collection<FormComponent<?>> formComponents)
default F addFields(Collection<Field<?>> fields)
default F removeField(String name)
name
- the name of the fielddefault F field(String name, UnaryOperator<Field<?>> fn)
name
- the name of the fieldfn
- the customize functiondefault F external(String id, UnaryOperator<External<?>> fn)
default F group(String id, UnaryOperator<Group<?>> fn)
Copyright © 2021. All rights reserved.