Interface Tree.ItemGenerator<T>

Type Parameters:
T - item type
All Superinterfaces:
Function<T,com.vaadin.flow.component.Component>, Serializable, com.vaadin.flow.function.SerializableFunction<T,com.vaadin.flow.component.Component>
Enclosing class:
Tree<T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Tree.ItemGenerator<T> extends com.vaadin.flow.function.SerializableFunction<T,com.vaadin.flow.component.Component>
Tree.ItemGenerator can be used to customize how to item is shown. This overrides everything. If for example ItemLabelGenerator or Tree.ItemIconGenerator are defined, they are ignored.
Since:
1.0
Author:
Vaadin Ltd
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.component.Component
    apply(T item)
    Gets a component for the item.

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • apply

      com.vaadin.flow.component.Component apply(T item)
      Gets a component for the item.
      Specified by:
      apply in interface Function<T,com.vaadin.flow.component.Component>
      Parameters:
      item - the item
      Returns:
      the component for the item, not null