diff options
author | Henri Sara <hesara@vaadin.com> | 2012-02-21 11:06:41 +0200 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2012-02-21 11:06:41 +0200 |
commit | e31b26ca9840d653944bec1dc3123a35cef487e0 (patch) | |
tree | 1b41a753c6111a27060009642434b8cf208ef9bc /src/com/vaadin/ui/MenuBar.java | |
parent | e87a17b003cba3bd8cb11e60f1d2f57e1a653654 (diff) | |
download | vaadin-framework-e31b26ca9840d653944bec1dc3123a35cef487e0.tar.gz vaadin-framework-e31b26ca9840d653944bec1dc3123a35cef487e0.zip |
Convert some literal strings of UIDL attributes to use constants.
Diffstat (limited to 'src/com/vaadin/ui/MenuBar.java')
-rw-r--r-- | src/com/vaadin/ui/MenuBar.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/vaadin/ui/MenuBar.java b/src/com/vaadin/ui/MenuBar.java index 54a094a4e7..4a7b90c8ed 100644 --- a/src/com/vaadin/ui/MenuBar.java +++ b/src/com/vaadin/ui/MenuBar.java @@ -101,16 +101,17 @@ public class MenuBar extends AbstractComponent { Resource icon = item.getIcon(); if (icon != null) { - target.addAttribute("icon", icon); + target.addAttribute(VMenuBar.ATTRIBUTE_ITEM_ICON, icon); } if (!item.isEnabled()) { - target.addAttribute("disabled", true); + target.addAttribute(VMenuBar.ATTRIBUTE_ITEM_DISABLED, true); } String description = item.getDescription(); if (description != null && description.length() > 0) { - target.addAttribute("description", description); + target.addAttribute(VMenuBar.ATTRIBUTE_ITEM_DESCRIPTION, + description); } if (item.isCheckable()) { // if the "checked" attribute is present (either true or false), |