summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/TreeTable.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-09-06 22:42:20 +0300
committerArtur Signell <artur@vaadin.com>2012-09-06 22:42:41 +0300
commit8d390ff6691a18ff33622ab9ee7c9e63c4fddc91 (patch)
treef855be2b8aff94886233fdc02c00afa528576d43 /server/src/com/vaadin/ui/TreeTable.java
parent553f67b697e749263a133413a77be64175b23c59 (diff)
downloadvaadin-framework-8d390ff6691a18ff33622ab9ee7c9e63c4fddc91.tar.gz
vaadin-framework-8d390ff6691a18ff33622ab9ee7c9e63c4fddc91.zip
Simple override for getItemIds(int,int) for TreeTable (#9509)
Diffstat (limited to 'server/src/com/vaadin/ui/TreeTable.java')
-rw-r--r--server/src/com/vaadin/ui/TreeTable.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/TreeTable.java b/server/src/com/vaadin/ui/TreeTable.java
index ef5850a8af..8bf72c2db1 100644
--- a/server/src/com/vaadin/ui/TreeTable.java
+++ b/server/src/com/vaadin/ui/TreeTable.java
@@ -869,4 +869,12 @@ public class TreeTable extends Table implements Hierarchical {
return Logger.getLogger(TreeTable.class.getName());
}
+ @Override
+ protected List<Object> getItemIds(int firstIndex, int rows) {
+ List<Object> itemIds = new ArrayList<Object>();
+ for (int i = firstIndex; i < firstIndex + rows; i++) {
+ itemIds.add(getIdByIndex(i));
+ }
+ return itemIds;
+ }
}