Examples of addComponent()


Examples of com.vaadin.ui.CustomLayout.addComponent()

        hugeLayout.setMargin(true);
        hugeLayout.setSpacing(true);
        for (int i = 0; i < 30; i++) {
            hugeLayout.addComponent(new Label("huge " + i));
        }
        cl.addComponent(hugeLayout, "test");
        // ol.addComponent(hugeLayout);
        setMainWindow(w);
    }

}
View Full Code Here

Examples of com.vaadin.ui.FormLayout.addComponent()

        FormLayout form = new FormLayout();
        form.setMargin(false);

        FieldGroup binder = new FieldGroup(item);
        form.addComponent(binder.buildAndBind(
                "Picker in read-only field group", "date"));
        binder.setReadOnly(true);

        row.addComponent(form);
    }
View Full Code Here

Examples of com.vaadin.ui.GridLayout.addComponent()

        final Form form = new Form();
        form.setLocale(Locale.GERMAN);
        final Table table = new Table(this.title, beans);
        MenuBar menu = createMenuBar(beans, table);
        layout.addComponent(menu);
       
        table.setSelectable(true);
        table.setImmediate(true);
        table.setVisibleColumns(VISIBLE_COLUMNS);
        table.addListener(new Property.ValueChangeListener() {
View Full Code Here

Examples of com.vaadin.ui.HorizontalLayout.addComponent()

    HorizontalLayout userArea = new HorizontalLayout();
    String id = env.getProperty("app.security.scheme", Scheme.BASIC.id());
    if (id.equals(Scheme.FORM.id())) {
      Button signOut = new Button("Sign Out");
      signOut.addClickListener(logoutListener);
      userArea.addComponent(signOut);
    }
    Label loggedInUser = new Label();
    loggedInUser.setValue(username);
    loggedInUser.setSizeUndefined();
    userArea.addComponent(loggedInUser);
View Full Code Here

Examples of com.vaadin.ui.HorizontalSplitPanel.addComponent()

        CssLayout secondGrid = makeGrid("second");
        CssLayout grids = new CssLayout();
        grids.setSizeFull();
        grids.addComponent(firstGrid);
        grids.addComponent(secondGrid);
        split.addComponent(grids);

        Label description = new Label(
                "<h3>This application demonstrates the Responsive extension in Vaadin.</h3>"
                        + "<p>Drag the splitter to see how the boxes on the left side adapt to "
                        + "different widths. They maintain a width of 100-200px, and always "
View Full Code Here

Examples of com.vaadin.ui.Layout.addComponent()

            setCompositionRoot(mainLayout);

            Component table = new Table();
            table.setWidth("100%");
            table.setId(TABLE);
            mainLayout.addComponent(table);
        }
    }

    @Override
    protected String getTestDescription() {
View Full Code Here

Examples of com.vaadin.ui.LegacyWindow.addComponent()

        l.addComponent(new TextField("This one works fine"));
        TextField t = new TextField();
        t.setRequired(true);
        t.setValue("This one bugs");
        l.addComponent(t);
        w.addComponent(l);

        w.addComponent(new Button("show me the bug",
                new Button.ClickListener() {
                    @Override
                    public void buttonClick(ClickEvent event) {
View Full Code Here

Examples of com.vaadin.ui.Panel.addComponent()

        }
      }

    });

    loginPanel.addComponent(loginForm);
    custom.addComponent(loginPanel, "loginPanel");

  }
}
View Full Code Here

Examples of com.vaadin.ui.SplitPanel.addComponent()

    left.setSizeFull();
    left.addComponent(contactList);
    contactList.setSizeFull();
    left.setExpandRatio(contactList, 1);
    splitPanel.addComponent(left);
    splitPanel.addComponent(contactEditor);
    contactEditor.setSizeFull();
    contactEditor.getLayout().setMargin(true);
    contactEditor.setImmediate(true);
    bottomLeftCorner.setWidth("100%");
View Full Code Here

Examples of com.vaadin.ui.TabSheet.addComponent()

        BrowserFrame help = new BrowserFrame();
        help.setSizeFull();
        help.setSource(new ExternalResource("/statictestfiles/long-html.htm"));

        tabs.addComponent(help);

    }

    @Override
    protected String getTestDescription() {
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.