From 1281bb6c855bea61a97e146a894959ec98e5c401 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 26 Nov 2012 21:33:10 +0200 Subject: Make AbstractExtensionConnector.extend abstract (#10378) Change-Id: I96682d62c632588e05508a50765ac3d029500a74 --- .../com/vaadin/tests/widgetset/client/SerializerTestConnector.java | 7 +++++++ .../client/helloworldfeature/HelloWorldExtensionConnector.java | 3 +-- .../widgetset/client/minitutorials/v7a3/RefresherConnector.java | 7 +++++++ 3 files changed, 15 insertions(+), 2 deletions(-) (limited to 'uitest') 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; @@ -30,6 +31,12 @@ public class RefresherConnector extends AbstractExtensionConnector { timer.cancel(); } + @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(); -- cgit v1.2.3