Browse Source

initial commit for table that caches rows

svn changeset:400/svn branch:toolkit
tags/6.7.0.beta1
Matti Tahvonen 17 years ago
parent
commit
a6b69c0c88
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/com/itmill/toolkit/demo/features/FeatureTable.java

+ 2
- 2
src/com/itmill/toolkit/demo/features/FeatureTable.java View 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);

Loading…
Cancel
Save