diff options
author | John Ahlroos <john@vaadin.com> | 2013-01-17 13:56:01 +0200 |
---|---|---|
committer | John Ahlroos <john@vaadin.com> | 2013-01-17 13:56:01 +0200 |
commit | 594dcef2ef02f8d850bfe35535a599a41a7e1252 (patch) | |
tree | 7d3586d78f19a596066482056cf4ad5c474952ac /uitest | |
parent | e27fa2111f73828afcb513afb77b957d69bc8f58 (diff) | |
download | vaadin-framework-594dcef2ef02f8d850bfe35535a599a41a7e1252.tar.gz vaadin-framework-594dcef2ef02f8d850bfe35535a599a41a7e1252.zip |
Updated minitutorials
Change-Id: Ie3045089d8474a3fd0c62c3caf90e3452941a36a
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/com/vaadin/tests/minitutorials/v7b6/MyPopupUI.java | 4 | ||||
-rw-r--r-- | uitest/src/com/vaadin/tests/minitutorials/v7b6/OpeningUIInPopup.java | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7b6/MyPopupUI.java b/uitest/src/com/vaadin/tests/minitutorials/v7b6/MyPopupUI.java index 59f5831468..eb9afc02cd 100644 --- a/uitest/src/com/vaadin/tests/minitutorials/v7b6/MyPopupUI.java +++ b/uitest/src/com/vaadin/tests/minitutorials/v7b6/MyPopupUI.java @@ -24,7 +24,9 @@ public class MyPopupUI extends UI { @Override protected void init(VaadinRequest request) { - setContent(new Label("This is MyPopupUI")); + setContent(new Label("This is MyPopupUI where parameter foo=" + + request.getParameter("foo") + " and fragment is set to " + + getPage().getUriFragment())); } } diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7b6/OpeningUIInPopup.java b/uitest/src/com/vaadin/tests/minitutorials/v7b6/OpeningUIInPopup.java index 43e2fdad7e..2152e05f14 100644 --- a/uitest/src/com/vaadin/tests/minitutorials/v7b6/OpeningUIInPopup.java +++ b/uitest/src/com/vaadin/tests/minitutorials/v7b6/OpeningUIInPopup.java @@ -30,7 +30,13 @@ public class OpeningUIInPopup extends UI { BrowserWindowOpener popupOpener = new BrowserWindowOpener(MyPopupUI.class); popupOpener.setFeatures("height=300,width=300"); popupOpener.extend(popupButton); + + // Add a parameter + popupOpener.setParameter("foo", "bar"); + // Set a fragment + popupOpener.setUriFragment("myfragment"); + setContent(popupButton); } |