summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2010-07-07 10:12:05 +0000
committerArtur Signell <artur.signell@itmill.com>2010-07-07 10:12:05 +0000
commitc904ce51bc97a378f3773d18da94e67b18fb4be0 (patch)
treed05ec6889eadf0df0bd73a063176979a8c597c5a /src
parent5051269fc29ac62eba17704e361cefba778ff85f (diff)
downloadvaadin-framework-c904ce51bc97a378f3773d18da94e67b18fb4be0.tar.gz
vaadin-framework-c904ce51bc97a378f3773d18da94e67b18fb4be0.zip
Added "v-disabled" to disabled items to be consistent with other disabled components/items and because "disabled" has no effect in at least some Linux Firefox versions (#5323)
svn changeset:14126/svn branch:6.4
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VOptionGroup.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VOptionGroup.java b/src/com/vaadin/terminal/gwt/client/ui/VOptionGroup.java
index b1d4730372..c27c03287d 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VOptionGroup.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VOptionGroup.java
@@ -110,8 +110,10 @@ public class VOptionGroup extends VOptionGroupBase implements FocusHandler,
}
op.addStyleName(CLASSNAME_OPTION);
op.setValue(opUidl.getBooleanAttribute("selected"));
- op.setEnabled(!opUidl.getBooleanAttribute("disabled")
- && !isReadonly() && !isDisabled());
+ boolean enabled = !opUidl.getBooleanAttribute("disabled")
+ && !isReadonly() && !isDisabled();
+ op.setEnabled(enabled);
+ setStyleName(op.getElement(), "v-disabled", !enabled);
op.addClickHandler(this);
optionsToKeys.put(op, opUidl.getStringAttribute("key"));
panel.add(op);