Examples of removeAllComponents()


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

        final Panel status = new Panel("Events", statusLayout);
        final Button clear = new Button("c");
        clear.addClickListener(new ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                statusLayout.removeAllComponents();
                statusLayout.addComponent(clear);
            }
        });
        statusLayout.addComponent(clear);
View Full Code Here

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

        assertOrder(layout2, new int[] { 0, 1, 2, 3 });

        layout2.addComponents(extra);
        assertSame(extra, layout2.getComponent(4));

        layout2.removeAllComponents();
        layout2.addComponents(children[3], children[2], children[1],
                children[0]);
        assertOrder(layout2, new int[] { 3, 2, 1, 0 });
    }
View Full Code Here

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

        final Panel status = new Panel("Events", statusLayout);
        final Button clear = new Button("clear event log");
        clear.addClickListener(new ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                statusLayout.removeAllComponents();
                statusLayout.addComponent(ol2);
            }
        });
        ol2.addComponent(clear);
        final Button commit = new Button("commit changes");
View Full Code Here

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

        VerticalLayout ol = new VerticalLayout();

        VerticalLayout el = new VerticalLayout();

        el.removeAllComponents();

        ol.setWidth((String) width.getValue());
        ol.setHeight((String) height.getValue());

        ol.addComponent(getTestComponent());
View Full Code Here

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

        Button button = new Button("Toggle");
        button.setId("toggle");
        button.addClickListener(new ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                contentLayout.removeAllComponents();
                if (state) {
                    contentLayout.addComponent(component1);
                } else {
                    contentLayout.addComponent(component2);
                }
View Full Code Here

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

  @Override
  public void init() {
    Window mainWindow = new Window("");
    setMainWindow(mainWindow);
    mainWindow.removeAllComponents();
    HorizontalLayout main = new HorizontalLayout();
    main.setSpacing(true);
    main.setMargin(true);
    main.setWidth(100, Sizeable.UNITS_PERCENTAGE);
    mainWindow.setContent(main);
View Full Code Here

Examples of org.apache.ambari.server.state.Service.removeAllComponents()

    if (!service.canBeRemoved()) {
      throw new AmbariException("Could not delete service from cluster"
          + ", clusterName=" + getClusterName()
          + ", serviceName=" + service.getName());
    }
    service.removeAllComponents();
    services.remove(serviceName);
    // FIXME update DB
  }

  @Override
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.