Class HierarchicalCommunicationController<T>
java.lang.Object
com.vaadin.flow.data.provider.hierarchy.HierarchicalCommunicationController<T>
- Type Parameters:
T- the target bean type
- All Implemented Interfaces:
Serializable
@Deprecated(since="24.9",
forRemoval=true)
public class HierarchicalCommunicationController<T>
extends Object
implements Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
since 24.9 and will be removed in Vaadin 25.
HierarchicalCommunicationController controls all the communication to client.
- Since:
- 1.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHierarchicalCommunicationController(String parentKey, DataKeyMapper<T> keyMapper, HierarchyMapper<T, ?> mapper, DataGenerator<T> dataGenerator, SerializableFunction<Integer, HierarchicalArrayUpdater.HierarchicalUpdate> startUpdate, SerializableBiFunction<String, Range, Stream<T>> fetchItems) Deprecated, for removal: This API element is subject to removal in a future version.Constructs communication controller with support for hierarchical data structure. -
Method Summary
Modifier and TypeMethodDescriptionvoidconfirmUpdate(int updateId) Deprecated, for removal: This API element is subject to removal in a future version.voidflush()Deprecated, for removal: This API element is subject to removal in a future version.elemental.json.JsonValuegenerateJson(T item) Deprecated, for removal: This API element is subject to removal in a future version.voidsetHasUniqueKeyProviderSupplier(boolean hasUniqueKeyProviderSupplier) Deprecated, for removal: This API element is subject to removal in a future version.voidsetRequestRange(int start, int length) Deprecated, for removal: This API element is subject to removal in a future version.voidsetResendEntireRange(boolean resend) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
HierarchicalCommunicationController
public HierarchicalCommunicationController(String parentKey, DataKeyMapper<T> keyMapper, HierarchyMapper<T, ?> mapper, DataGenerator<T> dataGenerator, SerializableFunction<Integer, HierarchicalArrayUpdater.HierarchicalUpdate> startUpdate, SerializableBiFunction<String, Range, Stream<T>> fetchItems) Deprecated, for removal: This API element is subject to removal in a future version.Constructs communication controller with support for hierarchical data structure.- Parameters:
parentKey- parent key or null if rootkeyMapper- Object to String key mappermapper- Mapper for hierarchical datadataGenerator- A data generator for itemsstartUpdate- Function for creating a newArrayUpdater.Updatefor clientfetchItems- Function for fetching items for target parent and specified range
-
-
Method Details
-
flush
public void flush()Deprecated, for removal: This API element is subject to removal in a future version. -
confirmUpdate
public void confirmUpdate(int updateId) Deprecated, for removal: This API element is subject to removal in a future version. -
setRequestRange
public void setRequestRange(int start, int length) Deprecated, for removal: This API element is subject to removal in a future version. -
setResendEntireRange
public void setResendEntireRange(boolean resend) Deprecated, for removal: This API element is subject to removal in a future version. -
unregisterPassivatedKeys
public void unregisterPassivatedKeys()Deprecated, for removal: This API element is subject to removal in a future version. -
generateJson
Deprecated, for removal: This API element is subject to removal in a future version. -
setHasUniqueKeyProviderSupplier
public void setHasUniqueKeyProviderSupplier(boolean hasUniqueKeyProviderSupplier) Deprecated, for removal: This API element is subject to removal in a future version.
-