aboutsummaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorHenrik Paul <henrik@vaadin.com>2014-08-05 11:27:08 +0300
committerVaadin Code Review <review@vaadin.com>2014-08-19 10:57:06 +0000
commit448619c5168603c134ad4d578bae1d577b00b543 (patch)
tree75289ae0b0e525f4d1c81cce62a7a49ef196c364 /shared
parent5dfdd40d00dc0f7a2eea19f8c77485f1afcf77ad (diff)
downloadvaadin-framework-448619c5168603c134ad4d578bae1d577b00b543.tar.gz
vaadin-framework-448619c5168603c134ad4d578bae1d577b00b543.zip
Sending a drag select over the wire in a batch (#13334)
Change-Id: I49a518b484557d232542e999a2f41ffad3cc7568
Diffstat (limited to 'shared')
-rw-r--r--shared/src/com/vaadin/shared/data/DataRequestRpc.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/shared/src/com/vaadin/shared/data/DataRequestRpc.java b/shared/src/com/vaadin/shared/data/DataRequestRpc.java
index 8b0bd4adcb..000d196be9 100644
--- a/shared/src/com/vaadin/shared/data/DataRequestRpc.java
+++ b/shared/src/com/vaadin/shared/data/DataRequestRpc.java
@@ -16,6 +16,8 @@
package com.vaadin.shared.data;
+import java.util.List;
+
import com.vaadin.shared.communication.ServerRpc;
/**
@@ -37,7 +39,17 @@ public interface DataRequestRpc extends ServerRpc {
* the index of the first cached row
* @param cacheSize
* the number of cached rows
+ * @param temporarilyPinnedKeys
+ * the keys that should remain pinned, even if some of these
+ * would fall out of the cache range
*/
public void requestRows(int firstRowIndex, int numberOfRows,
- int firstCachedRowIndex, int cacheSize);
+ int firstCachedRowIndex, int cacheSize,
+ List<String> temporarilyPinnedKeys);
+
+ /**
+ * Informs the back-end that the temporarily pinned keys in
+ * {@link #requestRows(int, int, int, int, List)} may be released.
+ */
+ public void releaseTemporarilyPinnedKeys();
}