Package com.vaadin.ui

Examples of com.vaadin.ui.Component.removeStyleName()


                while (iter.hasNext()) {
                    Component component = iter.next();
                    if (value) {
                        component.addStyleName("demo-removable-two");
                    } else {
                        component.removeStyleName("demo-removable-two");
                    }
                }
                boxMode = value;
            }
View Full Code Here


    private void clearMenuSelection() {
        for (Iterator<Component> it = menu.getComponentIterator(); it.hasNext();) {
            Component next = it.next();
            if (next instanceof NativeButton) {
                next.removeStyleName("selected");
            } else if (next instanceof DragAndDropWrapper) {
                // Wow, this is ugly (even uglier than the rest of the code)
                ((DragAndDropWrapper) next).iterator().next()
                        .removeStyleName("selected");
            }
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.