diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-11-29 07:23:27 +0000 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2012-11-29 07:23:27 +0000 |
commit | 46dfb4d6b1a660b94b263db5003b0c8583d569b9 (patch) | |
tree | 7b98c4e4886f69bdab9432bc890661bf08e3d28e /uitest | |
parent | b3f7a4238e8b1aea74cab26c5fab09d15ae96dd0 (diff) | |
parent | 1281bb6c855bea61a97e146a894959ec98e5c401 (diff) | |
download | vaadin-framework-46dfb4d6b1a660b94b263db5003b0c8583d569b9.tar.gz vaadin-framework-46dfb4d6b1a660b94b263db5003b0c8583d569b9.zip |
Merge "Make AbstractExtensionConnector.extend abstract (#10378)"
Diffstat (limited to 'uitest')
3 files changed, 15 insertions, 2 deletions
diff --git a/uitest/src/com/vaadin/tests/widgetset/client/SerializerTestConnector.java b/uitest/src/com/vaadin/tests/widgetset/client/SerializerTestConnector.java index 26d41bc655..90cce49ace 100644 --- a/uitest/src/com/vaadin/tests/widgetset/client/SerializerTestConnector.java +++ b/uitest/src/com/vaadin/tests/widgetset/client/SerializerTestConnector.java @@ -26,6 +26,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.Set; +import com.vaadin.client.ServerConnector; import com.vaadin.client.communication.StateChangeEvent; import com.vaadin.client.extensions.AbstractExtensionConnector; import com.vaadin.shared.Connector; @@ -263,4 +264,10 @@ public class SerializerTestConnector extends AbstractExtensionConnector { // TODO do something clever } + @Override + protected void extend(ServerConnector target) { + // TODO Auto-generated method stub + + } + } diff --git a/uitest/src/com/vaadin/tests/widgetset/client/helloworldfeature/HelloWorldExtensionConnector.java b/uitest/src/com/vaadin/tests/widgetset/client/helloworldfeature/HelloWorldExtensionConnector.java index a0a6911eb2..54f5da4148 100644 --- a/uitest/src/com/vaadin/tests/widgetset/client/helloworldfeature/HelloWorldExtensionConnector.java +++ b/uitest/src/com/vaadin/tests/widgetset/client/helloworldfeature/HelloWorldExtensionConnector.java @@ -42,8 +42,7 @@ public class HelloWorldExtensionConnector extends AbstractExtensionConnector { } @Override - public void setParent(ServerConnector parent) { - super.setParent(parent); + protected void extend(ServerConnector target) { greet(); } diff --git a/uitest/src/com/vaadin/tests/widgetset/client/minitutorials/v7a3/RefresherConnector.java b/uitest/src/com/vaadin/tests/widgetset/client/minitutorials/v7a3/RefresherConnector.java index 2deef7e1ba..b077d5b42d 100644 --- a/uitest/src/com/vaadin/tests/widgetset/client/minitutorials/v7a3/RefresherConnector.java +++ b/uitest/src/com/vaadin/tests/widgetset/client/minitutorials/v7a3/RefresherConnector.java @@ -1,6 +1,7 @@ package com.vaadin.tests.widgetset.client.minitutorials.v7a3; import com.google.gwt.user.client.Timer; +import com.vaadin.client.ServerConnector; import com.vaadin.client.communication.StateChangeEvent; import com.vaadin.client.extensions.AbstractExtensionConnector; import com.vaadin.shared.ui.Connect; @@ -31,6 +32,12 @@ public class RefresherConnector extends AbstractExtensionConnector { } @Override + protected void extend(ServerConnector target) { + // Nothing for refresher to do here as it does not need to access the + // connector it extends + } + + @Override public RefresherState getState() { return (RefresherState) super.getState(); } |