Examples of addWindow()


Examples of com.vaadin.ui.UI.addWindow()

        // Added to main window so the parent of the sub window should be the
        // main window
        assertEquals(subWindow.getParent(), mainWindow);

        try {
            mainWindow.addWindow(subWindow);
            assertTrue("Window.addWindow did not throw the expected exception",
                    false);
        } catch (IllegalArgumentException e) {
            // Should throw an exception as it has already been added to the
            // main window
View Full Code Here

Examples of com.vaadin.ui.UI.addWindow()

    public void removeSubWindow() {
        TestApp app = new TestApp();
        app.init();
        Window subWindow = new Window("Sub window");
        UI mainWindow = app.getMainWindow();
        mainWindow.addWindow(subWindow);

        // Added to main window so the parent of the sub window should be the
        // main window
        assertEquals(subWindow.getParent(), mainWindow);
View Full Code Here

Examples of com.vaadin.ui.UI.addWindow()

            Window dialog = new Window("Dialog " + i, layout);
            layout.setSizeUndefined();
            windowlist.addBean(dialog);
            layout.addComponent(new Label("this is dialog number " + i));
            layout.addComponent(new ControlPanel());
            mainWindow.addWindow(dialog);
        }
        controlpanels.addComponent(new ControlPanel());
        getLayout().setSizeFull();
        getLayout().addComponent(controlpanels);
        getLayout().setComponentAlignment(controlpanels, Alignment.BOTTOM_LEFT);
View Full Code Here

Examples of com.vaadin.ui.UI.addWindow()

            }
        });

        UI main = getLayout().getUI();

        main.addWindow(window);

        ((ComponentContainer) main.getContent()).addComponent(new TextField());

        Button button = new Button("Bring to front (should focus too)",
                new Button.ClickListener() {
View Full Code Here

Examples of com.vaadin.ui.UI.addWindow()

                    }
                });
        ((ComponentContainer) main.getContent()).addComponent(button);

        Window window2 = new Window("Another window for testing");
        main.addWindow(window2);
        window2.setPositionX(50);

    }
}
View Full Code Here

Examples of com.vaadin.ui.UI.addWindow()

    @Override
    protected void setup() {
        UI w = getLayout().getUI();

        HorizontalSortableCssLayoutWithWrappers verticalSortableCssLayoutWithWrappers = new HorizontalSortableCssLayoutWithWrappers();
        w.addWindow(verticalSortableCssLayoutWithWrappers);
        verticalSortableCssLayoutWithWrappers.setPositionX(200);
        verticalSortableCssLayoutWithWrappers.setPositionY(40); /*
                                                                 * FIXME:
                                                                 * subwindow
                                                                 * horizontal
 
View Full Code Here

Examples of com.vaadin.ui.UI.addWindow()

         * Check the code in implementing classes.
         */
        Window acceptAnyThing = new AcceptAnythingWindow();
        Window acceptFromTree1viaServerCheck = new AcceptFromComponent(tree1);

        w.addWindow(acceptAnyThing);
        acceptAnyThing.setPositionY(450);
        acceptAnyThing.setPositionX(150);
        w.addWindow(acceptFromTree1viaServerCheck);
        acceptFromTree1viaServerCheck.setPositionY(450);
        acceptFromTree1viaServerCheck.setPositionX(450);
View Full Code Here

Examples of com.vaadin.ui.UI.addWindow()

        Window acceptFromTree1viaServerCheck = new AcceptFromComponent(tree1);

        w.addWindow(acceptAnyThing);
        acceptAnyThing.setPositionY(450);
        acceptAnyThing.setPositionX(150);
        w.addWindow(acceptFromTree1viaServerCheck);
        acceptFromTree1viaServerCheck.setPositionY(450);
        acceptFromTree1viaServerCheck.setPositionX(450);

    }
View Full Code Here

Examples of com.vaadin.ui.Window.addWindow()

            this.cc.addComponent(c);
        else if (c instanceof Window) {
            Window parentWin = this.cc.getWindow();
            if (parentWin != null && parentWin.getParent() != null)
                parentWin = parentWin.getParent().getWindow();
            parentWin.addWindow((Window) c);
        }
    }

    /** Remove component from current component container. */
    public void remove(Component c) {
View Full Code Here

Examples of com.zaranux.os.client.ui.View.addWindow()

    if(_w != -1) // deserialized
    {
      View view = screen.getView(_v);
      zwindow = new ZWindow(widget,_w, _h, callback);
      view.addWindow(zwindow, _l, _t);
    }else
    {
      View activeView = screen.getActiveView();

      if(zwindow == null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.