diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2012-10-17 16:29:28 +0300 |
---|---|---|
committer | Johannes Dahlström <johannesd@vaadin.com> | 2012-10-17 16:29:28 +0300 |
commit | 90ffa9404fbb458ffbd1a26930811fcea6037d97 (patch) | |
tree | 6a4be7e87c6e0ff293a48719e64c1d898bc1a4dd /server/src/com/vaadin/navigator | |
parent | 43c3f454d419c0eb7b0d094c4cf853e3ec3867ae (diff) | |
download | vaadin-framework-90ffa9404fbb458ffbd1a26930811fcea6037d97.tar.gz vaadin-framework-90ffa9404fbb458ffbd1a26930811fcea6037d97.zip |
Add Navigator.getState() returning the current navigation state (#9972)
Change-Id: Ic423252ed82ea5c991760ece76a9a0f0e5a259a4
Diffstat (limited to 'server/src/com/vaadin/navigator')
-rw-r--r-- | server/src/com/vaadin/navigator/Navigator.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/src/com/vaadin/navigator/Navigator.java b/server/src/com/vaadin/navigator/Navigator.java index 72d6c65fd2..4b2474a0f2 100644 --- a/server/src/com/vaadin/navigator/Navigator.java +++ b/server/src/com/vaadin/navigator/Navigator.java @@ -543,6 +543,16 @@ public class Navigator implements Serializable { } /** + * Returns the current navigation state reported by this Navigator's + * {@link NavigationStateManager}. + * + * @return The navigation state. + */ + public String getState() { + return getStateManager().getState(); + } + + /** * Return the ViewDisplay used by the navigator. Unless another display is * specified, a {@link SimpleViewDisplay} (which is a {@link Component}) is * used by default. |