Interface QueryBuilderField<F extends QueryBuilderField<F>>
- All Superinterfaces:
BuilderFieldSource<F>,Comparable<F>,Component<F>,Copyable<F>,Field<F>,FormComponent<F>,Serializable
- All Known Implementing Classes:
DefaultQueryBuilderField
public interface QueryBuilderField<F extends QueryBuilderField<F>>
extends Field<F>, BuilderFieldSource<F>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.BuilderFieldSource
BuilderFieldSource.AttributesNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.Field
Field.Attributes -
Method Summary
Modifier and TypeMethodDescriptiondefault FAdd a field as a child to the current fieldField.default FAdd a field as a child to the current field with the provided name.default FAdd a field as a child to the current field with the provided name andField.default FaddFields(Collection<Field<?>> fields) Add a collection of fields as children to the current field.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.Finds a field with the specified name.default Field<?>Gets a field with the specified name.default FremoveField(String name) Removes a field with the given name.Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.BuilderFieldSource
addAugmentationFieldSource, addAugmentationFieldSource, addAugmentationFieldSource, addAugmentationFieldSource, getContainerKey, processFieldNameMethods 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, typeMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.Field
clearReadOnlyConditionals, decorated, defaultValue, getDefaultValue, getName, getPlaceholder, getReadOnlyConditionals, getRequiredMessage, getValidationSchema, isReadOnly, isRequired, isShowInQueryBuilder, isTargetCollection, name, notReadOnly, notRequired, placeholder, placeholder, readOnly, readOnly, readOnlyConditional, readOnlyConditionals, required, required, required, required, requiredMessage, requiredMessage, setDefaultValue, setName, setPlaceholder, setReadOnly, setReadOnlyConditionals, setRequired, setRequiredMessage, setShowInQueryBuilder, setValidationSchema, targetIsCollection, targetIsNotCollection, validationMethod, validationSchema, validationSchemaMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.FormComponent
getHelpText, getHint, getTooltip, helpText, helpText, hidden, hidden, hint, hint, isHidden, notHidden, setHelpText, setHidden, setHint, setTooltip, tooltip, tooltip
-
Method Details
-
addField
Add a field as a child to the current field with the provided name andField.- Parameters:
name- the name of the fieldfield- the Field object added- Returns:
- this
-
addField
Add a field as a child to the current fieldField. The field must have a name already attached.- Parameters:
field- the Field object added- Returns:
- this
-
addField
Add a field as a child to the current field with the provided name. The field is set to astringand will autogenerate a label based on the name.- Parameters:
name- the name of the field- Returns:
- this
-
addFields
Add a collection of fields as children to the current field.- Parameters:
fields- A collection of fields- Returns:
- this
-
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
Finds a field with the specified name.- Parameters:
name- the name of the field to find- Returns:
- The field if it is found, otherwise null
-
getField
Gets a field with the specified name.- Parameters:
name- the name of the field to get- Returns:
- The field if it is found, otherwise throws exception
-