Examples of center()


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

        VerticalLayout layout = new VerticalLayout();
        layout.setMargin(true);
        Window centered = new Window("A window", layout);
        centered.setSizeUndefined();
        layout.setSizeUndefined();
        centered.center();

        Label l = new Label("This window should be centered");
        l.setSizeUndefined();
        layout.addComponent(l);
View Full Code Here

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

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

        VerticalLayout vl = new VerticalLayout();
        vl.setWidth(null);
        Button b = new Button("A 100% wide button, invalid");
        b.setWidth("100%");
View Full Code Here

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

            }
        });
        layout.addComponent(comboBox);

        popup.setSizeUndefined();
        popup.center();

        getMainWindow().addWindow(popup);
    }

    @Override
View Full Code Here

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

            @Override
            public void buttonClick(ClickEvent event) {
                VerticalLayout layout = new VerticalLayout();
                layout.setMargin(true);
                Window w = new Window("Subwindow", layout);
                w.center();
                w.setHeight("200px");
                layout.addComponent(getBigComponent());
                getMainWindow().addWindow(w);
            }
        });
View Full Code Here

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

        VerticalLayout layout = new VerticalLayout();
        layout.setMargin(true);
        Window subWindow = new Window("", layout);
        subWindow.setSizeUndefined();
        subWindow.getContent().setSizeUndefined();
        subWindow.center();
        subWindow.setContent(new RichTextArea());
        w.addWindow(subWindow);
    }

}
View Full Code Here

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

                final Button show = new Button("Open Window",
                        new ClickListener() {
                            @Override
                            public void buttonClick(ClickEvent event) {
                                getUI().addWindow(win);
                                win.center();
                                win.focus();
                                event.getButton().setEnabled(false);
                            }
                        });
                show.addStyleName("primary");
View Full Code Here

Examples of com.willwinder.universalgcodesender.types.PointSegment.center()

        }
       
        // Get precalculated stuff.
        Point3d start     = startSegment.point();
        Point3d end       = lastSegment.point();
        Point3d center    = lastSegment.center();
        double radius     = lastSegment.getRadius();
        boolean clockwise = lastSegment.isClockwise();

        //
        // Start expansion.
View Full Code Here

Examples of net.ajiaojr.spadger.client.desktop.dialog.AboutDialog.center()

          }

          @Override
          public void onSuccess() {
            AboutDialog aboutDialog = new AboutDialog();
            aboutDialog.center();
            aboutDialog.show();
          }
        });
      }
    });
View Full Code Here

Examples of org.activiti.explorer.ui.custom.PopupWindow.center()

    selectEditorPopupWindow.setModal(true);
    selectEditorPopupWindow.setResizable(false);
    selectEditorPopupWindow.setWidth("350px");
    selectEditorPopupWindow.setHeight("250px");
    selectEditorPopupWindow.addStyleName(Reindeer.PANEL_LIGHT);
    selectEditorPopupWindow.center();
   
    final SelectEditorComponent selectEditorComponent = new SelectEditorComponent(false);
    selectEditorComponent.getModelerDescriptionLabel().setValue(
            ExplorerApp.get().getI18nManager().getMessage(Messages.PROCESS_EDITOR_CONVERSION_WARNING_MODELER));
    selectEditorComponent.getModelerDescriptionLabel().addStyleName(ExplorerLayout.STYLE_LABEL_RED);
View Full Code Here

Examples of org.apache.cxf.management.web.browser.client.ui.ErrorDialog.center()

        GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() {

            public void onUncaughtException(@Nonnull final Throwable throwable) {
                ErrorDialog errorDialog = injector.getErrorDialog();
                errorDialog.setException(throwable);
                errorDialog.center();
            }
        });
       
        injector.getDispatcher().start();
    }
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.