Package com.vaadin.server

Examples of com.vaadin.server.BrowserWindowOpener


        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&param", "my=param#value");
        parametersOpener.extend(withParametersButton);
        addComponent(withParametersButton);
    }
View Full Code Here


                c.setDescription(URL);
                c.setWidth("100px");
                c.setHeight("100px");
                hl.addComponent(c);

                new BrowserWindowOpener(URL).extend(c);

                if (c instanceof Button) {
                    ((Button) c).addClickListener(new ClickListener() {

                        @Override
View Full Code Here

    @Override
    protected void init(VaadinRequest request) {
        Button popupButton = new Button("Open popup with MyPopupUI");

        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);
    }
View Full Code Here

TOP

Related Classes of com.vaadin.server.BrowserWindowOpener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.