Package com.vaadin.ui

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


            grid.addComponent(single, i + 1, grid.getRows() - 1);
        }

        space = new Label();
        space.setStyleName(spacerStyle);
        grid.addComponent(space, grid.getColumns() - 1, grid.getRows() - 1);

        main.addComponent(grid);
    }
}
View Full Code Here


        setMainWindow(w);

        GridLayout gl = new GridLayout(2, 2);
        gl.setSizeUndefined();

        gl.addComponent(new Label(
                "Label 1 abc abc abcasdfas dfasd fasdf asdf sadf asdf"));
        gl.addComponent(new Label("Label 2 abc abc abc "));
        Label l = new Label("Colspan2, align right");
        gl.addComponent(l, 0, 1, 1, 1);
        gl.setComponentAlignment(l, Alignment.TOP_RIGHT);
View Full Code Here

        GridLayout gl = new GridLayout(2, 2);
        gl.setSizeUndefined();

        gl.addComponent(new Label(
                "Label 1 abc abc abcasdfas dfasd fasdf asdf sadf asdf"));
        gl.addComponent(new Label("Label 2 abc abc abc "));
        Label l = new Label("Colspan2, align right");
        gl.addComponent(l, 0, 1, 1, 1);
        gl.setComponentAlignment(l, Alignment.TOP_RIGHT);
        w.setContent(gl);
View Full Code Here

        gl.addComponent(new Label(
                "Label 1 abc abc abcasdfas dfasd fasdf asdf sadf asdf"));
        gl.addComponent(new Label("Label 2 abc abc abc "));
        Label l = new Label("Colspan2, align right");
        gl.addComponent(l, 0, 1, 1, 1);
        gl.setComponentAlignment(l, Alignment.TOP_RIGHT);
        w.setContent(gl);

    }
View Full Code Here

        layout.setSpacing(true);

        {
            selectWithoutNullItem = createSelect();

            layout.addComponent(selectWithoutNullItem);
            Button b = new Button("Select NULL_PROPERTY", new ClickListener() {

                @Override
                public void buttonClick(ClickEvent event) {
                    selectWithoutNullItem.select(NULL_ITEM_ID);
View Full Code Here

                    selectWithoutNullItem.select(NULL_ITEM_ID);
                    printState();

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

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

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

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

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

                    selectWithoutNullItem.select("2");
                    printState();

                }
            });
            layout.addComponent(b);

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

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

                    selectWithoutNullItem.select(null);
                    printState();

                }
            });
            layout.addComponent(b);
        }

        {
            selectWithNullItem = createSelect();
            Item nullItem = selectWithNullItem.addItem(NULL_ITEM_ID);
View Full Code Here

            selectWithNullItem = createSelect();
            Item nullItem = selectWithNullItem.addItem(NULL_ITEM_ID);
            nullItem.getItemProperty(PROPERTY_ID).setValue("NULL");
            selectWithNullItem.setNullSelectionItemId(NULL_ITEM_ID);

            layout.addComponent(selectWithNullItem);
            selectWithNullItem.setCaption("Select with null item id");
            Button b = new Button("Select NULL_PROPERTY", new ClickListener() {

                @Override
                public void buttonClick(ClickEvent event) {
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.