Package com.vaadin.ui

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


            }
        });
        layout.addComponent(comboBox);

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

        getMainWindow().addWindow(popup);
    }

    @Override
View Full Code Here

            @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

        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

                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

    Window window = new Window();
        ((VerticalLayout) window.getContent()).setSizeFull();
        window.setResizable(true);
        window.setWidth("800");
        window.setHeight("600");
        window.center();
        Embedded e = new Embedded();
        e.setSizeFull();
        e.setType(Embedded.TYPE_BROWSER);

     /*
 
View Full Code Here

    ((VerticalLayout) window.getContent()).setSizeFull();
    window.setModal(true);
    window.setResizable(true);
    window.setWidth(800, Sizeable.UNITS_PIXELS);
    window.setHeight(600, Sizeable.UNITS_PIXELS);
    window.center();

    Embedded e = new Embedded();
    e.setCodetype("UTF-8");
    e.setSizeFull();
    e.setType(Embedded.TYPE_BROWSER);
View Full Code Here

  public void showSettingsWindow() {
    final Window window = new Window("Dane użytkownika");
    window.setModal(true);
    window.setWidth(400, Sizeable.UNITS_PIXELS);
    window.center();
    final Form form = new Form();
    form.setFooter(new VerticalLayout());
    form.setItemDataSource(userData, userData.getBean().FIELDS_ORDER);
    userData.getBean().addCaptions(form);
    for (String id : UserData.FIELDS_ORDER) {
View Full Code Here

  public void showUValue() {
    final Window window = new Window("Wartość U");
    window.setModal(true);
    window.setWidth(400, Sizeable.UNITS_PIXELS);
    window.center();
    final Form form = new Form();
    form.setFooter(new VerticalLayout());
    final InlineDateField dateField = new InlineDateField("Miesiąc");
    dateField.setResolution(DateField.RESOLUTION_MONTH);
    form.addField("month", dateField);
View Full Code Here

    dodaj.addListener(new ClickListener() {

      public void buttonClick(ClickEvent event) {
        Window dodajWindow = new Window("Dodaj");
        dodajWindow.setWidth(400, Form.UNITS_PIXELS);
        dodajWindow.center();
        final Form form = new Form();
        form.setCaption("asdas");
        dodajWindow.addComponent(form);
        form.setItemDataSource(new BeanItem(new Customer()));
        Button button = new Button("Zapisz", form, "commit");
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.