Package com.vaadin.ui

Examples of com.vaadin.ui.Panel


        return p;
    }

    private Panel createPanelV() {
        Panel p = new Panel("" + DIM1 + "x" + DIM2 + " OrderedLayout");
        p.setWidth("" + DIM2 + "px");
        p.setHeight("" + DIM1 + "px");

        VerticalLayout layout = new VerticalLayout();
        p.setContent(layout);
        layout.setSizeFull();

        for (int i = 0; i < COMPONENTS; i++) {
            TextArea tf = new TextArea();
            if (r.nextBoolean()) {
View Full Code Here


    @Override
    protected void setup() {
        createTableLayout();
        form = new Form();

        tablePanel = new Panel();
        tablePanel.setContent(tableLayout);

        addComponent(tablePanel);
    }
View Full Code Here

    }

    protected Component buildRootSeparator() {
        VerticalLayout layout = new VerticalLayout();
        layout.setMargin(true);
        Panel panel = new Panel(layout);
        panel.addStyleName("pexp-separator");
        panel.setWidth("100%");
        panel.setHeight(3.0f, Sizeable.Unit.PIXELS);
        return panel;
    }
View Full Code Here

        topLayout.addComponent(layoutCbox);
        CheckBox labelCbox = new CheckBox("Label");
        topLayout.addComponent(labelCbox);
        labelCbox.addListener(labelListener);

        panel = new Panel();
        panel.setCaption("Panel caption");
        panel.setId("panel");
        addComponent(panel);

        layout = new VerticalLayout();
View Full Code Here

        layout.addComponent(label1);
        layout.setExpandRatio(label1, 1.0f);

        layout.addComponent(label2);

        Panel containingPanel = new Panel(layout);
        containingPanel.setHeight("200px");
        addComponent(containingPanel);
    }
View Full Code Here

        companies.addComponent(new Label("companies"));
        settings.addComponent(new Label("settings"));
        buttons.addComponent(statsButton);
        buttons.addComponent(companiesButton);
        buttons.addComponent(settingsButton);
        panel = new Panel();
        panel.setSizeFull();
        panel.setContent(stats);
        content.addComponent(buttons);
        content.addComponent(panel);
        content.setMargin(true);
View Full Code Here

    }

    private Component addTab(String tag) {
        VerticalLayout layout = new VerticalLayout();
        layout.addComponent(new Label("On tab: " + tag));
        return new Panel(tag, layout);
    }
View Full Code Here

            }
        });

        mainLayout.addComponent(lo);

        Panel bodyPanel = new Panel(bodyLayout);
        bodyPanel.addStyleName("light");
        bodyPanel.setSizeFull();

        mainLayout.addComponent(bodyPanel);

        mainLayout.setSplitPosition(30);
View Full Code Here

        getLayout().getUI().addActionHandler(actionHandler);
        getLayout().addComponent(createRichTextArea("InMainLayout"));

        VerticalLayout panelLayout = new VerticalLayout();
        panelLayout.setMargin(true);
        Panel panel = new Panel("RTA Panel", panelLayout);
        panel.addActionHandler(actionHandler);
        panelLayout.addComponent(createRichTextArea("InPanel"));
        getLayout().addComponent(panel);

        VerticalLayout layout = new VerticalLayout();
        layout.setMargin(true);
View Full Code Here

            ic.getContainerProperty(id, "bar").setValue(randomWord());
        }

        // Init filtering view
        final HorizontalLayout filterLayout = new HorizontalLayout();
        final Panel filterPanel = new Panel("Filter", filterLayout);
        filterPanel.setWidth(100, Panel.UNITS_PERCENTAGE);
        lo.addComponent(filterPanel);
        filterLayout.addComponent(fooFilter);
        filterLayout.addComponent(barFilter);
        filterLayout.addComponent(filterButton);
        fooFilter
View Full Code Here

TOP

Related Classes of com.vaadin.ui.Panel

Copyright © 2018 www.massapicom. 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.