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 F
default F
Sets the field as decorated.default F
decorated
(boolean decorated) Set whether or not this field should be decorated with a label, help text, hint, and other elements.default F
defaultValue
(Object defaultValue) getName()
List<Conditional<?>>
boolean
boolean
boolean
default F
isTargetCollection
(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 F
default F
default F
default F
placeholder
(InternationalizedMessage placeholder) default F
placeholder
(String placeholderKey) default F
readOnly()
default F
readOnly
(boolean readOnly) default F
readOnlyConditional
(Conditional<?>... conditionals) default F
readOnlyConditionals
(List<Conditional<?>> readOnlyConditionals) default F
required()
default F
required
(boolean required) default F
required
(InternationalizedMessage requiredMessage) default F
default F
requiredMessage
(InternationalizedMessage requiredMessage) default F
requiredMessage
(String requiredMessageKey) void
setDefaultValue
(Object defaultValue) void
void
setPlaceholder
(InternationalizedMessage placeholder) void
setReadOnly
(boolean readOnly) void
setReadOnlyConditionals
(List<Conditional<?>> readOnlyConditionals) void
setRequired
(boolean required) void
setRequiredMessage
(InternationalizedMessage requiredMessage) void
setShowInQueryBuilder
(boolean showInQueryBuilder) void
setValidationSchema
(AbstractValidationSchema<?> validationSchema) default F
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 F
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.default F
validationMethod
(ValidationMethod<?> validationMethod) default F
validationSchema
(AbstractValidationSchema<?> validationSchema) default F
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, 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, type
Methods 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
-