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

public interface HasOptionImageProvider<T> extends Component
A component that is marked with this interface allows to manage an image for option displayed by this component.
  • Method Details

    • setOptionImageProvider

      void setOptionImageProvider(@Nullable Function<? super T,Resource> optionImageProvider)
      Sets a function that provides option images.
      Parameters:
      optionImageProvider - options image provider
      See Also:
    • getOptionImageProvider

      @Nullable Function<? super T,Resource> getOptionImageProvider()
      Returns:
      options image provider.