Interface HasOptionStyleProvider<I>

Type Parameters:
I - option item type
All Superinterfaces:
Component
All Known Subinterfaces:
ComboBox<V>, EntityComboBox<V>, EntitySuggestionField<V>, SuggestionField<V>, SuggestionFieldComponent<V,I>, TagField<V>, TwinColumn<V>
All Known Implementing Classes:
AbstractSuggestionField, ComboBoxImpl, EntityComboBoxImpl, EntitySuggestionFieldImpl, SuggestionFieldImpl, TagFieldImpl, TwinColumnImpl

public interface HasOptionStyleProvider<I> extends Component
A component that is marked with this interface allows to manage additional style names for options displayed by this component.
  • Method Details

    • setOptionStyleProvider

      void setOptionStyleProvider(@Nullable Function<? super I,String> optionStyleProvider)
      Sets the style provider that is used to produce custom class names for option items.
      Parameters:
      optionStyleProvider - style provider
    • getOptionStyleProvider

      @Nullable Function<? super I,String> getOptionStyleProvider()
      Returns:
      the currently used item style provider