Package com.vaadin.ui

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


        t = getTreeTable("strong");
        grid.addComponent(t);

        t = getTreeTable("small strong");
        grid.addComponent(t);

        t = getTreeTable("big strong");
        grid.addComponent(t);

        t = getTreeTable("borderless");
View Full Code Here


    private Tab addTab() {
        Layout content = new VerticalLayout();
        tabs.add(content);
        Label label = new Label("Tab " + index);
        label.setId(labelID(index));
        content.addComponent(label);
        content.addComponent(new TextField());
        Tab tab = ts.addTab(content, "Tab " + index, null);
        if (index == 2) {
            tab.setClosable(true);
        }
View Full Code Here

        Layout content = new VerticalLayout();
        tabs.add(content);
        Label label = new Label("Tab " + index);
        label.setId(labelID(index));
        content.addComponent(label);
        content.addComponent(new TextField());
        Tab tab = ts.addTab(content, "Tab " + index, null);
        if (index == 2) {
            tab.setClosable(true);
        }
        if (index == 4) {
View Full Code Here

        t = getTreeTable("small strong");
        grid.addComponent(t);

        t = getTreeTable("big strong");
        grid.addComponent(t);

        t = getTreeTable("borderless");
        grid.addComponent(t);

        t = getTreeTable("striped");
View Full Code Here

        t = getTreeTable("big strong");
        grid.addComponent(t);

        t = getTreeTable("borderless");
        grid.addComponent(t);

        t = getTreeTable("striped");
        t.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
        t.setCaption(t.getCaption() + ", hidden headers");
        grid.addComponent(t);
View Full Code Here

        grid.addComponent(t);

        t = getTreeTable("striped");
        t.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
        t.setCaption(t.getCaption() + ", hidden headers");
        grid.addComponent(t);

        addComponent(grid);
    }

    GridLayout getGridLayout() {
View Full Code Here

    private Tab addTab() {
        Layout content = new VerticalLayout();
        tabs.add(content);

        TextField field = new TextField("Tab " + index + " label");
        content.addComponent(field);

        Tab tab = ts.addTab(content, "Tab " + index, null);

        if (index == 2) {
            tab.setClosable(true);
View Full Code Here

        final Label l = new Label("A Label");
        final AbsoluteLayout al = new AbsoluteLayout();
        al.setWidth("300px");
        al.setHeight("200px");
        main.addComponent(al);

        final Button b = new Button("Add", new Button.ClickListener() {

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

                }

            }

        });
        main.addComponent(b);

    }

}
View Full Code Here

        countryField.addItem("Sweden");
        countryField.addItem("Canada");
        countryField.addItem("USA");
        countryField.setCaption("Country");
        countryField.setWidth("100%");
        formLayout.addComponent(countryField);

        ComboBox statusField = new ComboBox();
        statusField.addItem("Available");
        statusField.addItem("On vacation");
        statusField.addItem("Busy");
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.