Examples of removeComponent()


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

        assertSame(grid.getComponent(1, 0), extra2);

        grid.addComponents(children);
        assertOrder(grid, new int[] { -1, -1, 0, 1, 2, 3 });

        grid.removeComponent(extra);
        grid.removeComponent(extra2);
        assertOrder(grid, new int[] { 0, 1, 2, 3 });

        grid.addComponents(extra2, extra);
        assertSame(grid.getComponent(0, 3), extra2);
View Full Code Here

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

        grid.addComponents(children);
        assertOrder(grid, new int[] { -1, -1, 0, 1, 2, 3 });

        grid.removeComponent(extra);
        grid.removeComponent(extra2);
        assertOrder(grid, new int[] { 0, 1, 2, 3 });

        grid.addComponents(extra2, extra);
        assertSame(grid.getComponent(0, 3), extra2);
        assertSame(grid.getComponent(1, 3), extra);
View Full Code Here

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

        grid.addComponents(extra2, extra);
        assertSame(grid.getComponent(0, 3), extra2);
        assertSame(grid.getComponent(1, 3), extra);
        assertOrder(grid, new int[] { 0, 1, 2, 3, -1, -1 });

        grid.removeComponent(extra2);
        grid.removeComponent(extra);
        grid.setCursorX(0);
        grid.setCursorY(0);
        grid.addComponents(extra, extra2);
        assertSame(grid.getComponent(0, 0), extra);
View Full Code Here

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

        assertSame(grid.getComponent(0, 3), extra2);
        assertSame(grid.getComponent(1, 3), extra);
        assertOrder(grid, new int[] { 0, 1, 2, 3, -1, -1 });

        grid.removeComponent(extra2);
        grid.removeComponent(extra);
        grid.setCursorX(0);
        grid.setCursorY(0);
        grid.addComponents(extra, extra2);
        assertSame(grid.getComponent(0, 0), extra);
        assertSame(grid.getComponent(1, 0), extra2);
View Full Code Here

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

        b.addListener(new Button.ClickListener() {

            @Override
            public void buttonClick(Button.ClickEvent event) {
                gl.removeComponent(toRemove);

                // move another component to where the first was removed
                // before rendering to the client
                gl.removeComponent(toEdit);
                // this could also be the result of removeAllComponents()
View Full Code Here

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

            public void buttonClick(Button.ClickEvent event) {
                gl.removeComponent(toRemove);

                // move another component to where the first was removed
                // before rendering to the client
                gl.removeComponent(toEdit);
                // this could also be the result of removeAllComponents()
                // followed by a loop of addComponent(c)
                gl.addComponent(toEdit, 0, 0);

                b.setVisible(false);
View Full Code Here

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

        addComponent(new Button("Shift label right",
                new Button.ClickListener() {
                    @Override
                    public void buttonClick(ClickEvent event) {
                        // Moving component from 0,0 -> 1,0
                        grid.removeComponent(l);
                        grid.addComponent(l, 1, 0);
                    }
                }));

        addComponent(new Button("Shift button right",
View Full Code Here

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

        addComponent(new Button("Shift button right",
                new Button.ClickListener() {
                    @Override
                    public void buttonClick(ClickEvent event) {
                        grid.removeComponent(b);
                        grid.addComponent(b, 1, 1);
                    }
                }));

        addComponent(new Button("Shift text field right",
View Full Code Here

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

        addComponent(new Button("Shift text field right",
                new Button.ClickListener() {
                    @Override
                    public void buttonClick(ClickEvent event) {
                        grid.removeComponent(tf);
                        grid.addComponent(new Label("I'm on left"), 0, 2);
                        grid.addComponent(tf, 1, 2);
                    }
                }));
    }
View Full Code Here

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

                if (cols > 0) {
                    // next to last colum 0, last column 100
                    gl.setColumnExpandRatio(cols - 2, 0);
                    gl.setColumnExpandRatio(cols - 1, 100);
                }
                gl.removeComponent(textfield);
                gl.addComponent(textfield, 0, 0, cols - 1, 0);
            }
        });
        gl.setSizeFull();
        mainLayout.addComponent(gl);
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.