diff options
author | Piotr Wilkin <piotr.wilkin@syndatis.com> | 2017-10-10 12:02:47 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-10-10 13:02:47 +0300 |
commit | 802bb98b851ab9b15617b283ccdba3dbc517ada6 (patch) | |
tree | 1edbb81782e941e2a6332fe9b610f9d1fe357c87 /server/src/main/java/com/vaadin/data | |
parent | a8f23e84a0fbb5da515cacffb8f5a85fd4c21694 (diff) | |
download | vaadin-framework-802bb98b851ab9b15617b283ccdba3dbc517ada6.tar.gz vaadin-framework-802bb98b851ab9b15617b283ccdba3dbc517ada6.zip |
Edit grid row by index - server side (#10040)
Opening grid editor from server side.
Fixes #8477.
Addressing #8820 will be the user's responsibility as fetching index of item might be slow.
Diffstat (limited to 'server/src/main/java/com/vaadin/data')
-rw-r--r-- | server/src/main/java/com/vaadin/data/provider/DataCommunicator.java | 2 | ||||
-rw-r--r-- | server/src/main/java/com/vaadin/data/provider/HierarchicalDataCommunicator.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java b/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java index 9996d8d1aa..66bf758efe 100644 --- a/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java +++ b/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java @@ -370,7 +370,7 @@ public class DataCommunicator<T> extends AbstractExtension { * @since 8.1 */ @SuppressWarnings({ "rawtypes", "unchecked" }) - protected List<T> fetchItemsWithRange(int offset, int limit) { + public List<T> fetchItemsWithRange(int offset, int limit) { return (List<T>) getDataProvider().fetch(new Query(offset, limit, backEndSorting, inMemorySorting, filter)) .collect(Collectors.toList()); diff --git a/server/src/main/java/com/vaadin/data/provider/HierarchicalDataCommunicator.java b/server/src/main/java/com/vaadin/data/provider/HierarchicalDataCommunicator.java index 627cc28651..b0397ffcc7 100644 --- a/server/src/main/java/com/vaadin/data/provider/HierarchicalDataCommunicator.java +++ b/server/src/main/java/com/vaadin/data/provider/HierarchicalDataCommunicator.java @@ -66,7 +66,7 @@ public class HierarchicalDataCommunicator<T> extends DataCommunicator<T> { } @Override - protected List<T> fetchItemsWithRange(int offset, int limit) { + public List<T> fetchItemsWithRange(int offset, int limit) { // Instead of adding logic to this class, delegate request to the // separate object handling hierarchies. return mapper.fetchItems(Range.withLength(offset, limit)) |