diff options
author | Henri Sara <hesara@vaadin.com> | 2012-11-14 13:49:47 +0200 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2012-11-14 13:49:47 +0200 |
commit | aca92f4937cc54f122b20c4bfb6288ee007c9e47 (patch) | |
tree | 7d7ee8e0cfa760e5f6b1da15ea8fe088f542540f /uitest/src/com/vaadin/tests/components/splitpanel | |
parent | 1b7a4a1ee9e03f445cbfcbb520a5ac970ccf47de (diff) | |
download | vaadin-framework-aca92f4937cc54f122b20c4bfb6288ee007c9e47.tar.gz vaadin-framework-aca92f4937cc54f122b20c4bfb6288ee007c9e47.zip |
Panel and Window based on AbstractSingleComponentContainer (#2924)
Change-Id: I9eb1f40a02dcad0f756ad2518d86ef1c52aa69c2
Diffstat (limited to 'uitest/src/com/vaadin/tests/components/splitpanel')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/splitpanel/SplitPanelSplitterWidth.java | 15 |
1 files changed, 11 insertions, 4 deletions
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); + } } |