summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/src/com/vaadin/navigator/Navigator.java9
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