summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/integration
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2012-11-14 15:13:21 +0200
committerHenri Sara <hesara@vaadin.com>2012-11-14 15:13:21 +0200
commit259b441265677906631c923d8fe51f549adfc120 (patch)
treebb44a5bc05eb914d3f9538898900d9605c336e9f /uitest/src/com/vaadin/tests/integration
parentaca92f4937cc54f122b20c4bfb6288ee007c9e47 (diff)
downloadvaadin-framework-259b441265677906631c923d8fe51f549adfc120.tar.gz
vaadin-framework-259b441265677906631c923d8fe51f549adfc120.zip
Remove Window.addComponent() (#2924)
Change-Id: Ida3269e3cce906fd4b55c5e1049b24e0ff383289
Diffstat (limited to 'uitest/src/com/vaadin/tests/integration')
-rw-r--r--uitest/src/com/vaadin/tests/integration/LiferayThemeDemo.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/uitest/src/com/vaadin/tests/integration/LiferayThemeDemo.java b/uitest/src/com/vaadin/tests/integration/LiferayThemeDemo.java
index d52e38ca40..8a8df93742 100644
--- a/uitest/src/com/vaadin/tests/integration/LiferayThemeDemo.java
+++ b/uitest/src/com/vaadin/tests/integration/LiferayThemeDemo.java
@@ -407,20 +407,24 @@ public class LiferayThemeDemo extends LegacyApplication {
final CssLayout l = new CssLayout();
l.setCaption("Windows");
- final Window w = new Window("Normal window");
+ VerticalLayout layout = new VerticalLayout();
+ layout.setMargin(true);
+ final Window w = new Window("Normal window", layout);
w.setWidth("280px");
w.setHeight("180px");
w.setPositionX(40);
w.setPositionY(160);
- final Window w2 = new Window("Window, no resize");
+ VerticalLayout layout2 = new VerticalLayout();
+ layout2.setMargin(true);
+ final Window w2 = new Window("Window, no resize", layout2);
w2.setResizable(false);
w2.setWidth("280px");
w2.setHeight("180px");
w2.setPositionX(350);
w2.setPositionY(160);
- w2.addComponent(new Label("<code>Window.setResizable(false)</code>",
- ContentMode.HTML));
+ layout2.addComponent(new Label(
+ "<code>Window.setResizable(false)</code>", ContentMode.HTML));
tabs.addListener(new TabSheet.SelectedTabChangeListener() {
@Override