From aca92f4937cc54f122b20c4bfb6288ee007c9e47 Mon Sep 17 00:00:00 2001 From: Henri Sara Date: Wed, 14 Nov 2012 13:49:47 +0200 Subject: Panel and Window based on AbstractSingleComponentContainer (#2924) Change-Id: I9eb1f40a02dcad0f756ad2518d86ef1c52aa69c2 --- .../components/splitpanel/SplitPanelSplitterWidth.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'uitest/src/com/vaadin/tests/components/splitpanel') diff --git a/uitest/src/com/vaadin/tests/components/splitpanel/SplitPanelSplitterWidth.java b/uitest/src/com/vaadin/tests/components/splitpanel/SplitPanelSplitterWidth.java index 08e602241f..eb1fee145d 100644 --- a/uitest/src/com/vaadin/tests/components/splitpanel/SplitPanelSplitterWidth.java +++ b/uitest/src/com/vaadin/tests/components/splitpanel/SplitPanelSplitterWidth.java @@ -6,6 +6,7 @@ import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.HorizontalSplitPanel; import com.vaadin.ui.Notification; import com.vaadin.ui.Panel; +import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.VerticalSplitPanel; public class SplitPanelSplitterWidth extends TestBase { @@ -26,10 +27,10 @@ public class SplitPanelSplitterWidth extends TestBase { split.setWidth("200px"); split.setHeight("200px"); split.setLocked(true); - Panel p = new Panel("Left"); + Panel p = buildPanel("Left"); p.setSizeFull(); split.addComponent(p); - p = new Panel("Right"); + p = buildPanel("Right"); p.setSizeFull(); split.addComponent(p); @@ -37,10 +38,10 @@ public class SplitPanelSplitterWidth extends TestBase { split2.setWidth("200px"); split2.setHeight("200px"); split2.setLocked(true); - p = new Panel("Top"); + p = buildPanel("Top"); p.setSizeFull(); split2.addComponent(p); - p = new Panel("Bottom"); + p = buildPanel("Bottom"); p.setSizeFull(); split2.addComponent(p); @@ -62,4 +63,10 @@ public class SplitPanelSplitterWidth extends TestBase { getLayout().addComponent(split2); } + + private Panel buildPanel(String caption) { + VerticalLayout pl = new VerticalLayout(); + pl.setMargin(true); + return new Panel(caption, pl); + } } -- cgit v1.2.3