Package io.jmix.ui.component
Interface HasOptionImageProvider<T>
- Type Parameters:
T
- option item type
- All Superinterfaces:
Component
- All Known Subinterfaces:
ComboBox<V>
,EntityComboBox<V>
- All Known Implementing Classes:
ComboBoxImpl
,EntityComboBoxImpl
A component that is marked with this interface allows to manage an image 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
setOptionImageProvider
(Function<? super T, Resource> optionImageProvider) Sets a function that provides option images.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
-
setOptionImageProvider
Sets a function that provides option images.- Parameters:
optionImageProvider
- options image provider- See Also:
-
getOptionImageProvider
- Returns:
- options image provider.
-