Package io.jmix.ui.component
Interface HasOptionIconProvider<T>
- Type Parameters:
T
- option item type
- All Superinterfaces:
Component
- All Known Subinterfaces:
CheckBoxGroup<I>
,ComboBox<V>
,EntityComboBox<V>
,RadioButtonGroup<I>
- All Known Implementing Classes:
CheckBoxGroupImpl
,ComboBoxImpl
,EntityComboBoxImpl
,RadioButtonGroupImpl
A component that is marked with this interface allows to manage an icon for option displayed
by this component.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
-
Field Summary
Fields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setOptionIconProvider
(Function<? super T, String> optionIconProvider) Sets a function that provides an icon for options.Methods inherited from interface io.jmix.ui.component.Component
addStyleName, 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, withUnwrappedComposition
-
Method Details
-
setOptionIconProvider
Sets a function that provides an icon for options.- Parameters:
optionIconProvider
- icon provider for options to set
-
getOptionIconProvider
- Returns:
- options icon provider or
null
if not defined
-