aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket2186.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket2186.java')
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2186.java54
1 files changed, 54 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2186.java b/uitest/src/com/vaadin/tests/tickets/Ticket2186.java
new file mode 100644
index 0000000000..50b8a1f113
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2186.java
@@ -0,0 +1,54 @@
+package com.vaadin.tests.tickets;
+
+import com.vaadin.Application;
+import com.vaadin.ui.HorizontalLayout;
+import com.vaadin.ui.Label;
+import com.vaadin.ui.Panel;
+import com.vaadin.ui.UI.LegacyWindow;
+import com.vaadin.ui.Table;
+import com.vaadin.ui.VerticalLayout;
+
+public class Ticket2186 extends Application.LegacyApplication {
+
+ @Override
+ public void init() {
+ LegacyWindow main = new LegacyWindow("Quick test");
+ setMainWindow(main);
+
+ HorizontalLayout base = new HorizontalLayout();
+ main.setContent(base);
+
+ VerticalLayout content = new VerticalLayout();
+
+ content.addComponent(new Label("Content."));
+ content.setWidth("500px");
+
+ Table table = new Table();
+
+ table.setPageLength(10);
+
+ table.setWidth("100%");
+
+ table.addContainerProperty("Lähettäjä", String.class, "");
+ table.addContainerProperty("Viestin tyyppi", String.class, "");
+
+ for (int i = 0; i < 15; i++) {
+
+ table.addItem(new Object[] { i + " Joku Ihminen", "Testiviesti" },
+
+ new Object());
+
+ }
+
+ content.addComponent(table);
+
+ Panel right = new Panel("Panel");
+
+ right.addComponent(new Label("Some basic text might show up here."));
+
+ base.addComponent(content);
+
+ base.addComponent(right);
+
+ }
+}