Package com.vaadin.ui

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


        addComponent(new Button("Swap sources", new Button.ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                if (source1.getParent() != null) {
                    horizontalLayout.replaceComponent(source1, source2);
                } else {
                    horizontalLayout.replaceComponent(source2, source1);
                }
                target.markAsDirty();
            }
View Full Code Here


            @Override
            public void buttonClick(ClickEvent event) {
                if (source1.getParent() != null) {
                    horizontalLayout.replaceComponent(source1, source2);
                } else {
                    horizontalLayout.replaceComponent(source2, source1);
                }
                target.markAsDirty();
            }
        }));
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.