| Package | Description |
|---|---|
| com.vaadin.flow.data.provider | |
| com.vaadin.flow.data.provider.hierarchy | |
| com.vaadin.flow.data.renderer |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractComponentDataGenerator<T>
Abstract class used as base for DataGenerators that need to manage the
lifecycle of components, according to what items are requested or destroyed.
|
class |
BeanDataGenerator<T>
A
DataGenerator that sends all the fields of the objects in the model
to the client, using the field names as property names. |
class |
ComponentDataGenerator<T>
A
DataGenerator that manages the creation and passivation of
components generated by ComponentRenderers. |
class |
CompositeDataGenerator<T>
A
DataGenerator that aggregates multiple DataGenerators and delegates
the data generation to them. |
| Modifier and Type | Method and Description |
|---|---|
Registration |
CompositeDataGenerator.addDataGenerator(DataGenerator<T> generator) |
Registration |
HasDataGenerators.addDataGenerator(DataGenerator<T> generator)
Adds the given data generator.
|
void |
CompositeDataGenerator.removeDataGenerator(DataGenerator<T> generator)
Removes the DataGenerator from the list, destroying its data.
|
void |
HasDataGenerators.removeDataGenerator(DataGenerator<T> generator)
Deprecated.
Use the registration returned from
HasDataGenerators.addDataGenerator(DataGenerator) instead. |
| Constructor and Description |
|---|
DataCommunicator(DataGenerator<T> dataGenerator,
ArrayUpdater arrayUpdater,
SerializableConsumer<elemental.json.JsonArray> dataUpdater,
StateNode stateNode)
Creates a new instance.
|
| Constructor and Description |
|---|
HierarchicalCommunicationController(String parentKey,
DataKeyMapper<T> keyMapper,
HierarchyMapper<T,?> mapper,
DataGenerator<T> dataGenerator,
SerializableFunction<Integer,HierarchicalArrayUpdater.HierarchicalUpdate> startUpdate,
SerializableBiFunction<String,Range,Stream<T>> fetchItems)
Constructs communication controller with support for hierarchical data
structure.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<DataGenerator<SOURCE>> |
Rendering.getDataGenerator()
Gets a
DataGenerator associated with the renderer. |
Copyright © 2000–2018 Vaadin Ltd. All rights reserved.