aboutsummaryrefslogtreecommitdiffstats
path: root/shared/src/com
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2016-02-02 12:46:56 +0200
committerTeemu Suo-Anttila <teemusa@vaadin.com>2016-02-03 12:23:25 +0200
commit4b7b21d35cbf80ddfa6e16f62bc4ff65008a4cd5 (patch)
tree8a16cd09fd01eeb8e2f9be2ff63af66c7eeca302 /shared/src/com
parente25dd72efe36de7e59780cda0de472c1183be028 (diff)
downloadvaadin-framework-4b7b21d35cbf80ddfa6e16f62bc4ff65008a4cd5.tar.gz
vaadin-framework-4b7b21d35cbf80ddfa6e16f62bc4ff65008a4cd5.zip
Add simple data update support to DataProvider
This patch adds the option of updating an existing data object. Update is done on the next client response to catch any possible changes before and after the update is initiated. Change-Id: I30ca4803dd7c47befcb8e5ae761860c09cbdb8bd
Diffstat (limited to 'shared/src/com')
-rw-r--r--shared/src/com/vaadin/shared/data/DataProviderClientRpc.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/data/DataProviderClientRpc.java b/shared/src/com/vaadin/shared/data/DataProviderClientRpc.java
index c96a2a64fa..315df89c9b 100644
--- a/shared/src/com/vaadin/shared/data/DataProviderClientRpc.java
+++ b/shared/src/com/vaadin/shared/data/DataProviderClientRpc.java
@@ -66,4 +66,12 @@ public interface DataProviderClientRpc extends ClientRpc {
*/
void drop(String key);
+ /**
+ * Updates an array of objects based on their identifying key.
+ *
+ * @param data
+ * array of updated data
+ */
+ void updateData(JsonArray data);
+
}