Package com.vaadin.ui

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


                    selectWithNullItem.select(NULL_ITEM_ID);
                    printState();

                }
            });
            layout.addComponent(b);

            b = new Button("Select 1", new ClickListener() {

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


                    selectWithNullItem.select("1");
                    printState();

                }
            });
            layout.addComponent(b);
            b = new Button("Select 2", new ClickListener() {

                @Override
                public void buttonClick(ClickEvent event) {
                    selectWithNullItem.select("2");
View Full Code Here

                public void buttonClick(ClickEvent event) {
                    selectWithNullItem.select("2");
                    printState();
                }
            });
            layout.addComponent(b);

            b = new Button("Select null", new ClickListener() {

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

                public void buttonClick(ClickEvent event) {
                    selectWithNullItem.select(null);
                    printState();
                }
            });
            layout.addComponent(b);

        }

        w.addComponent(new Button("print select values",
                new Button.ClickListener() {
View Full Code Here

        layout.setWidth("700");
        w.getContent().setSizeFull();
        w.getContent().setHeight("2000");
        w.addComponent(layout);

        layout.addComponent(new Label(
                "This should NOT get stuck when scrolling down"));
        layout.addComponent(new TextField("This should not get stuck either..."));

        VerticalLayout ol = new VerticalLayout();
        ol.setHeight("1000");
View Full Code Here

        w.getContent().setHeight("2000");
        w.addComponent(layout);

        layout.addComponent(new Label(
                "This should NOT get stuck when scrolling down"));
        layout.addComponent(new TextField("This should not get stuck either..."));

        VerticalLayout ol = new VerticalLayout();
        ol.setHeight("1000");
        ol.setWidth("200");
        w.addComponent(ol);
View Full Code Here

        label.setWidth(null);

        addComponent(new CustomComponent() {
            {
                GridLayout mainLayout = new GridLayout(1, 1);
                mainLayout.addComponent(label);
                mainLayout.setSizeUndefined();
                setSizeUndefined();
                setCompositionRoot(mainLayout);
            }
        });
View Full Code Here

        main.addComponent(new Button("set size"));

        grid.setMargin(true);
        grid.setSpacing(true);

        grid.addComponent(new Label("WIDE"));
        grid.addComponent(new Label("_I_"));
        grid.addComponent(new Label("VEEEEEEEEEEERY_WIDE"));
        Label label = new Label("|");
        grid.addComponent(label);
        grid.setComponentAlignment(label, Alignment.TOP_RIGHT);
View Full Code Here

        grid.setMargin(true);
        grid.setSpacing(true);

        grid.addComponent(new Label("WIDE"));
        grid.addComponent(new Label("_I_"));
        grid.addComponent(new Label("VEEEEEEEEEEERY_WIDE"));
        Label label = new Label("|");
        grid.addComponent(label);
        grid.setComponentAlignment(label, Alignment.TOP_RIGHT);
        main.addComponent(grid);
View Full Code Here

        grid.setMargin(true);
        grid.setSpacing(true);

        grid.addComponent(new Label("WIDE"));
        grid.addComponent(new Label("_I_"));
        grid.addComponent(new Label("VEEEEEEEEEEERY_WIDE"));
        Label label = new Label("|");
        grid.addComponent(label);
        grid.setComponentAlignment(label, Alignment.TOP_RIGHT);
        main.addComponent(grid);
    }
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.