diff options
author | Leif Åstrand <leif@vaadin.com> | 2013-11-22 15:40:34 +0200 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2013-11-22 15:40:34 +0200 |
commit | d54b02e31dad3e0b0a60e02750efb6bc268e3974 (patch) | |
tree | 09b3710c8d6d2296808807e25c2abf87d4b0e830 /uitest | |
parent | 4caa2f5b6e26ade52a4fba66a0a020b79f9008ea (diff) | |
download | vaadin-framework-d54b02e31dad3e0b0a60e02750efb6bc268e3974.tar.gz vaadin-framework-d54b02e31dad3e0b0a60e02750efb6bc268e3974.zip |
Introduce initial data source support for Grid (#12878)
Change-Id: I2d1b2e4a797b2dac9ee97c832fcd40fb472edc08
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/grid/GridBasicFeatures.java | 11 |
1 files changed, 11 insertions, 0 deletions
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<Grid> { private int columnGroupRows = 0; + private final int ROWS = 1000; + @Override protected Grid constructComponent() { @@ -46,6 +49,14 @@ public class GridBasicFeatures extends AbstractComponentTest<Grid> { 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); |