diff options
author | Artur Signell <artur@vaadin.com> | 2012-08-13 19:13:24 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-08-13 19:18:50 +0300 |
commit | acf099b41fe1f983d416e598b5b49eaea9f35c66 (patch) | |
tree | da664e675e639a074b6d8abde3af4d7a7b52055a /server/src/com/vaadin/ui/OptionGroup.java | |
parent | e85d933b25cc3c5cc85eb7eb4b13b950fd8e1569 (diff) | |
download | vaadin-framework-acf099b41fe1f983d416e598b5b49eaea9f35c66.tar.gz vaadin-framework-acf099b41fe1f983d416e598b5b49eaea9f35c66.zip |
Eliminated dependencies from server to client (#9279)
Diffstat (limited to 'server/src/com/vaadin/ui/OptionGroup.java')
-rw-r--r-- | server/src/com/vaadin/ui/OptionGroup.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/src/com/vaadin/ui/OptionGroup.java b/server/src/com/vaadin/ui/OptionGroup.java index e3bcdd61b7..25a6e5132a 100644 --- a/server/src/com/vaadin/ui/OptionGroup.java +++ b/server/src/com/vaadin/ui/OptionGroup.java @@ -15,9 +15,9 @@ import com.vaadin.event.FieldEvents.BlurEvent; import com.vaadin.event.FieldEvents.BlurListener; import com.vaadin.event.FieldEvents.FocusEvent; import com.vaadin.event.FieldEvents.FocusListener; +import com.vaadin.shared.ui.optiongroup.OptionGroupConstants; import com.vaadin.terminal.PaintException; import com.vaadin.terminal.PaintTarget; -import com.vaadin.terminal.gwt.client.ui.optiongroup.VOptionGroup; /** * Configures select to be used as an option group. @@ -49,7 +49,7 @@ public class OptionGroup extends AbstractSelect implements public void paintContent(PaintTarget target) throws PaintException { target.addAttribute("type", "optiongroup"); if (isHtmlContentAllowed()) { - target.addAttribute(VOptionGroup.HTML_CONTENT_ALLOWED, true); + target.addAttribute(OptionGroupConstants.HTML_CONTENT_ALLOWED, true); } super.paintContent(target); } @@ -59,7 +59,8 @@ public class OptionGroup extends AbstractSelect implements throws PaintException { super.paintItem(target, itemId); if (!isItemEnabled(itemId)) { - target.addAttribute(VOptionGroup.ATTRIBUTE_OPTION_DISABLED, true); + target.addAttribute(OptionGroupConstants.ATTRIBUTE_OPTION_DISABLED, + true); } } |