diff options
author | Artur Signell <artur.signell@itmill.com> | 2009-08-28 13:07:34 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2009-08-28 13:07:34 +0000 |
commit | fa902ac657d6f516c5a870b261202d88ebfdfa41 (patch) | |
tree | 2f3fe71058bc11ad42c4b62dab3904607416c050 /src/com | |
parent | f290f585efc25f428f58e8ac3bdb8665622272f9 (diff) | |
download | vaadin-framework-fa902ac657d6f516c5a870b261202d88ebfdfa41.tar.gz vaadin-framework-fa902ac657d6f516c5a870b261202d88ebfdfa41.zip |
Test case for #3143
svn changeset:8576/svn branch:6.1
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/vaadin/tests/components/table/ColumnExpandWithFixedColumns.java | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/com/vaadin/tests/components/table/ColumnExpandWithFixedColumns.java b/src/com/vaadin/tests/components/table/ColumnExpandWithFixedColumns.java new file mode 100644 index 0000000000..f0c3779a4e --- /dev/null +++ b/src/com/vaadin/tests/components/table/ColumnExpandWithFixedColumns.java @@ -0,0 +1,45 @@ +package com.vaadin.tests.components.table;
+
+import com.vaadin.tests.components.TestBase;
+import com.vaadin.ui.Button;
+import com.vaadin.ui.Component;
+import com.vaadin.ui.Label;
+import com.vaadin.ui.Table;
+
+public class ColumnExpandWithFixedColumns extends TestBase {
+
+ private Table createTable() {
+ Table t = new Table();
+ t.addContainerProperty("id", Integer.class, null);
+ t.addContainerProperty("txt", Component.class, null);
+ t.addContainerProperty("button", Button.class, null);
+ t.setColumnWidth("id", 30);
+ t.setColumnWidth("button", 200);
+ t.setColumnExpandRatio("txt", 10);// This column should be 400px wide.
+ t.setSelectable(true);
+ t.setSizeFull();
+
+ for (int i = 0; i < 10; i++) {
+ t.addItem(new Object[] { i, new Label("test " + i),
+ new Button("Button " + i) }, i);
+ }
+
+ return t;
+
+ }
+
+ @Override
+ protected String getDescription() {
+ return "The second coulmn has expand ratio and should use the maximum available space";
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ return 3143;
+ }
+
+ @Override
+ protected void setup() {
+ addComponent(createTable());
+ }
+}
|