summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/AbstractComponent.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2014-12-15 22:10:23 +0200
committerMika Murtojarvi <mika@vaadin.com>2014-12-16 15:58:58 +0200
commit0de94d55c9c04aa93b66e6d6a83935d9ed25da5e (patch)
tree1decae8b19c0cd00ec18ee5daa79624a043f32c9 /server/src/com/vaadin/ui/AbstractComponent.java
parent6d96447d5d3d4c1f22c7d49478c1b10a62bf64e7 (diff)
downloadvaadin-framework-0de94d55c9c04aa93b66e6d6a83935d9ed25da5e.tar.gz
vaadin-framework-0de94d55c9c04aa93b66e6d6a83935d9ed25da5e.zip
Generic cleanup (#7749)
Change-Id: I274009ff733eeba6ac312324d0ba946f64d1a26a
Diffstat (limited to 'server/src/com/vaadin/ui/AbstractComponent.java')
-rw-r--r--server/src/com/vaadin/ui/AbstractComponent.java16
1 files changed, 7 insertions, 9 deletions
diff --git a/server/src/com/vaadin/ui/AbstractComponent.java b/server/src/com/vaadin/ui/AbstractComponent.java
index 358fea1bad..5f9ce0edcd 100644
--- a/server/src/com/vaadin/ui/AbstractComponent.java
+++ b/server/src/com/vaadin/ui/AbstractComponent.java
@@ -930,17 +930,13 @@ public abstract class AbstractComponent extends AbstractClientConnector
}
// handle immediate
if (attr.hasKey("immediate")) {
- String str = attr.get("immediate");
- boolean immediate = "".equals(str) ? true : Boolean.valueOf(str);
- setImmediate(immediate);
- } else {
- explicitImmediateValue = null;
+ setImmediate(DesignAttributeHandler.getBoolean(attr
+ .get("immediate")));
}
+
// handle locale
if (attr.hasKey("locale")) {
setLocale(getLocaleFromString(attr.get("locale")));
- } else {
- setLocale(null);
}
// handle width and height
readSize(attr);
@@ -958,8 +954,10 @@ public abstract class AbstractComponent extends AbstractClientConnector
}
// handle responsive
- setResponsive(attr.hasKey("responsive")
- && !attr.get("responsive").equalsIgnoreCase("false"));
+ if (attr.hasKey("responsive")) {
+ setResponsive(DesignAttributeHandler.getBoolean(attr
+ .get("responsive")));
+ }
// check for unsupported attributes
Set<String> supported = new HashSet<String>();
supported.addAll(getDefaultAttributes());