Interface HasOptionDescriptionProvider<T>

Type Parameters:
T - option item type
All Superinterfaces:
Component
All Known Subinterfaces:
CheckBoxGroup<I>, RadioButtonGroup<I>
All Known Implementing Classes:
CheckBoxGroupImpl, RadioButtonGroupImpl

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

    • setOptionDescriptionProvider

      void setOptionDescriptionProvider(@Nullable Function<? super T,String> optionDescriptionProvider)
      Sets the option description provider.
      Parameters:
      optionDescriptionProvider - provider which provides descriptions for options
    • getOptionDescriptionProvider

      @Nullable Function<? super T,String> getOptionDescriptionProvider()
      Returns:
      option description provider