Interface HasOptionCaptionProvider<I>

Type Parameters:
I - option item type
All Superinterfaces:
Component
All Known Subinterfaces:
CheckBoxGroup<I>, ComboBox<V>, EntityComboBox<V>, MultiSelectList<V>, OptionsField<V,I>, RadioButtonGroup<I>, SelectList<V,I>, SingleSelectList<V>, TagPicker<V>, TwinColumn<V>
All Known Implementing Classes:
AbstractSelectList, CheckBoxGroupImpl, ComboBoxImpl, EntityComboBoxImpl, MultiSelectListImpl, RadioButtonGroupImpl, SingleSelectListImpl, TagPickerImpl, TwinColumnImpl

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

    • setOptionCaptionProvider

      void setOptionCaptionProvider(@Nullable Function<? super I,String> optionCaptionProvider)
      Sets function that provides caption for option items.
      Parameters:
      optionCaptionProvider - caption provider for options
    • getOptionCaptionProvider

      @Nullable Function<? super I,String> getOptionCaptionProvider()
      Returns:
      caption provider for options