diff options
author | Artur Signell <artur@vaadin.com> | 2012-04-12 12:22:20 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-04-12 12:22:20 +0300 |
commit | 0d993d41e2e3087375bd1b40a8ab5b18f6a42afe (patch) | |
tree | 0f91fdd4230c131123a0eef488764cb53b7e7eff /src | |
parent | c6d0787d1befbd49826ca991bf3733e34126b504 (diff) | |
download | vaadin-framework-0d993d41e2e3087375bd1b40a8ab5b18f6a42afe.tar.gz vaadin-framework-0d993d41e2e3087375bd1b40a8ab5b18f6a42afe.zip |
Re-added ApplicationConnection.updateCaption to ease porting
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ApplicationConnection.java | 23 | ||||
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/AbstractComponentConnector.java | 1 |
2 files changed, 24 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java index a2816728f9..5ececb2104 100644 --- a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java +++ b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java @@ -45,6 +45,7 @@ import com.vaadin.terminal.gwt.client.communication.MethodInvocation; import com.vaadin.terminal.gwt.client.communication.RpcManager; import com.vaadin.terminal.gwt.client.communication.SharedState; import com.vaadin.terminal.gwt.client.communication.StateChangeEvent; +import com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector; import com.vaadin.terminal.gwt.client.ui.VContextMenu; import com.vaadin.terminal.gwt.client.ui.dd.VDragAndDropManager; import com.vaadin.terminal.gwt.client.ui.notification.VNotification; @@ -2337,7 +2338,29 @@ public class ApplicationConnection { @Deprecated public void handleTooltipEvent(Event event, Widget owner, Object key) { handleTooltipEvent(event, getConnectorMap().getConnector(owner), key); + } + + /** + * Method provided for backwards compatibility. Duties previously done by + * this method is now handled by the state change event handler in + * AbstractComponentConnector. The only function this method has is to + * return true if the UIDL is a "cached" update. + * + * @param component + * @param uidl + * @param manageCaption + * @return + */ + @Deprecated + public boolean updateComponent(Widget component, UIDL uidl, + boolean manageCaption) { + ComponentConnector connector = getConnectorMap() + .getConnector(component); + if (!AbstractComponentConnector.isRealUpdate(uidl)) { + return true; + } + return false; } @Deprecated diff --git a/src/com/vaadin/terminal/gwt/client/ui/AbstractComponentConnector.java b/src/com/vaadin/terminal/gwt/client/ui/AbstractComponentConnector.java index f5f177b5d1..9542bb81d4 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/AbstractComponentConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/AbstractComponentConnector.java @@ -75,6 +75,7 @@ public abstract class AbstractComponentConnector extends AbstractConnector return state; } + @Deprecated public static boolean isRealUpdate(UIDL uidl) { return !uidl.hasAttribute("cached"); } |