Interface HasItemCaptionProvider<I>

Type Parameters:
I - component value type
All Superinterfaces:
Component
All Known Subinterfaces:
Tree<E>
All Known Implementing Classes:
TreeImpl

public interface HasItemCaptionProvider<I> extends Component
A component that is marked with this interface allows to manage caption for component item.
  • Method Details

    • setItemCaptionProvider

      void setItemCaptionProvider(@Nullable Function<? super I,String> itemCaptionProvider)
      Sets function that provides caption for component item.
      Parameters:
      itemCaptionProvider - caption provider for item
    • getItemCaptionProvider

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