Interface Field<F extends Field<F>>
- All Superinterfaces:
Comparable<F>,Component<F>,Copyable<F>,FormComponent<F>,Serializable
- All Known Subinterfaces:
ComputedField<F>,CustomAttributesGridField<F>,DateField<F>,DateRangeField<F>,DerivedField<F>,DerivedSelectField<F>,DerivedUrlField<F>,DurationField<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,DefaultComputedField,DefaultCustomAttributesGridField,DefaultDateField,DefaultDateRangeField,DefaultDerivedField,DefaultDerivedSelectField,DefaultDerivedUrlField,DefaultDurationField,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) default FSets the field as display only.default FdisplayOnly(boolean displayOnly) Set whether this field should be displayed as a plain or raw text representation of the field.intgetName()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 FmaxLength(int maxLength) default Fdefault 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) voidsetMaxLength(int maxLength) 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, addSimpleComponent, apply, attribute, augmentable, 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, getAugmentableFlag, 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, setAugmentable, 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() -
getMaxLength
int getMaxLength()- Since:
- Metadata 2.0.8, Release Train 2.1.6
-
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) -
setMaxLength
void setMaxLength(int maxLength) -
setShowInQueryBuilder
void setShowInQueryBuilder(boolean showInQueryBuilder) -
setRequiredMessage
-
setPlaceholder
-
setValidationSchema
-
name
-
defaultValue
-
readOnly
-
notReadOnly
-
readOnly
-
readOnlyConditionals
-
readOnlyConditional
-
clearReadOnlyConditionals
-
required
-
notRequired
-
required
-
required
-
required
-
requiredMessage
-
requiredMessage
-
maxLength
- Since:
- Metadata 2.0.8, Release Train 2.1.6
-
noMaxLength
- Since:
- Metadata 2.0.8, Release Train 2.1.6
-
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
-
displayOnly
Sets the field as display only. This means that the field will not be displayed as it usually does when it can be interacted with, but as a plain or raw text representation.- Returns:
- this field for further customization
- Since:
- Metadata Service 2.0.8, Release Train 2.1.6
-
displayOnly
Set whether this field should be displayed as a plain or raw text representation of the field.- Parameters:
displayOnly- whether to show fields as raw text- Returns:
- this field for further customization
- Since:
- Metadata Service 2.0.8, Release Train 2.1.6
-