]> source.dussan.org Git - vaadin-framework.git/commitdiff
initial commit for table that caches rows
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 1 Feb 2007 15:07:14 +0000 (15:07 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 1 Feb 2007 15:07:14 +0000 (15:07 +0000)
svn changeset:400/svn branch:toolkit

src/com/itmill/toolkit/demo/features/FeatureTable.java

index 60064302ed0f0d6a28d2067d2fe548fff758d913..8f54ded7a8fef42d2e7ebe547c1d8cc7d0c0305e 100644 (file)
@@ -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);