diff options
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket2319.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/tickets/Ticket2319.java | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2319.java b/uitest/src/com/vaadin/tests/tickets/Ticket2319.java new file mode 100644 index 0000000000..438d2ff286 --- /dev/null +++ b/uitest/src/com/vaadin/tests/tickets/Ticket2319.java @@ -0,0 +1,66 @@ +package com.vaadin.tests.tickets; + +import com.vaadin.Application; +import com.vaadin.ui.Button; +import com.vaadin.ui.HorizontalLayout; +import com.vaadin.ui.HorizontalSplitPanel; +import com.vaadin.ui.Label; +import com.vaadin.ui.Panel; +import com.vaadin.ui.UI.LegacyWindow; +import com.vaadin.ui.VerticalLayout; +import com.vaadin.ui.VerticalSplitPanel; + +public class Ticket2319 extends Application.LegacyApplication { + + @Override + public void init() { + LegacyWindow mainw = new LegacyWindow(); + setMainWindow(mainw); + + mainw.addComponent(new Label( + "This test has somewhat invalid layouts in it to detect analyzy layout function in debug dialog")); + + HorizontalLayout hl = new HorizontalLayout(); + Panel panel = new Panel("p1"); + Panel panel2 = new Panel("p2"); + hl.addComponent(panel); + hl.addComponent(panel2); + + mainw.addComponent(hl); + + hl = new HorizontalLayout(); + panel = new Panel("p1"); + panel.setSizeUndefined(); + panel.setHeight("100%"); + panel2 = new Panel("p2"); + panel2.setSizeUndefined(); + panel2.setHeight("100%"); + + hl.addComponent(panel); + hl.addComponent(panel2); + mainw.addComponent(hl); + + HorizontalSplitPanel sp = new HorizontalSplitPanel(); + + VerticalLayout first = new VerticalLayout(); + first.addComponent(new Label("first")); + VerticalLayout second = new VerticalLayout(); + second.addComponent(new Label("second")); + + sp.setFirstComponent(first); + sp.setSecondComponent(second); + + VerticalSplitPanel sp2 = new VerticalSplitPanel(); + Label label = new Label("first"); + label.setSizeFull(); + sp2.setFirstComponent(label); + sp2.setSecondComponent(sp); + + sp2.setHeight("200px"); + + mainw.addComponent(sp2); + + mainw.addComponent(new Button("click me to save split panel state")); + } + +} |