Interface RuleBuilderField<F extends RuleBuilderField<F>>
-
- All Superinterfaces:
BuilderFieldSource<F>,Comparable<F>,Component<F>,Copyable<F>,Field<F>,FormComponent<F>,Serializable
- All Known Implementing Classes:
DefaultRuleBuilderField
public interface RuleBuilderField<F extends RuleBuilderField<F>> extends Field<F>, BuilderFieldSource<F>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRuleBuilderField.Keys-
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.BuilderFieldSource
BuilderFieldSource.Attributes
-
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.Field
Field.Attributes
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default FaddField(Field<?> field)Add a field as a child to the current fieldField.default FaddField(String name)Add a field as a child to the current field with the provided name.default FaddField(String name, Field<?> field)Add 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 Optional<Field<?>>findField(String name)Finds a field with the specified name.default Field<?>getField(String name)Gets a field with the specified name.-
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.BuilderFieldSource
addAugmentationFieldSource, addAugmentationFieldSource, addAugmentationFieldSource, addAugmentationFieldSource, getContainerKey, processFieldName
-
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, 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
-
Methods 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, validationSchema
-
Methods 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 Detail
-
addField
default F addField(String name, Field<?> field)
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
default F addField(Field<?> field)
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
default F addField(String name)
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
default F addFields(Collection<Field<?>> fields)
Add a collection of fields as children to the current field.- Parameters:
fields- A collection of fields- Returns:
- this
-
findField
default Optional<Field<?>> findField(String name)
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
-
-