From d54b02e31dad3e0b0a60e02750efb6bc268e3974 Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Fri, 22 Nov 2013 15:40:34 +0200 Subject: Introduce initial data source support for Grid (#12878) Change-Id: I2d1b2e4a797b2dac9ee97c832fcd40fb472edc08 --- .../com/vaadin/tests/components/grid/GridBasicFeatures.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'uitest/src/com') diff --git a/uitest/src/com/vaadin/tests/components/grid/GridBasicFeatures.java b/uitest/src/com/vaadin/tests/components/grid/GridBasicFeatures.java index bd3e96f84a..7bf5d65e8b 100644 --- a/uitest/src/com/vaadin/tests/components/grid/GridBasicFeatures.java +++ b/uitest/src/com/vaadin/tests/components/grid/GridBasicFeatures.java @@ -17,6 +17,7 @@ package com.vaadin.tests.components.grid; import java.util.ArrayList; +import com.vaadin.data.Item; import com.vaadin.data.util.IndexedContainer; import com.vaadin.tests.components.AbstractComponentTest; import com.vaadin.ui.components.grid.ColumnGroup; @@ -36,6 +37,8 @@ public class GridBasicFeatures extends AbstractComponentTest { private int columnGroupRows = 0; + private final int ROWS = 1000; + @Override protected Grid constructComponent() { @@ -46,6 +49,14 @@ public class GridBasicFeatures extends AbstractComponentTest { ds.addContainerProperty("Column" + col, String.class, ""); } + for (int row = 0; row < ROWS; row++) { + Item item = ds.addItem(Integer.valueOf(row)); + for (int col = 0; col < COLUMNS; col++) { + item.getItemProperty("Column" + col).setValue( + "(" + row + ", " + col + ")"); + } + } + // Create grid Grid grid = new Grid(ds); -- cgit v1.2.3