Change-Id: Ie3045089d8474a3fd0c62c3caf90e3452941a36a
@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()));
}
}
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);
}