summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/tests/components/table
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin/tests/components/table')
-rw-r--r--src/com/vaadin/tests/components/table/ClippedComponentsInTable.java40
-rw-r--r--src/com/vaadin/tests/components/table/TableLastRowMissing.java35
2 files changed, 75 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);
+ }
+
+ }
+}
diff --git a/src/com/vaadin/tests/components/table/TableLastRowMissing.java b/src/com/vaadin/tests/components/table/TableLastRowMissing.java
new file mode 100644
index 0000000000..4e4a223e23
--- /dev/null
+++ b/src/com/vaadin/tests/components/table/TableLastRowMissing.java
@@ -0,0 +1,35 @@
+package com.vaadin.tests.components.table;
+
+import com.vaadin.data.Item;
+import com.vaadin.tests.components.TestBase;
+import com.vaadin.ui.Table;
+import com.vaadin.ui.TextField;
+
+public class TableLastRowMissing 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 2933;
+ }
+
+ @Override
+ protected void setup() {
+ Table t = new Table();
+ addComponent(t);
+
+ t.addContainerProperty("Name", TextField.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);
+ }
+
+ }
+}