components.add(CssLayout.class);
components.add(Label.class);
addComponents(components, "/statictestfiles/static.html");
Button uiClassButton = new Button("Open UI class");
new BrowserWindowOpener(ReopenPopupView.class).extend(uiClassButton);
addComponent(uiClassButton);
Button uiWithPath = new Button("Open UI class with path");
new BrowserWindowOpener(ReopenPopupView.class, "foobar")
.extend(uiWithPath);
addComponent(uiWithPath);
Button withPopupFeaturesButton = new Button(
"Open with features and fragment");
BrowserWindowOpener featuresPopup = new BrowserWindowOpener(
"/statictestfiles/static.html#originalfragment");
featuresPopup.setFeatures("width=400,height=400");
featuresPopup.extend(withPopupFeaturesButton);
featuresPopup.setUriFragment("myFragment");
addComponent(withPopupFeaturesButton);
Button withParametersButton = new Button("Open UI with parameters");
BrowserWindowOpener parametersOpener = new BrowserWindowOpener(
ShowParamsUI.class);
parametersOpener.setUriFragment("myfragment");
parametersOpener.setParameter("my¶m", "my=param#value");
parametersOpener.extend(withParametersButton);
addComponent(withParametersButton);
}