Examples of center()


Examples of com.gwtext.client.widgets.Window.center()

        selectWindow.add((Component)classSelectionPanel.getSelectable());
        selectWindow.addButton(selectButton);
        selectWindow.addButton(cancelButton);

        selectWindow.show();
        selectWindow.center();
    }


    public static void selectIndividuals(Project project, Collection<EntityData> clses, boolean allowMultiple, boolean showClsesPanel, final SelectionCallback callback) {
        final IndividualsWithClassSelectionPanel classSelectionPanel = new IndividualsWithClassSelectionPanel(project, clses, allowMultiple, showClsesPanel);
View Full Code Here

Examples of com.ponysdk.ui.server.basic.PDialogBox.center()

                }
                return false;
            }
        });

        dialogBox.center();
    }

    private void buildCreatePonyActivity() {

        createPony = new Form();
View Full Code Here

Examples of com.ponysdk.ui.server.rich.PClosableDialogBox.center()

            @Override
            public void onClick(final PClickEvent clickEvent) {
                final PClosableDialogBox dialogBox = new PClosableDialogBox("Custom caption");
                dialogBox.setDraggable(true);
                dialogBox.setContent(new PLabel("Content of a popup"));
                dialogBox.center();
            }
        });

        addLabel("A confirm dialog listenening on the close event");
        final PButton anchor4 = addButton("Open");
View Full Code Here

Examples of com.vaadin.client.ui.VWindow.center()

            Logger.getLogger(WindowConnector.class.getName()).warning(
                    "Called postLayout to detached Window.");
            return;
        }
        if (window.centered && getState().windowMode != WindowMode.MAXIMIZED) {
            window.center();
        }
        window.positionOrSizeUpdated();

        if (getParent() != null) {
            // Take a copy of the contents, since the server will detach all
View Full Code Here

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

            @Override
            public void buttonClick(ClickEvent event) {
                Window centered = new Window("A window", new Label(
                        "Centered window"));
                centered.center();
                getMainWindow().addWindow(centered);
            }
        });
        layout.addComponent(b, 0, 0);
View Full Code Here

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

            public void buttonClick(ClickEvent event) {

                VerticalLayout layout = new VerticalLayout();
                layout.setMargin(true);
                final Window w = new Window("Sub window", layout);
                w.center();
                layout.addComponent(new Button("Close",
                        new Button.ClickListener() {

                            @Override
                            public void buttonClick(ClickEvent event) {
View Full Code Here

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

            }
        });
        okButton.setClickShortcut(KeyCode.ENTER);
        layout.addComponent(okButton);
        w.center();
        return w;
    }

    public void log(Component c) {
        Class<?> cls = c.getClass();
View Full Code Here

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

    protected void setup() {
        NativeSelect ns = new NativeSelect();

        Window modalWindow = new Window();
        modalWindow.setModal(true);
        modalWindow.center();

        addComponent(ns);
        getMainWindow().addWindow(modalWindow);

    }
View Full Code Here

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

    @Override
    protected void setup() {
        final VerticalLayout layout = new VerticalLayout();
        layout.setMargin(true);
        final Window subwindow = new Window("subwindow", layout);
        subwindow.center();
        subwindow.setSizeUndefined();
        layout.setSizeUndefined();

        final Button tabButton = new Button("A button");
        tabButton.setCaption("Tab 1");
View Full Code Here

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

            public void buttonClick(ClickEvent event) {
                VerticalLayout layout = new VerticalLayout();
                layout.setMargin(true);
                final Window win = new Window("Subwin", layout);
                layout.setWidth(null);
                win.center();
                win.setClosable(false);
                getMainWindow().addWindow(win);
                layout.addComponent(new Label("SPACE notifies, ESC closes."));

                win.addActionHandler(new Action.Handler() {
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.