]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add navigate() method to Navigator for navigating to the current location (#9442)
authorJohannes Dahlström <johannesd@vaadin.com>
Tue, 11 Sep 2012 09:27:13 +0000 (12:27 +0300)
committerJohannes Dahlström <johannesd@vaadin.com>
Tue, 11 Sep 2012 09:28:25 +0000 (12:28 +0300)
server/src/com/vaadin/navigator/Navigator.java

index 157a97ac0ec9adb2f5f7a30a562cc080552c91ed..bf4416ff3db3e742511f95775127332198a7f047 100644 (file)
@@ -410,6 +410,15 @@ public class Navigator implements Serializable {
         this.stateManager = stateManager;
     }
 
+    /**
+     * 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.
      *