]> source.dussan.org Git - vaadin-framework.git/commitdiff
Added "v-disabled" to disabled items to be consistent with other disabled components...
authorArtur Signell <artur.signell@itmill.com>
Wed, 7 Jul 2010 10:12:05 +0000 (10:12 +0000)
committerArtur Signell <artur.signell@itmill.com>
Wed, 7 Jul 2010 10:12:05 +0000 (10:12 +0000)
svn changeset:14126/svn branch:6.4

src/com/vaadin/terminal/gwt/client/ui/VOptionGroup.java

index b1d47303722984abfc98f702a35809f090f6581e..c27c03287d90f978660bf209451d81d14c8fd868 100644 (file)
@@ -110,8 +110,10 @@ public class VOptionGroup extends VOptionGroupBase implements FocusHandler,
             }\r
             op.addStyleName(CLASSNAME_OPTION);\r
             op.setValue(opUidl.getBooleanAttribute("selected"));\r
-            op.setEnabled(!opUidl.getBooleanAttribute("disabled")\r
-                    && !isReadonly() && !isDisabled());\r
+            boolean enabled = !opUidl.getBooleanAttribute("disabled")\r
+                    && !isReadonly() && !isDisabled();\r
+            op.setEnabled(enabled);\r
+            setStyleName(op.getElement(), "v-disabled", !enabled);\r
             op.addClickHandler(this);\r
             optionsToKeys.put(op, opUidl.getStringAttribute("key"));\r
             panel.add(op);\r