@Deprecated public class WebOptionsGroup<V,I> extends WebAbstractField<io.jmix.ui.widget.JmixOptionGroup,V> implements OptionsGroup<V,I>
Field.Validator<T>io.jmix.ui.component.HasValue.ValueChangeEvent<V>io.jmix.ui.component.Component.Alignment, io.jmix.ui.component.Component.BelongToFrame, io.jmix.ui.component.Component.Disposable, io.jmix.ui.component.Component.Editable, io.jmix.ui.component.Component.Focusable, io.jmix.ui.component.Component.HasCaption, io.jmix.ui.component.Component.HasDescription, io.jmix.ui.component.Component.HasIcon, io.jmix.ui.component.Component.HasXmlDescriptor, io.jmix.ui.component.Component.Wrapperio.jmix.ui.component.HasContextHelp.ContextHelpIconClickEventLookupComponent.LookupSelectionChangeNotifier<T>| Modifier and Type | Field and Description |
|---|---|
protected io.jmix.core.MetadataTools |
metadataTools
Deprecated.
|
protected java.util.function.Function<? super I,java.lang.String> |
optionCaptionProvider
Deprecated.
|
protected io.jmix.ui.component.data.meta.OptionsBinding<I> |
optionsBinding
Deprecated.
|
editable, internalValue, parentEditableChangeListener, uiTestIdsSupport, validators, VALIDATORS_LIST_INITIAL_CAPACITY, valueBindingalignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parentNAME| Constructor and Description |
|---|
WebOptionsGroup()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValidator(java.util.function.Consumer<? super V> validator)
Deprecated.
|
protected V |
convertToModel(java.lang.Object componentRawValue)
Deprecated.
|
protected java.lang.Object |
convertToPresentation(V modelValue)
Deprecated.
|
protected io.jmix.ui.widget.JmixOptionGroup |
createComponent()
Deprecated.
|
protected boolean |
equalCollections(java.util.Collection<V> a,
java.util.Collection<V> b)
Deprecated.
|
protected boolean |
fieldValueEquals(V value,
V oldValue)
Deprecated.
|
void |
focus()
Deprecated.
|
protected java.lang.String |
generateDefaultItemCaption(I item)
Deprecated.
|
protected java.lang.String |
generateItemCaption(I item)
Deprecated.
|
protected java.util.List<I> |
getCurrentItems()
Deprecated.
|
java.util.Collection |
getLookupSelectedItems()
Deprecated.
|
java.util.function.Function<? super I,java.lang.String> |
getOptionCaptionProvider()
Deprecated.
|
io.jmix.ui.component.data.Options<I> |
getOptions()
Deprecated.
|
io.jmix.ui.component.HasOrientation.Orientation |
getOrientation()
Deprecated.
|
int |
getTabIndex()
Deprecated.
|
V |
getValue()
Deprecated.
|
boolean |
isEmpty()
Deprecated.
|
protected boolean |
isEmpty(java.lang.Object value)
Deprecated.
|
boolean |
isMultiSelect()
Deprecated.
|
void |
removeValidator(java.util.function.Consumer<V> validator)
Deprecated.
|
void |
setLookupSelectHandler(java.util.function.Consumer selectHandler)
Deprecated.
|
void |
setMetadataTools(io.jmix.core.MetadataTools metadataTools)
Deprecated.
|
void |
setMultiSelect(boolean multiselect)
Deprecated.
|
void |
setOptionCaptionProvider(java.util.function.Function<? super I,java.lang.String> optionCaptionProvider)
Deprecated.
|
void |
setOptions(io.jmix.ui.component.data.Options<I> options)
Deprecated.
|
protected void |
setOptionsToComponent(java.util.stream.Stream<I> options)
Deprecated.
|
void |
setOrientation(io.jmix.ui.component.HasOrientation.Orientation orientation)
Deprecated.
|
void |
setTabIndex(int tabIndex)
Deprecated.
|
protected void |
setValueToPresentation(java.lang.Object value)
Deprecated.
|
protected void |
valueBindingConnected(io.jmix.ui.component.data.ValueSource<V> valueSource)
Deprecated.
|
addValidator, addValueChangeListener, attachListener, commit, componentValueChanged, discard, getRequiredMessage, getValidators, getValueSource, initFieldConverter, isBuffered, isEditable, isModified, isRequired, isValid, removeValidator, setBuffered, setEditable, setEditableToComponent, setParent, setRequired, setRequiredMessage, setUiTestId, setUiTestIdsSupport, setValue, setValueSource, validate, valueBindingActivatedaddAttachListener, addDetachListener, addStyleName, assignDebugId, attached, detached, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescription, setDescriptionAsHtml, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOptionsDatasource, getOptionsEnum, getOptionsList, getOptionsMap, setOptionsDatasourceaddValidators, getDatasource, getMetaProperty, getMetaPropertyPath, setDatasourcesetOptionsEnum, setOptionsList, setOptionsMapgetValueSource, setValueSourceaddValueChangeListener, clear, getEmptyValue, setValueisEditable, isEditableWithParent, setEditableaddStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionisValid, isValidateOnCommit, validategetIcon, setIcon, setIconFromSetgetContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledisCaptionAsHtml, setCaptionAsHtmlisDescriptionAsHtml, setDescriptionAsHtmlisHtmlSanitizerEnabled, setHtmlSanitizerEnabledaddValidator, addValidators, getValidators, removeValidatorgetRequiredMessage, isRequired, setRequired, setRequiredMessagegetCaptionMode, getCaptionProperty, setCaptionMode, setCaptionPropertyprotected io.jmix.core.MetadataTools metadataTools
protected io.jmix.ui.component.data.meta.OptionsBinding<I> optionsBinding
protected java.util.function.Function<? super I,java.lang.String> optionCaptionProvider
protected io.jmix.ui.widget.JmixOptionGroup createComponent()
public V getValue()
getValue in interface io.jmix.ui.component.HasValue<V>getValue in class WebAbstractField<io.jmix.ui.widget.JmixOptionGroup,V>protected boolean fieldValueEquals(V value, V oldValue)
fieldValueEquals in class WebAbstractField<io.jmix.ui.widget.JmixOptionGroup,V>protected boolean equalCollections(java.util.Collection<V> a, java.util.Collection<V> b)
protected java.lang.String generateDefaultItemCaption(I item)
protected java.lang.String generateItemCaption(I item)
@Autowired public void setMetadataTools(io.jmix.core.MetadataTools metadataTools)
public boolean isMultiSelect()
isMultiSelect in interface OptionsGroup<V,I>public void setMultiSelect(boolean multiselect)
setMultiSelect in interface OptionsGroup<V,I>public io.jmix.ui.component.HasOrientation.Orientation getOrientation()
getOrientation in interface io.jmix.ui.component.HasOrientationpublic void setOrientation(io.jmix.ui.component.HasOrientation.Orientation orientation)
setOrientation in interface io.jmix.ui.component.HasOrientationprotected V convertToModel(java.lang.Object componentRawValue)
convertToModel in class WebAbstractField<io.jmix.ui.widget.JmixOptionGroup,V>protected java.util.List<I> getCurrentItems()
protected java.lang.Object convertToPresentation(V modelValue)
convertToPresentation in class WebAbstractField<io.jmix.ui.widget.JmixOptionGroup,V>public void setLookupSelectHandler(java.util.function.Consumer selectHandler)
setLookupSelectHandler in interface io.jmix.ui.component.LookupComponentpublic java.util.Collection getLookupSelectedItems()
getLookupSelectedItems in interface io.jmix.ui.component.LookupComponentpublic io.jmix.ui.component.data.Options<I> getOptions()
public void setOptions(io.jmix.ui.component.data.Options<I> options)
protected void valueBindingConnected(io.jmix.ui.component.data.ValueSource<V> valueSource)
valueBindingConnected in class WebAbstractField<io.jmix.ui.widget.JmixOptionGroup,V>protected void setValueToPresentation(java.lang.Object value)
setValueToPresentation in class WebAbstractField<io.jmix.ui.widget.JmixOptionGroup,V>protected void setOptionsToComponent(java.util.stream.Stream<I> options)
public void setOptionCaptionProvider(java.util.function.Function<? super I,java.lang.String> optionCaptionProvider)
setOptionCaptionProvider in interface io.jmix.ui.component.HasOptionCaptionProvider<I>public java.util.function.Function<? super I,java.lang.String> getOptionCaptionProvider()
getOptionCaptionProvider in interface io.jmix.ui.component.HasOptionCaptionProvider<I>public void focus()
focus in interface io.jmix.ui.component.Component.Focusablepublic int getTabIndex()
getTabIndex in interface io.jmix.ui.component.Component.Focusablepublic void setTabIndex(int tabIndex)
setTabIndex in interface io.jmix.ui.component.Component.Focusablepublic boolean isEmpty()
isEmpty in interface io.jmix.ui.component.HasValue<V>protected boolean isEmpty(java.lang.Object value)
isEmpty in class WebAbstractField<io.jmix.ui.widget.JmixOptionGroup,V>public void addValidator(java.util.function.Consumer<? super V> validator)
public void removeValidator(java.util.function.Consumer<V> validator)