diff options
author | Joonas Lehtinen <joonas@vaadin.com> | 2013-06-28 18:19:47 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-07-09 12:23:48 +0000 |
commit | 104e472d21e92c3023abc4cfe96e67861424927c (patch) | |
tree | ee0b4d6844f7d7acab7378180877556c2a0b224c /shared | |
parent | 02692163274392fe1b0a33a5206390df0824703d (diff) | |
download | vaadin-framework-104e472d21e92c3023abc4cfe96e67861424927c.tar.gz vaadin-framework-104e472d21e92c3023abc4cfe96e67861424927c.zip |
Fixes @PreserveOnRefresh losing page title on refresh #11054
Moves Page title to PageState instead of using RPC for changing the title on Page.setTitle().
Change-Id: I8e5ab2064c04235503fb2531f4cdbb108530ac7e
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/com/vaadin/shared/ui/ui/PageClientRpc.java | 2 | ||||
-rw-r--r-- | shared/src/com/vaadin/shared/ui/ui/PageState.java | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/shared/src/com/vaadin/shared/ui/ui/PageClientRpc.java b/shared/src/com/vaadin/shared/ui/ui/PageClientRpc.java index eb847bacd0..76a3fbfdb6 100644 --- a/shared/src/com/vaadin/shared/ui/ui/PageClientRpc.java +++ b/shared/src/com/vaadin/shared/ui/ui/PageClientRpc.java @@ -20,8 +20,6 @@ import com.vaadin.shared.communication.ClientRpc; public interface PageClientRpc extends ClientRpc { - public void setTitle(String title); - public void reload(); } diff --git a/shared/src/com/vaadin/shared/ui/ui/PageState.java b/shared/src/com/vaadin/shared/ui/ui/PageState.java index 0b51eb4bba..ded73d16d5 100644 --- a/shared/src/com/vaadin/shared/ui/ui/PageState.java +++ b/shared/src/com/vaadin/shared/ui/ui/PageState.java @@ -30,4 +30,9 @@ public class PageState implements Serializable { * True if the page has browser window resize listeners. */ public boolean hasResizeListeners = false; + + /** + * Non-null if the title is set. + */ + public String title = null; }
\ No newline at end of file |