From bf01777881ec67b82fa26553e22eccf7f9926a1b Mon Sep 17 00:00:00 2001 From: Johannes Dahlström Date: Tue, 11 Sep 2012 12:27:13 +0300 Subject: Add navigate() method to Navigator for navigating to the current location (#9442) --- server/src/com/vaadin/navigator/Navigator.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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 @@ -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. * -- cgit v1.2.3