diff options
author | Matti Hosio <mhosio@vaadin.com> | 2014-12-12 13:04:31 +0200 |
---|---|---|
committer | Matti Hosio <mhosio@vaadin.com> | 2014-12-12 16:18:20 +0200 |
commit | a025d511bfe4e81993d33fc424a9bed754586a52 (patch) | |
tree | 46598f43edf5182fc0f867edc2fbcd01e50ecaea /server/src/com/vaadin/ui/declarative/DesignAttributeHandler.java | |
parent | c4aab1fe917b3cae5a41c8acc1e7cbea07700106 (diff) | |
download | vaadin-framework-a025d511bfe4e81993d33fc424a9bed754586a52.tar.gz vaadin-framework-a025d511bfe4e81993d33fc424a9bed754586a52.zip |
Embed DesignSynchronizable methods to Component interface (#7749)
Change-Id: I06de4d2065dee107da40c2a4941e7d9e22f0832b
Diffstat (limited to 'server/src/com/vaadin/ui/declarative/DesignAttributeHandler.java')
-rw-r--r-- | server/src/com/vaadin/ui/declarative/DesignAttributeHandler.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/server/src/com/vaadin/ui/declarative/DesignAttributeHandler.java b/server/src/com/vaadin/ui/declarative/DesignAttributeHandler.java index f70a79447f..b410fd0001 100644 --- a/server/src/com/vaadin/ui/declarative/DesignAttributeHandler.java +++ b/server/src/com/vaadin/ui/declarative/DesignAttributeHandler.java @@ -49,7 +49,7 @@ import com.vaadin.server.FontAwesome; import com.vaadin.server.Resource; import com.vaadin.server.ThemeResource; import com.vaadin.shared.util.SharedUtil; -import com.vaadin.ui.DesignSynchronizable; +import com.vaadin.ui.Component; /** * Default attribute handler implementation used when parsing designs to @@ -104,9 +104,8 @@ public class DesignAttributeHandler implements Serializable { * values * @return true on success */ - public static boolean readAttribute(DesignSynchronizable component, - String attribute, Attributes attributes, - DesignSynchronizable defaultInstance) { + public static boolean readAttribute(Component component, String attribute, + Attributes attributes, Component defaultInstance) { String value = null; if (component == null || attribute == null || attributes == null || defaultInstance == null) { @@ -213,9 +212,8 @@ public class DesignAttributeHandler implements Serializable { * @param defaultInstance * the default instance for comparing default values */ - public static void writeAttribute(DesignSynchronizable component, - String attribute, Attributes attr, - DesignSynchronizable defaultInstance) { + public static void writeAttribute(Component component, String attribute, + Attributes attr, Component defaultInstance) { Method getter = findGetterForAttribute(component.getClass(), attribute); if (getter == null) { getLogger().warning( |