Interface Field<F extends Field<F>>
- All Superinterfaces:
Comparable<F>,Component<F>,Copyable<F>,FormComponent<F>,Serializable
- All Known Subinterfaces:
CustomAttributesGridField<F>,DateField<F>,DerivedField<F>,DerivedSelectField<F>,DerivedUrlField<F>,DynamicField<F>,EnumSwitchField<F>,FieldArrayBlockField<F>,FieldArrayField<F>,FieldArrayGridField<F>,FileInputField<F>,IntegerField<F>,LookupField<F>,MoneyField<F>,PhoneField<F>,QueryBuilderField<F>,ResidentGridField<F>,ResidentMapField<F>,RuleBuilderField<F>,SelectField<F>
- All Known Implementing Classes:
AbstractField,DefaultCustomAttributesGridField,DefaultDateField,DefaultDerivedField,DefaultDerivedSelectField,DefaultDerivedUrlField,DefaultDynamicField,DefaultEnumSwitchField,DefaultField,DefaultFieldArrayBlockField,DefaultFieldArrayGridField,DefaultFileInputField,DefaultIntegerField,DefaultLookupField,DefaultMoneyField,DefaultPhoneField,DefaultQueryBuilderField,DefaultResidentGridField,DefaultResidentMapField,DefaultRuleBuilderField,DefaultSelectField
Represents the metadata for a field component.
- Author:
- Nick Crum (ncrum)
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault Fdefault FSets the field as decorated.default Fdecorated(boolean decorated) Set whether or not this field should be decorated with a label, help text, hint, and other elements.default FdefaultValue(Object defaultValue) getName()List<Conditional<?>>booleanbooleanbooleandefault FisTargetCollection(boolean isTargetCollection) If the field is used in a rule builder, this indicates that the field that is targeted by the rule is a collection field.default Fdefault Fdefault Fdefault Fplaceholder(InternationalizedMessage placeholder) default Fplaceholder(String placeholderKey) default FreadOnly()default FreadOnly(boolean readOnly) default FreadOnlyConditional(Conditional<?>... conditionals) default FreadOnlyConditionals(List<Conditional<?>> readOnlyConditionals) default Frequired()default Frequired(boolean required) default Frequired(InternationalizedMessage requiredMessage) default Fdefault FrequiredMessage(InternationalizedMessage requiredMessage) default FrequiredMessage(String requiredMessageKey) voidsetDefaultValue(Object defaultValue) voidvoidsetPlaceholder(InternationalizedMessage placeholder) voidsetReadOnly(boolean readOnly) voidsetReadOnlyConditionals(List<Conditional<?>> readOnlyConditionals) voidsetRequired(boolean required) voidsetRequiredMessage(InternationalizedMessage requiredMessage) voidsetShowInQueryBuilder(boolean showInQueryBuilder) voidsetValidationSchema(AbstractValidationSchema<?> validationSchema) default FIf the field is used in a rule builder, this indicates that the field that is targeted by the rule is a collection field.default FIf the field is used in a rule builder, this indicates that the field that is targeted by the rule is a not collection field.default FvalidationMethod(ValidationMethod<?> validationMethod) default FvalidationSchema(AbstractValidationSchema<?> validationSchema) default FMethods 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, 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, typeMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.FormComponent
getHelpText, getHint, getTooltip, helpText, helpText, helpText, hidden, hidden, hint, hint, isHidden, notHidden, setHelpText, setHidden, setHint, setTooltip, tooltip, tooltip
-
Method Details
-
getName
-
getDefaultValue
-
isReadOnly
boolean isReadOnly() -
isRequired
boolean isRequired() -
isShowInQueryBuilder
boolean isShowInQueryBuilder() -
getReadOnlyConditionals
List<Conditional<?>> getReadOnlyConditionals() -
getRequiredMessage
-
getPlaceholder
-
getValidationSchema
-
setName
-
setDefaultValue
-
setReadOnly
void setReadOnly(boolean readOnly) -
setReadOnlyConditionals
-
setRequired
void setRequired(boolean required) -
setShowInQueryBuilder
void setShowInQueryBuilder(boolean showInQueryBuilder) -
setRequiredMessage
-
setPlaceholder
-
setValidationSchema
-
name
-
defaultValue
-
readOnly
-
notReadOnly
-
readOnly
-
readOnlyConditionals
-
readOnlyConditional
-
clearReadOnlyConditionals
-
required
-
notRequired
-
required
-
required
-
required
-
requiredMessage
-
requiredMessage
-
placeholder
-
placeholder
-
validationSchema
-
validationSchema
-
validationMethod
-
decorated
Sets the field as decorated.- Returns:
- this field for further customization
-
decorated
Set whether or not this field should be decorated with a label, help text, hint, and other elements.- Parameters:
decorated- whether or not decorated- Returns:
- this field for further customization
-
isTargetCollection
If the field is used in a rule builder, this indicates that the field that is targeted by the rule is a collection field. This impacts the verbiage used in the admin to describe the rule such as "is in" or "is a subset of".- Parameters:
isTargetCollection- Whether the target field is a collection.- Returns:
- this
-
targetIsCollection
If the field is used in a rule builder, this indicates that the field that is targeted by the rule is a collection field. This impacts the verbiage used in the admin to describe the rule such as "is in" or "is a subset of".- Returns:
- this
-
targetIsNotCollection
If the field is used in a rule builder, this indicates that the field that is targeted by the rule is a not collection field. This impacts the verbiage used in the admin to describe the rule such as "is in" or "is a subset of".- Returns:
- this
-