Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.HasEnabled


        boolean optionGroupEnabled = isEnabled() && !isReadonly();
        // sets options enabled according to the widget's enabled,
        // readonly and each options own enabled
        for (Widget w : panel) {
            if (w instanceof HasEnabled) {
                HasEnabled hasEnabled = (HasEnabled) w;
                Boolean isOptionEnabled = optionsEnabled.get(w);
                if (isOptionEnabled == null) {
                    hasEnabled.setEnabled(optionGroupEnabled);
                    setStyleName(w.getElement(),
                            ApplicationConnection.DISABLED_CLASSNAME,
                            !isEnabled());
                } else {
                    hasEnabled
                            .setEnabled(isOptionEnabled && optionGroupEnabled);
                    setStyleName(w.getElement(),
                            ApplicationConnection.DISABLED_CLASSNAME,
                            !(isOptionEnabled && isEnabled()));
                }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.HasEnabled

Copyright © 2018 www.massapicom. 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.