aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-08-03 09:32:44 +0300
committerLeif Åstrand <leif@vaadin.com>2012-08-03 09:32:44 +0300
commit0f4bfa8ccd7875a32c3bc283789ffbdbbdd880dd (patch)
tree5df27b36db7f087d6e715bc44f8c027441f6b7b8
parent3ffa35ea780df68730e1baf57f18bc6a027c2029 (diff)
downloadvaadin-framework-0f4bfa8ccd7875a32c3bc283789ffbdbbdd880dd.tar.gz
vaadin-framework-0f4bfa8ccd7875a32c3bc283789ffbdbbdd880dd.zip
Make connector implement Paintable just to get rid of warnings (#8688)
Without this fix, warnings about getting Vaadin 6 style updates will be logged when using CustomLayout.
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/customlayout/CustomLayoutConnector.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/customlayout/CustomLayoutConnector.java b/src/com/vaadin/terminal/gwt/client/ui/customlayout/CustomLayoutConnector.java
index 20df067757..9d973227d1 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/customlayout/CustomLayoutConnector.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/customlayout/CustomLayoutConnector.java
@@ -7,8 +7,11 @@ import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.Widget;
import com.vaadin.shared.ui.Connect;
import com.vaadin.shared.ui.customlayout.CustomLayoutState;
+import com.vaadin.terminal.gwt.client.ApplicationConnection;
import com.vaadin.terminal.gwt.client.ComponentConnector;
import com.vaadin.terminal.gwt.client.ConnectorHierarchyChangeEvent;
+import com.vaadin.terminal.gwt.client.Paintable;
+import com.vaadin.terminal.gwt.client.UIDL;
import com.vaadin.terminal.gwt.client.communication.StateChangeEvent;
import com.vaadin.terminal.gwt.client.ui.AbstractLayoutConnector;
import com.vaadin.terminal.gwt.client.ui.SimpleManagedLayout;
@@ -16,7 +19,7 @@ import com.vaadin.ui.CustomLayout;
@Connect(CustomLayout.class)
public class CustomLayoutConnector extends AbstractLayoutConnector implements
- SimpleManagedLayout {
+ SimpleManagedLayout, Paintable {
@Override
public CustomLayoutState getState() {
@@ -112,4 +115,10 @@ public class CustomLayoutConnector extends AbstractLayoutConnector implements
public void layout() {
getWidget().iLayoutJS(DOM.getFirstChild(getWidget().getElement()));
}
+
+ @Override
+ public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
+ // Not interested in anything from the UIDL - just implementing the
+ // interface to avoid some warning (#8688)
+ }
}