diff options
author | Henri Sara <hesara@vaadin.com> | 2012-11-14 15:13:21 +0200 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2012-11-14 15:13:21 +0200 |
commit | 259b441265677906631c923d8fe51f549adfc120 (patch) | |
tree | bb44a5bc05eb914d3f9538898900d9605c336e9f /uitest/src/com/vaadin/tests/TestForNativeWindowing.java | |
parent | aca92f4937cc54f122b20c4bfb6288ee007c9e47 (diff) | |
download | vaadin-framework-259b441265677906631c923d8fe51f549adfc120.tar.gz vaadin-framework-259b441265677906631c923d8fe51f549adfc120.zip |
Remove Window.addComponent() (#2924)
Change-Id: Ida3269e3cce906fd4b55c5e1049b24e0ff383289
Diffstat (limited to 'uitest/src/com/vaadin/tests/TestForNativeWindowing.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/TestForNativeWindowing.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/uitest/src/com/vaadin/tests/TestForNativeWindowing.java b/uitest/src/com/vaadin/tests/TestForNativeWindowing.java index 95ffe8b706..c4a6a7b605 100644 --- a/uitest/src/com/vaadin/tests/TestForNativeWindowing.java +++ b/uitest/src/com/vaadin/tests/TestForNativeWindowing.java @@ -25,6 +25,7 @@ import com.vaadin.ui.Button; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Label; import com.vaadin.ui.LegacyWindow; +import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Window; public class TestForNativeWindowing extends LegacyApplication { @@ -40,8 +41,10 @@ public class TestForNativeWindowing extends LegacyApplication { new Button.ClickListener() { @Override public void buttonClick(ClickEvent event) { + VerticalLayout layout = new VerticalLayout(); + layout.setMargin(true); final Window w = new Window("sw " - + System.currentTimeMillis()); + + System.currentTimeMillis(), layout); main.addWindow(w); w.setPositionX(100); w.setPositionY(100); @@ -59,9 +62,9 @@ public class TestForNativeWindowing extends LegacyApplication { } }); - w.addComponent(closebutton); + layout.addComponent(closebutton); - w.addComponent(new Label( + layout.addComponent(new Label( "<p>Lorem ipsum dolor sit amet.</p>" + "<p>Lorem ipsum dolor sit amet.</p>" + "<p>Lorem ipsum dolor sit amet.</p>" |