Interface SelectField<F extends SelectField<F>>
- All Superinterfaces:
Comparable<F>
,Component<F>
,Copyable<F>
,Field<F>
,FormComponent<F>
,Serializable
- All Known Subinterfaces:
DerivedSelectField<F>
- All Known Implementing Classes:
DefaultDerivedSelectField
,DefaultSelectField
Represents the metadata for a select field within a form.
- Author:
- Nick Crum (ncrum)
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault F
Removes all the options from the select field.default List<SelectOption>
default F
The key used to retrieve the labels of items in the select field.default F
multi()
Shorthand to setmulti(boolean multi)
to true.default F
multi
(boolean multi) Determines if the field is able to have multiple values.default F
notMulti()
Shorthand to setmulti(boolean multi)
to false.default F
Shorthand to setsearchable(boolean searchable)
to false.default F
option
(SelectOption... options) Provides options which can be selected by a select field.default F
Provides an option which can be selected by a select field.default F
options
(Collection<SelectOption> optionsToAdd) Provides options which can be selected by a select field using a collection ofSelectOptions
.default F
Shorthand to setsearchable(boolean searchable)
to true.default F
searchable
(boolean searchable) Determines if the field is searchable.default F
The key used to retrieve the values of items in the select field.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.Field
clearReadOnlyConditionals, decorated, 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, helpText, hidden, hidden, hint, hint, isHidden, notHidden, setHelpText, setHidden, setHint, setTooltip, tooltip, tooltip
-
Method Details
-
multi
Shorthand to setmulti(boolean multi)
to true.- Returns:
- this
-
notMulti
Shorthand to setmulti(boolean multi)
to false.- Returns:
- this
-
multi
Determines if the field is able to have multiple values. Set to true if it is able to contain multiple, otherwise false.- Parameters:
multi
- the multi property- Returns:
- this
-
searchable
Shorthand to setsearchable(boolean searchable)
to true.- Returns:
- this
-
notSearchable
Shorthand to setsearchable(boolean searchable)
to false.- Returns:
- this
-
searchable
Determines if the field is searchable. Set to true if it is searchable, otherwise false.- Parameters:
searchable
- the searchable property- Returns:
- this
-
labelKey
The key used to retrieve the labels of items in the select field.- Parameters:
labelKey
- the label key property- Returns:
- this
-
valueKey
The key used to retrieve the values of items in the select field.- Parameters:
valueKey
- the value key property- Returns:
- this
-
option
Provides an option which can be selected by a select field.- Parameters:
value
- the value of the optionlabel
- the label of the option- Returns:
- this
-
option
Provides options which can be selected by a select field.- Parameters:
options
-SelectOptions
to be set as options- Returns:
- this
-
options
Provides options which can be selected by a select field using a collection ofSelectOptions
.- Parameters:
optionsToAdd
- A collection ofSelectOptions
- Returns:
- this
-
clearOptions
Removes all the options from the select field.- Returns:
- this
-
getOptions
-