Examples of removeComponent()


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

        Button swap = new Button("Swap components", new Button.ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                Component first = hsplit.getFirstComponent();
                hsplit.removeComponent(first);

                Component second = hsplit.getSecondComponent();
                hsplit.removeComponent(second);

                hsplit.setFirstComponent(second);
View Full Code Here

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

            public void buttonClick(ClickEvent event) {
                Component first = hsplit.getFirstComponent();
                hsplit.removeComponent(first);

                Component second = hsplit.getSecondComponent();
                hsplit.removeComponent(second);

                hsplit.setFirstComponent(second);
                hsplit.setSecondComponent(first);
            }
        });
View Full Code Here

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

                    @Override
                    public void buttonClick(ClickEvent event) {
                        Layout parent = (Layout) firstDownloadComponent
                                .getParent();
                        parent.removeComponent(firstDownloadComponent);
                    }
                }));
        addComponent(new Button(
                "Detach FileDownloader from first download button",
                new ClickListener() {
View Full Code Here

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

        Layout layout = parentForm.getLayout();

        Field oldField = fields.get(propertyId);
        if (oldField != null) {
            layout.removeComponent(oldField);
        }

        fields.put(propertyId, field);

        if (layout instanceof CustomLayout) {
View Full Code Here

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

        Layout layout = parentForm.getLayout();

        Field oldField = fields.get(propertyId);
        if (oldField != null) {
            layout.removeComponent(oldField);
        }

        fields.put(propertyId, field);

        if (layout instanceof CustomLayout) {
View Full Code Here

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

        });

        remover.addListener(new Button.ClickListener() {
            @Override
            public void buttonClick(Button.ClickEvent event) {
                main.removeComponent(pv);
            }
        });

        main.addComponent(pv);
    }
View Full Code Here

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

            @Override
            public void buttonClick(ClickEvent event) {

                if (active) {
                    main.removeComponent(poller);
                    event.getButton().setCaption("Resume");
                } else {
                    main.addComponent(poller);
                    event.getButton().setCaption("Stop updating");
                }
View Full Code Here

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

                "Remove progress indicator", new ClickListener() {

                    @Override
                    public void buttonClick(ClickEvent event) {
                        if (pi.getParent() != null) {
                            lo.removeComponent(pi);
                            event.getButton().setCaption(
                                    "Add progress indicator");
                        } else {
                            lo.addComponent(pi);
                            event.getButton().setCaption(
View Full Code Here

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

        Button removeRTA = new Button("Remove RTA");
        removeRTA.addClickListener(new Button.ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                wLayout.removeComponent(rText);

            }
        });
        wLayout.addComponent(removeRTA);
View Full Code Here

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

        removeButton.setId("removebutton");
        root.addComponent(removeButton);
        removeButton.addClickListener(new Button.ClickListener() {
            @Override
            public void buttonClick(Button.ClickEvent event) {
                root.removeComponent(spacingLayout);
            }
        });
    }
}
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.