diff options
author | Leif Åstrand <leif@vaadin.com> | 2014-03-27 11:14:55 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-04-01 08:15:56 +0000 |
commit | 7bfb2347ad32187444c194e7ebadae6a6d3597ca (patch) | |
tree | c94081d4cb9d2eba433c4cec3ddbcc27da57c643 /client-compiler/src/com/vaadin/server/widgetsetutils/metadata/WidgetInitVisitor.java | |
parent | a636bb70c20277228468345017a2f8d42d39857c (diff) | |
download | vaadin-framework-7bfb2347ad32187444c194e7ebadae6a6d3597ca.tar.gz vaadin-framework-7bfb2347ad32187444c194e7ebadae6a6d3597ca.zip |
Implement @OnStateChange (#12958)
Change-Id: I8ea2b781fab42458bf55a751c1229e391365e965
Diffstat (limited to 'client-compiler/src/com/vaadin/server/widgetsetutils/metadata/WidgetInitVisitor.java')
-rw-r--r-- | client-compiler/src/com/vaadin/server/widgetsetutils/metadata/WidgetInitVisitor.java | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/client-compiler/src/com/vaadin/server/widgetsetutils/metadata/WidgetInitVisitor.java b/client-compiler/src/com/vaadin/server/widgetsetutils/metadata/WidgetInitVisitor.java index 4de9d2ae99..bac7f5a0f7 100644 --- a/client-compiler/src/com/vaadin/server/widgetsetutils/metadata/WidgetInitVisitor.java +++ b/client-compiler/src/com/vaadin/server/widgetsetutils/metadata/WidgetInitVisitor.java @@ -32,10 +32,11 @@ public class WidgetInitVisitor extends TypeVisitor { ConnectorBundle bundle) throws UnableToCompleteException { if (ConnectorBundle.isConnectedComponentConnector(type)) { // The class in which createWidget is implemented - JClassType createWidgetClass = findInheritedMethod(type, - "createWidget").getEnclosingType(); + JClassType createWidgetClass = ConnectorBundle.findInheritedMethod( + type, "createWidget").getEnclosingType(); - JMethod getWidget = findInheritedMethod(type, "getWidget"); + JMethod getWidget = ConnectorBundle.findInheritedMethod(type, + "getWidget"); JClassType widgetType = getWidget.getReturnType().isClass(); // Needs GWT constructor if createWidget is not overridden @@ -48,7 +49,8 @@ public class WidgetInitVisitor extends TypeVisitor { } // Check state properties for @DelegateToWidget - JMethod getState = findInheritedMethod(type, "getState"); + JMethod getState = ConnectorBundle.findInheritedMethod(type, + "getState"); JClassType stateType = getState.getReturnType().isClass(); Collection<Property> properties = bundle.getProperties(stateType); @@ -63,8 +65,9 @@ public class WidgetInitVisitor extends TypeVisitor { String methodName = DelegateToWidget.Helper .getDelegateTarget(property.getName(), delegateToWidget.value()); - JMethod delegatedSetter = findInheritedMethod(widgetType, - methodName, property.getPropertyType()); + JMethod delegatedSetter = ConnectorBundle + .findInheritedMethod(widgetType, methodName, + property.getPropertyType()); if (delegatedSetter == null) { logger.log( Type.ERROR, |