diff options
author | Artur Signell <artur@vaadin.com> | 2016-08-24 15:32:34 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2016-08-24 22:13:45 +0300 |
commit | 27135071923874a259676d934616c6c00a7c0550 (patch) | |
tree | 71b88d0266225a543d9ac2e18659db13d58625c9 /server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java | |
parent | 38b825cf892b0877faa4c4d3b9f2ad7d7b878bd0 (diff) | |
download | vaadin-framework-27135071923874a259676d934616c6c00a7c0550.tar.gz vaadin-framework-27135071923874a259676d934616c6c00a7c0550.zip |
Change declarative support to use new converters
Change-Id: I3bb2c106a4c4d8556f6f752867da1917e0d3c9a3
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java')
-rw-r--r-- | server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java b/server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java index f6607c91e4..ba5c279ed1 100644 --- a/server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java +++ b/server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java @@ -36,10 +36,10 @@ import org.jsoup.nodes.Attributes; import org.jsoup.nodes.Element; import org.jsoup.nodes.Node; +import com.vaadin.data.util.converter.Converter; import com.vaadin.shared.ui.AlignmentInfo; import com.vaadin.shared.util.SharedUtil; import com.vaadin.ui.Alignment; -import com.vaadin.v7.data.util.converter.Converter; /** * Default attribute handler implementation used when parsing designs to @@ -379,10 +379,11 @@ public class DesignAttributeHandler implements Serializable { // value is not null. How to represent null value in attributes? return ""; } - Converter<String, Object> converter = getFormatter() + @SuppressWarnings("unchecked") + Converter<String, Object> converter = (Converter<String, Object>) getFormatter() .findConverterFor(sourceType); if (converter != null) { - return converter.convertToPresentation(value, String.class, null); + return converter.convertToPresentation(value, null); } else { return value.toString(); } |