aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2008-09-03 13:41:23 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2008-09-03 13:41:23 +0000
commite020cee95377f8af500d49e8ef718d5bb22e96d0 (patch)
treef3f9c97ef4b6e9f12c477ef7d393ae06ad75f8d9
parent41af27034ab9f4e0e15b3150fb0ef05cda9d1949 (diff)
downloadvaadin-framework-e020cee95377f8af500d49e8ef718d5bb22e96d0.tar.gz
vaadin-framework-e020cee95377f8af500d49e8ef718d5bb22e96d0.zip
updated test case
svn changeset:5346/svn branch:trunk
-rw-r--r--src/com/itmill/toolkit/tests/TestForTablesInitialColumnWidthLogicRendering.java19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/com/itmill/toolkit/tests/TestForTablesInitialColumnWidthLogicRendering.java b/src/com/itmill/toolkit/tests/TestForTablesInitialColumnWidthLogicRendering.java
index 7debb3bcc2..c5e8a75e04 100644
--- a/src/com/itmill/toolkit/tests/TestForTablesInitialColumnWidthLogicRendering.java
+++ b/src/com/itmill/toolkit/tests/TestForTablesInitialColumnWidthLogicRendering.java
@@ -7,9 +7,11 @@ package com.itmill.toolkit.tests;
import java.util.Iterator;
import java.util.Vector;
+import com.itmill.toolkit.terminal.UserError;
import com.itmill.toolkit.ui.Button;
import com.itmill.toolkit.ui.CustomComponent;
import com.itmill.toolkit.ui.Label;
+import com.itmill.toolkit.ui.Layout;
import com.itmill.toolkit.ui.OrderedLayout;
import com.itmill.toolkit.ui.Table;
import com.itmill.toolkit.ui.Button.ClickEvent;
@@ -40,6 +42,16 @@ public class TestForTablesInitialColumnWidthLogicRendering extends
Table t;
+ Layout lo = new OrderedLayout();
+ lo.setWidth("600px");
+ lo.setHeight("250px");
+
+ t = getTestTable(4, 50);
+ t.setSizeFull();
+ lo.setCaption("Fullsize table insize 400x250px layout");
+ lo.addComponent(t);
+ main.addComponent(lo);
+
// t = new Table("Empty table");
// main.addComponent(t);
@@ -111,13 +123,16 @@ public class TestForTablesInitialColumnWidthLogicRendering extends
for (int j = 0; j < cols; j++) {
content.add(rndString());
}
- content.add(new Button("b", new Button.ClickListener() {
+ Button button = new Button("b", new Button.ClickListener() {
public void buttonClick(ClickEvent event) {
System.out.println("b click");
}
- }));
+ });
+ button.setDescription("Yep yep");
+ button.setComponentError(new UserError("Error"));
+ content.add(button);
t.addItem(content.toArray(), "" + i);
}
return t;