From e020cee95377f8af500d49e8ef718d5bb22e96d0 Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Wed, 3 Sep 2008 13:41:23 +0000 Subject: [PATCH] updated test case svn changeset:5346/svn branch:trunk --- ...ablesInitialColumnWidthLogicRendering.java | 19 +++++++++++++++++-- 1 file 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; -- 2.39.5