V
- type of valueI
- type of option itemspublic interface OptionsField<V,I> extends Field<V>, HasOptionCaptionProvider<I>, HasCaptionMode
Field.Validator<T>
HasValue.ValueChangeEvent<V>
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.OptionsStyleProvider, Component.Wrapper
HasContextHelp.ContextHelpIconClickEvent
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELS
Modifier and Type | Method and Description |
---|---|
Options<I> |
getOptions() |
default CollectionDatasource |
getOptionsDatasource()
Deprecated.
Use
getOptions() instead. |
default java.lang.Class<? extends EnumClass> |
getOptionsEnum()
Deprecated.
Use
getOptions() instead. |
default java.util.List |
getOptionsList()
Deprecated.
Use
getOptions() instead. |
default java.util.Map<java.lang.String,?> |
getOptionsMap()
Deprecated.
Use
getOptions() instead. |
void |
setOptions(Options<I> options)
Sets options for UI component.
|
default void |
setOptionsDatasource(CollectionDatasource datasource)
Deprecated.
set options using
setOptions(Options) with DatasourceOptions . |
default void |
setOptionsEnum(java.lang.Class<I> optionsEnum)
Sets options from the passed enum class.
|
default void |
setOptionsList(java.util.List<I> optionsList)
Sets options from the passed list.
|
default void |
setOptionsMap(java.util.Map<java.lang.String,I> map)
Sets options from the passed map and automatically applies option caption provider based on map keys.
|
addValidator, addValidators, getRequiredMessage, getValidators, isRequired, removeValidator, setRequired, setRequiredMessage
getDatasource, getMetaProperty, getMetaPropertyPath, setDatasource
addValueChangeListener, clear, getEmptyValue, getValue, isEmpty, removeValueChangeListener, setValue
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, getWidthUnits, isEnabled, isEnabledItself, isEnabledRecursive, isResponsive, isVisible, isVisibleItself, isVisibleRecursive, removeStyleName, requestFocus, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
getValueSource, setValueSource
isEditable, isEditableWithParent, setEditable
getFrame, setFrame
isValid, isValidateOnCommit, validate
getIcon, setIcon, setIconFromSet
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
isCaptionAsHtml, setCaptionAsHtml
getCaption, setCaption
getDescription, setDescription
isDescriptionAsHtml, setDescriptionAsHtml
isHtmlSanitizerEnabled, setHtmlSanitizerEnabled
getOptionCaptionProvider, setOptionCaptionProvider
getCaptionMode, getCaptionProperty, setCaptionMode, setCaptionProperty
void setOptions(@Nullable Options<I> options)
options
- optionsListOptions
default void setOptionsList(java.util.List<I> optionsList)
optionsList
- optionsListOptions.of(Object, Object[])
default void setOptionsMap(java.util.Map<java.lang.String,I> map)
map
- optionsListOptions.of(Object, Object[])
default void setOptionsEnum(java.lang.Class<I> optionsEnum)
EnumClass
.optionsEnum
- enum class@Deprecated @Nullable default CollectionDatasource getOptionsDatasource()
getOptions()
instead.@Deprecated default void setOptionsDatasource(@Nullable CollectionDatasource datasource)
setOptions(Options)
with DatasourceOptions
.datasource
- datasource@Deprecated @Nullable default java.util.List getOptionsList()
getOptions()
instead.@Deprecated @Nullable default java.util.Map<java.lang.String,?> getOptionsMap()
getOptions()
instead.@Deprecated @Nullable default java.lang.Class<? extends EnumClass> getOptionsEnum()
getOptions()
instead.