summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorLeif Åstrand <legioth@gmail.com>2017-01-19 09:12:24 +0200
committerDenis <denis@vaadin.com>2017-01-19 09:12:24 +0200
commitdafc8310259a2e79bb203c7f786c9aba5354937b (patch)
treefb79a51b356e867f405238ec013faa58c6861930 /uitest
parent67d69c8d5d6bb066c792cfaa65f2b68f6ec8cc2b (diff)
downloadvaadin-framework-dafc8310259a2e79bb203c7f786c9aba5354937b.tar.gz
vaadin-framework-dafc8310259a2e79bb203c7f786c9aba5354937b.zip
Change BackEndDataProvider into an interface (#8268)
* Change BackEndDataProvider into an interface BackEndDataProvider is now an interface with methods for setting sorting options based on SortOrder instances. AbstractBackEndDataProvider stores sorting options, combines them with the sorting provided in the query and invokes its own abstract fetch and size methods. CallbackDataProvider implements a BackEndDataProvider based on two lambdas. This is one of many steps towards #8245
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/main/java/com/vaadin/tests/util/ItemDataProvider.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/util/ItemDataProvider.java b/uitest/src/main/java/com/vaadin/tests/util/ItemDataProvider.java
index f7261a5d6d..90d668cf78 100644
--- a/uitest/src/main/java/com/vaadin/tests/util/ItemDataProvider.java
+++ b/uitest/src/main/java/com/vaadin/tests/util/ItemDataProvider.java
@@ -4,7 +4,7 @@ import java.util.Locale;
import java.util.stream.IntStream;
import java.util.stream.Stream;
-import com.vaadin.data.provider.BackEndDataProvider;
+import com.vaadin.data.provider.CallbackDataProvider;
import com.vaadin.data.provider.Query;
/**
@@ -12,7 +12,8 @@ import com.vaadin.data.provider.Query;
*
* @author Vaadin Ltd
*/
-public class ItemDataProvider extends BackEndDataProvider<String, String> {
+public class ItemDataProvider
+ extends CallbackDataProvider<String, String> {
public ItemDataProvider(int size) {
super(q -> itemStream(q, size).skip(q.getOffset()).limit(q.getLimit()),