瀏覽代碼

initial commit for table that caches rows

svn changeset:400/svn branch:toolkit
tags/6.7.0.beta1
Matti Tahvonen 17 年之前
父節點
當前提交
a6b69c0c88
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      src/com/itmill/toolkit/demo/features/FeatureTable.java

+ 2
- 2
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);

Loading…
取消
儲存