public interface QueryBuilderField<F extends QueryBuilderField<F>> extends Field<F>, BuilderFieldSource<F>
Modifier and Type | Interface and Description |
---|---|
static class |
QueryBuilderField.Keys |
Field.Attributes
BuilderFieldSource.Attributes
Modifier and Type | Method and Description |
---|---|
default F |
addField(Field<?> field)
Add a field as a child to the current field
Field . |
default F |
addField(String name)
Add a field as a child to the current field with the provided name.
|
default F |
addField(String name,
Field<?> field)
Add a field as a child to the current field with the provided name and
Field . |
default F |
addFields(Collection<Field<?>> fields)
Add a collection of fields as children to the current 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.
|
default Optional<Field<?>> |
findField(String name)
Finds a field with the specified name.
|
default Field<?> |
getField(String name)
Gets a field with the specified name.
|
default F |
removeField(String name)
Removes a field with the given name.
|
decorated, defaultValue, getDefaultValue, getName, getPlaceholder, getRequiredMessage, getValidationSchema, isReadOnly, isRequired, isShowInQueryBuilder, name, notReadOnly, notRequired, placeholder, placeholder, readOnly, readOnly, required, required, required, required, requiredMessage, requiredMessage, setDefaultValue, setName, setPlaceholder, setReadOnly, setRequired, setRequiredMessage, setShowInQueryBuilder, setValidationSchema, validationMethod, validationSchema, validationSchema
getHelpText, getHint, getTooltip, helpText, helpText, hidden, hidden, hint, hint, isHidden, notHidden, setHelpText, setHidden, setHint, setTooltip, tooltip, tooltip
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
addAugmentationFieldSource, addAugmentationFieldSource, addAugmentationFieldSource, addAugmentationFieldSource, getContainerKey, processFieldName
default F addField(String name, Field<?> field)
Field
.name
- the name of the fieldfield
- the Field object addeddefault F addField(Field<?> field)
Field
. The field must have a name already
attached.field
- the Field object addeddefault F addField(String name)
string
and will autogenerate a label based on the name.name
- the name of the fielddefault F addFields(Collection<Field<?>> fields)
fields
- A collection of fieldsdefault 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 Optional<Field<?>> findField(String name)
name
- the name of the field to findCopyright © 2021. All rights reserved.