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/Select.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/Select.java')
-rw-r--r-- | src/com/vaadin/ui/Select.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/vaadin/ui/Select.java b/src/com/vaadin/ui/Select.java index c1da88acea..0ee1f899d6 100644 --- a/src/com/vaadin/ui/Select.java +++ b/src/com/vaadin/ui/Select.java @@ -23,6 +23,7 @@ import com.vaadin.event.FieldEvents.FocusListener; import com.vaadin.terminal.PaintException; import com.vaadin.terminal.PaintTarget; import com.vaadin.terminal.Resource; +import com.vaadin.terminal.gwt.client.ui.VAbstractPaintableWidget; import com.vaadin.terminal.gwt.client.ui.VFilterSelectPaintable; /** @@ -149,7 +150,8 @@ public class Select extends AbstractSelect implements AbstractSelect.Filtering, // Adds the required attribute if (!isReadOnly() && isRequired()) { - target.addAttribute("required", true); + target.addAttribute(VAbstractPaintableWidget.ATTRIBUTE_REQUIRED, + true); } if (isNewItemsAllowed()) { @@ -274,7 +276,8 @@ public class Select extends AbstractSelect implements AbstractSelect.Filtering, // Hide the error indicator if needed if (shouldHideErrors()) { - target.addAttribute("hideErrors", true); + target.addAttribute(VAbstractPaintableWidget.ATTRIBUTE_HIDEERRORS, + true); } } |