Examples of removeComponent()


Examples of com.codename1.ui.Container.removeComponent()

   * @param webBrowser
   */
  public void onDisposeLogin(final Form backForm, final WebBrowser webBrowser) {
    webBrowser.stop();
    Container parent = webBrowser.getParent();
    parent.removeComponent(webBrowser);
    parent.revalidate();
    if (backForm != null) {
      backForm.showBack();
    }
  }
View Full Code Here

Examples of com.salesforce.ide.core.model.ProjectPackageList.removeComponent()

        allComponentsList.addAll(projectPackageList.getAllComponents());
        for (Component component : allComponentsList) {
            if (Utils.isNotEmpty(component.getBuiltInSubFolders())) {
                for (String builtInSubFolder : component.getBuiltInSubFolders()) {
                    if (builtInSubFolder.equals(component.getName())) {
                        projectPackageList.removeComponent(component);
                    }
                }
            }
        }
View Full Code Here

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

            public void buttonClick(ClickEvent event) {
                if (l.getParent() == null) {
                    al.addComponent(l);
                    event.getButton().setCaption("Remove");
                } else {
                    al.removeComponent(l);
                    event.getButton().setCaption("Add");
                }

            }
View Full Code Here

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

        addButton("Remove First", new Button.ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                tabs.removeComponent(tabs.iterator().next());
            }
        });
    }

    @Override
View Full Code Here

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

            @Override
            public void buttonClick(ClickEvent event) {
                Button b = event.getButton();
                ComponentContainer cc = (ComponentContainer) b.getParent();
                cc.removeComponent(b);
            }
        });

        return b;
    }
View Full Code Here

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

        final TextField tf = new TextField("Caption");
        Button b = new Button("Remove field and add new", new ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                layout.removeComponent(tf);
                addComponent(new TextField("new field"));

            }

        });
View Full Code Here

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

                            }
                            next = componentIterator.next();
                        }

                        if (sourceComponent instanceof WrappedLabel) {
                            cssLayout.removeComponent(sourceComponent);
                            wrappedLabel = (WrappedLabel) sourceComponent;
                        }
                        if (dropEvent.getTargetDetails()
                                .getData("verticalLocation").equals("TOP")) {
                            // before reference if dropped on topmost part
View Full Code Here

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

        pl.addComponent(foo());
        addMore = new Button("Add");
        addMore.addListener(new ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                pl.removeComponent(addMore);
                pl.addComponent(foo());
                pl.addComponent(addMore);
            }
        });
        pl.addComponent(addMore);
View Full Code Here

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

        final TextField tf = new TextField("Caption1");
        Button b = new Button("Remove field ", new ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                layout.removeComponent(tf);
            }

        });
        layout.addComponent(tf);
        layout.addComponent(b);
View Full Code Here

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

                layout.addComponent(header, "loginUser");
                button.addListener(new Button.ClickListener() {
                    @Override
                    public void buttonClick(Button.ClickEvent event) {
                        layout.addComponent(anotherComponent, "body");
                        layout.removeComponent("loginUser");
                    }
                });

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