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

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

    • setOptionIconProvider

      void setOptionIconProvider(@Nullable Function<? super T,String> optionIconProvider)
      Sets a function that provides an icon for options.
      Parameters:
      optionIconProvider - icon provider for options to set
    • getOptionIconProvider

      @Nullable Function<? super T,String> getOptionIconProvider()
      Returns:
      options icon provider or null if not defined