Interface CollectionComponentProvider<C extends com.vaadin.flow.component.Component>
-
- Type Parameters:
C- Type of component provided.
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
CollectionLayoutProvider<C>,CollectionValueComponentProvider<T,C>
- 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 interface CollectionComponentProvider<C extends com.vaadin.flow.component.Component> extends Serializable
Catch-all interface for everything related to producingComponents for aCollectionField.- Since:
- 2021-09-10
- Author:
- miki
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CprovideComponent(int index, CollectionController controller)Constructs the component for an object at given index.
-
-
-
Method Detail
-
provideComponent
C provideComponent(int index, CollectionController controller)
Constructs the component for an object at given index.- Parameters:
index- Current index ofobjectin the collection.controller- ACollectionControllerto be used for callbacks.- Returns:
- Non-
nullcomponent.
-
-