Examples of removeAllComponents()


Examples of com.vaadin.ui.AbstractComponentContainer.removeAllComponents()

            Iterator<Component> i = container.iterator();
            while (i.hasNext()) {
                Component comp = i.next();
                c.add(comp);
            }
            container.removeAllComponents();

            for (int j = c.size() - 1; j >= 0; j--) {
                container.addComponent(c.get(j));
            }
        }
View Full Code Here

Examples of com.vaadin.ui.AbstractComponentContainer.removeAllComponents()

            Iterator<Component> i = container.getComponentIterator();
            while (i.hasNext()) {
                Component comp = i.next();
                c.add(comp);
            }
            container.removeAllComponents();

            for (int j = c.size() - 1; j >= 0; j--) {
                container.addComponent(c.get(j));
            }
View Full Code Here

Examples of com.vaadin.ui.CssLayout.removeAllComponents()

        Label extra = new Label("Extra");
        layout.addComponents(extra);
        assertSame(extra, layout.getComponent(4));

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

    /**
 
View Full Code Here

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

        Label extra2 = new Label("Extra2");
        grid.addComponents(extra, extra2);
        assertSame(grid.getComponent(0, 2), extra);
        assertSame(grid.getComponent(1, 2), extra2);

        grid.removeAllComponents();
        grid.addComponents(extra, extra2);
        assertSame(grid.getComponent(0, 0), extra);
        assertSame(grid.getComponent(1, 0), extra2);

        grid.addComponents(children);
View Full Code Here

Examples of com.vaadin.ui.HorizontalLayout.removeAllComponents()

        Label extra = new Label("Extra");
        layout1.addComponents(extra);
        assertSame(extra, layout1.getComponent(4));

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

        VerticalLayout layout2 = new VerticalLayout(children);
View Full Code Here

Examples of com.vaadin.ui.HorizontalLayout.removeAllComponents()

                    if (footerToolbar) {
                        MenuBar menuBar = MenuBars.getToolBar();
                        menuBar.setStyleName(toolbarStyle);
                        menuBar.setWidth(null);
                        footer.removeAllComponents();
                        footer.addComponent(menuBar);
                    }

                    root.addComponent(footer);
                }
View Full Code Here

Examples of com.vaadin.ui.HorizontalLayout.removeAllComponents()

            }
            label = new Label(value);

            AbstractOrderedLayout parent = (AbstractOrderedLayout) f.getParent();
            HorizontalLayout valueLayout = ((HorizontalLayout) parent.getComponent(1));
            valueLayout.removeAllComponents();
            valueLayout.addComponent(label);
          }

        }
      });
View Full Code Here

Examples of com.vaadin.ui.LegacyWindow.removeAllComponents()

    public void createNewView() {
        final LegacyWindow main = new LegacyWindow("Test window");
        setMainWindow(main);

        main.removeAllComponents();
        main.addComponent(new Label("Testing multiple listeners."));

        //
        // Button listeners
        //
View Full Code Here

Examples of com.vaadin.ui.TabSheet.removeAllComponents()

        ol2.setCaption("Tab 2");

        TabSheet ts = (verticalAkaAccordion ? accordion : tabsheet);
        ts.setSizeFull();

        ts.removeAllComponents();

        ts.addComponent(ol);
        ts.addComponent(ol2);

        ol.setWidth((String) width.getValue());
View Full Code Here

Examples of com.vaadin.ui.VerticalLayout.removeAllComponents()

        while (it.hasNext()) {
            components.add(it.next());
        }

        final VerticalLayout v = main;
        v.removeAllComponents();

        for (int i = components.size(); i > 0; i--) {
            final int index = (int) (Math.random() * i);
            v.addComponent(components.get(index));
            components.remove(index);
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.