Browse Source

Add navigate() method to Navigator for navigating to the current location (#9442)

tags/7.0.0.beta1
Johannes Dahlström 11 years ago
parent
commit
bf01777881
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      server/src/com/vaadin/navigator/Navigator.java

+ 9
- 0
server/src/com/vaadin/navigator/Navigator.java View 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.
*

Loading…
Cancel
Save