public interface SelectField<F extends SelectField<F>> extends Field<F>
Modifier and Type | Interface and Description |
---|---|
static class |
SelectField.Attributes |
Modifier and Type | Method and Description |
---|---|
default F |
clearOptions()
Removes all the options from the select field.
|
default List<SelectOption> |
getOptions() |
default F |
labelKey(String labelKey)
The key used to retrieve the labels of items in the select field.
|
default F |
multi()
Shorthand to set
multi(boolean multi) to true. |
default F |
multi(boolean multi)
Determines if the field is able to have multiple values.
|
default F |
notMulti()
Shorthand to set
multi(boolean multi) to false. |
default F |
notSearchable()
Shorthand to set
searchable(boolean searchable) to false. |
default F |
option(SelectOption... options)
Provides options which can be selected by a select field.
|
default F |
option(String value,
String label)
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 of
SelectOptions . |
default F |
searchable()
Shorthand to set
searchable(boolean searchable) to true. |
default F |
searchable(boolean searchable)
Determines if the field is searchable.
|
default F |
valueKey(String valueKey)
The key used to retrieve the values of items in the select field.
|
decorated, defaultValue, getDefaultValue, getName, getPlaceholder, getRequiredMessage, getValidationSchema, isReadOnly, isRequired, isShowInQueryBuilder, name, notReadOnly, notRequired, placeholder, placeholder, readOnly, readOnly, required, required, required, required, requiredMessage, requiredMessage, setDefaultValue, setName, setPlaceholder, setReadOnly, setRequired, setRequiredMessage, setShowInQueryBuilder, setValidationSchema, validationMethod, validationSchema, validationSchema
getHelpText, getHint, getTooltip, helpText, helpText, hidden, hidden, hint, hint, isHidden, notHidden, setHelpText, setHidden, setHint, setTooltip, tooltip, tooltip
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
compareTo
default F multi()
multi(boolean multi)
to true.default F notMulti()
multi(boolean multi)
to false.default F multi(boolean multi)
multi
- the multi propertydefault F searchable()
searchable(boolean searchable)
to true.default F notSearchable()
searchable(boolean searchable)
to false.default F searchable(boolean searchable)
searchable
- the searchable propertydefault F labelKey(String labelKey)
labelKey
- the label key propertydefault F valueKey(String valueKey)
valueKey
- the value key propertydefault F option(String value, String label)
value
- the value of the optionlabel
- the label of the optiondefault F option(SelectOption... options)
options
- SelectOptions
to be set as optionsdefault F options(Collection<SelectOption> optionsToAdd)
SelectOptions
.optionsToAdd
- A collection of SelectOptions
default F clearOptions()
default List<SelectOption> getOptions()
Copyright © 2021. All rights reserved.