aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/demo/features/FeatureTable.java
diff options
context:
space:
mode:
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>2007-02-07 11:19:37 +0000
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>2007-02-07 11:19:37 +0000
commit9133c0fa14565af197c712e273feebf2cb7717b0 (patch)
treee56b85027415823291731595dcd85a675163f830 /src/com/itmill/toolkit/demo/features/FeatureTable.java
parentfc2b943f85f179ed4cd7ee4dd4315c83edfdcf0f (diff)
downloadvaadin-framework-9133c0fa14565af197c712e273feebf2cb7717b0.tar.gz
vaadin-framework-9133c0fa14565af197c712e273feebf2cb7717b0.zip
Table width / height set
svn changeset:510/svn branch:toolkit
Diffstat (limited to 'src/com/itmill/toolkit/demo/features/FeatureTable.java')
-rw-r--r--src/com/itmill/toolkit/demo/features/FeatureTable.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/itmill/toolkit/demo/features/FeatureTable.java b/src/com/itmill/toolkit/demo/features/FeatureTable.java
index fe117c2921..3dd0168eb0 100644
--- a/src/com/itmill/toolkit/demo/features/FeatureTable.java
+++ b/src/com/itmill/toolkit/demo/features/FeatureTable.java
@@ -29,6 +29,7 @@
package com.itmill.toolkit.demo.features;
import com.itmill.toolkit.event.Action;
+import com.itmill.toolkit.terminal.Sizeable;
import com.itmill.toolkit.ui.*;
public class FeatureTable extends Feature implements Action.Handler {
@@ -80,9 +81,11 @@ public class FeatureTable extends Feature implements Action.Handler {
t.addContainerProperty("Age", String.class, "");
t.addContainerProperty("Eyecolor", String.class, "");
t.addContainerProperty("Haircolor", String.class, "");
+ t.setHeight(250);
+ t.setWidth(400);
// Add random rows to table
- for (int j = 0; j < 500; j++) {
+ for (int j = 0; j < 300; j++) {
Object id = t
.addItem(
new Object[] {
@@ -102,7 +105,7 @@ public class FeatureTable extends Feature implements Action.Handler {
Form ap = propertyPanel.createBeanPropertySet(new String[] {
"pageLength", "rowHeaderMode", "selectable",
"columnHeaderMode", "columnCollapsingAllowed",
- "columnReorderingAllowed" });
+ "columnReorderingAllowed", "width", "height" });
ap.replaceWithSelect("columnHeaderMode", new Object[] {
new Integer(Table.COLUMN_HEADER_MODE_EXPLICIT),
new Integer(Table.COLUMN_HEADER_MODE_EXPLICIT_DEFAULTS_ID),