Interface HierarchicalArrayUpdater.HierarchicalUpdate
-
- All Superinterfaces:
ArrayUpdater.Update
,Serializable
- Enclosing interface:
- HierarchicalArrayUpdater
public static interface HierarchicalArrayUpdater.HierarchicalUpdate extends ArrayUpdater.Update
Array updater strategy that is aware of hierarchical changes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear(int start, int length, String parentKey)
Clearslength
elements in array from thestart
position.void
commit()
Commits enqueued function calls added viaenqueue(String, Serializable...)
.void
commit(int updateId, String parentKey, int levelSize)
Commits changes for the givenupdateId
and parent key.void
enqueue(String name, Serializable... arguments)
Enqueue function call with the given arguments.void
set(int start, List<elemental.json.JsonValue> items, String parentKey)
Sets theitems
at thestart
position.-
Methods inherited from interface com.vaadin.flow.data.provider.ArrayUpdater.Update
clear, commit, set
-
-
-
-
Method Detail
-
clear
void clear(int start, int length, String parentKey)
Clearslength
elements in array from thestart
position.- Parameters:
start
- the start indexlength
- the number of elements to clearparentKey
- Parent item key that cleared range affects
-
set
void set(int start, List<elemental.json.JsonValue> items, String parentKey)
Sets theitems
at thestart
position.- Parameters:
start
- the start indexitems
- the items to setparentKey
- Parent item key where given items belongs to
-
commit
void commit()
Commits enqueued function calls added viaenqueue(String, Serializable...)
.
-
enqueue
void enqueue(String name, Serializable... arguments)
Enqueue function call with the given arguments.- Parameters:
name
- the name of the function to call, may contain dots to indicate a function on a property.arguments
- the arguments to pass to the function. Must be of a type supported by the communication mechanism, as defined byJsonCodec
- See Also:
JsonCodec for supported argument types
-
commit
void commit(int updateId, String parentKey, int levelSize)
Commits changes for the givenupdateId
and parent key.- Parameters:
updateId
- the update identifier of the commit for the target parentKeyparentKey
- target parent keylevelSize
- Total number of direct child items for the given parent key
-
-