Class ComponentDataGenerator<T>

java.lang.Object
com.vaadin.flow.data.provider.AbstractComponentDataGenerator<T>
com.vaadin.flow.data.renderer.ComponentDataGenerator<T>
Type Parameters:
T - the date type
All Implemented Interfaces:
DataGenerator<T>, Serializable

public class ComponentDataGenerator<T> extends AbstractComponentDataGenerator<T>
A DataGenerator that manages the creation and passivation of components generated by ComponentRenderers. It also manages the generation of the nodeId property which is needed to get the element reference on the client side.

This class is used internally by listing components that support ComponentRenderers.

Author:
Vaadin Ltd
See Also:
  • Constructor Details

    • ComponentDataGenerator

      public ComponentDataGenerator(ComponentRenderer<? extends Component,T> componentRenderer, ValueProvider<T,String> keyMapper)
      Creates a new generator.
      Parameters:
      componentRenderer - the renderer used to produce components based on data items
      keyMapper - the DataKeyMapper used to fetch keys for items
  • Method Details