Package com.vaadin.ui

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


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

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

            }
            label = new Label(value);

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

        }
      });
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.