From: Matti Tahvonen Date: Thu, 1 Feb 2007 15:07:14 +0000 (+0000) Subject: initial commit for table that caches rows X-Git-Tag: 6.7.0.beta1~6719 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a6b69c0c88ace370ab9ee1cf1ed2b2d92c03d47b;p=vaadin-framework.git initial commit for table that caches rows svn changeset:400/svn branch:toolkit --- diff --git a/src/com/itmill/toolkit/demo/features/FeatureTable.java b/src/com/itmill/toolkit/demo/features/FeatureTable.java index 60064302ed..8f54ded7a8 100644 --- a/src/com/itmill/toolkit/demo/features/FeatureTable.java +++ b/src/com/itmill/toolkit/demo/features/FeatureTable.java @@ -95,7 +95,7 @@ public class FeatureTable extends Feature implements Action.Handler { t.addContainerProperty("Haircolor", String.class, ""); // Add random rows to table - for (int j = 0; j < 50; j++) { + for (int j = 0; j < 500; j++) { Object id = t.addItem( new Object[] { firstnames[(int) (Math.random() * (firstnames.length-1))], @@ -164,7 +164,7 @@ public class FeatureTable extends Feature implements Action.Handler { p.addProperties("Table Properties", ap); l.addComponent(p); - t.setRowHeaderMode(Table.ROW_HEADER_MODE_EXPLICIT_DEFAULTS_ID); + t.setRowHeaderMode(Table.ROW_HEADER_MODE_INDEX); t.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_EXPLICIT_DEFAULTS_ID); t.setColumnCollapsingAllowed(true); t.setColumnReorderingAllowed(true);