From c904ce51bc97a378f3773d18da94e67b18fb4be0 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Wed, 7 Jul 2010 10:12:05 +0000 Subject: 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 --- src/com/vaadin/terminal/gwt/client/ui/VOptionGroup.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3