summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/MenuBar.java
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2012-02-21 11:06:41 +0200
committerHenri Sara <hesara@vaadin.com>2012-02-21 11:06:41 +0200
commite31b26ca9840d653944bec1dc3123a35cef487e0 (patch)
tree1b41a753c6111a27060009642434b8cf208ef9bc /src/com/vaadin/ui/MenuBar.java
parente87a17b003cba3bd8cb11e60f1d2f57e1a653654 (diff)
downloadvaadin-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.java7
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),