summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/tests/components/table/ClippedComponentsInTable.java
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2009-05-15 09:40:25 +0000
committerArtur Signell <artur.signell@itmill.com>2009-05-15 09:40:25 +0000
commit9b6e853c595ac303a60cdd40a5dcb566e9b6ce5d (patch)
tree0e7737367bff219bc4c1afb0392cfc28d0987490 /src/com/vaadin/tests/components/table/ClippedComponentsInTable.java
parent172d7a935c1829c5e0b95a6b8be6ae43d99c10c0 (diff)
downloadvaadin-framework-9b6e853c595ac303a60cdd40a5dcb566e9b6ce5d.tar.gz
vaadin-framework-9b6e853c595ac303a60cdd40a5dcb566e9b6ce5d.zip
Fix for #2953 - Rename old default theme to itmill5
svn changeset:7826/svn branch:6.0
Diffstat (limited to 'src/com/vaadin/tests/components/table/ClippedComponentsInTable.java')
-rw-r--r--src/com/vaadin/tests/components/table/ClippedComponentsInTable.java40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/com/vaadin/tests/components/table/ClippedComponentsInTable.java b/src/com/vaadin/tests/components/table/ClippedComponentsInTable.java
new file mode 100644
index 0000000000..8b6775cc74
--- /dev/null
+++ b/src/com/vaadin/tests/components/table/ClippedComponentsInTable.java
@@ -0,0 +1,40 @@
+package com.vaadin.tests.components.table;
+
+import com.vaadin.data.Item;
+import com.vaadin.tests.components.TestBase;
+import com.vaadin.ui.Button;
+import com.vaadin.ui.Table;
+import com.vaadin.ui.TextField;
+
+public class ClippedComponentsInTable extends TestBase {
+
+ @Override
+ protected String getDescription() {
+ return "The table below should display 3 rows. Each with a textfield containing the row number.";
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ return null;
+ }
+
+ @Override
+ protected void setup() {
+ Table t = new Table();
+ addComponent(t);
+
+ t.addContainerProperty("Name", TextField.class, null);
+ t.addContainerProperty("Button", Button.class, null);
+
+ for (int i = 0; i < 3; i++) {
+ Item item = t.addItem(i);
+ TextField tf = new TextField("", String.valueOf(i + 1));
+ tf.setColumns(10);
+ item.getItemProperty("Name").setValue(tf);
+
+ Button b = new Button("OK");
+ item.getItemProperty("Button").setValue(b);
+ }
+
+ }
+}