diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2012-09-11 12:27:13 +0300 |
---|---|---|
committer | Johannes Dahlström <johannesd@vaadin.com> | 2012-09-11 12:28:25 +0300 |
commit | bf01777881ec67b82fa26553e22eccf7f9926a1b (patch) | |
tree | b726b15be767d7ba62b58be97802c35483879560 | |
parent | f3b54b91920aff36e08785744e19abd61b66192f (diff) | |
download | vaadin-framework-bf01777881ec67b82fa26553e22eccf7f9926a1b.tar.gz vaadin-framework-bf01777881ec67b82fa26553e22eccf7f9926a1b.zip |
Add navigate() method to Navigator for navigating to the current location (#9442)
-rw-r--r-- | server/src/com/vaadin/navigator/Navigator.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/src/com/vaadin/navigator/Navigator.java b/server/src/com/vaadin/navigator/Navigator.java index 157a97ac0e..bf4416ff3d 100644 --- a/server/src/com/vaadin/navigator/Navigator.java +++ b/server/src/com/vaadin/navigator/Navigator.java @@ -411,6 +411,15 @@ public class Navigator implements Serializable { } /** + * Navigates to the current navigation state. This method should be called + * when all required {@link View}s, {@link ViewProvider}s, and + * {@link ViewChangeListener}s have been added to the navigator. + */ + public void navigate() { + navigateTo(getStateManager().getState()); + } + + /** * Navigate to a view and initialize the view with given parameters. * * The view string consists of a view name optionally followed by a slash |