From 594dcef2ef02f8d850bfe35535a599a41a7e1252 Mon Sep 17 00:00:00 2001 From: John Ahlroos Date: Thu, 17 Jan 2013 13:56:01 +0200 Subject: [PATCH] Updated minitutorials Change-Id: Ie3045089d8474a3fd0c62c3caf90e3452941a36a --- .../src/com/vaadin/tests/minitutorials/v7b6/MyPopupUI.java | 4 +++- .../vaadin/tests/minitutorials/v7b6/OpeningUIInPopup.java | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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); } -- 2.39.5