diff options
author | Henri Sara <hesara@vaadin.com> | 2012-06-26 09:51:18 +0300 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2012-06-26 14:51:19 +0300 |
commit | 1bcde71af737c5d4a3d80e86cfd69f7b2dc4ec62 (patch) | |
tree | 27a6087b21758f05ccda8b025d2381ad138b7202 /src | |
parent | 23fcb95f1a8b2fda7f6b7d648634ec21463da875 (diff) | |
download | vaadin-framework-1bcde71af737c5d4a3d80e86cfd69f7b2dc4ec62.tar.gz vaadin-framework-1bcde71af737c5d4a3d80e86cfd69f7b2dc4ec62.zip |
Add javadoc about navigation to initial view, remove unused code #8859
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/navigator/Navigator.java | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/com/vaadin/navigator/Navigator.java b/src/com/vaadin/navigator/Navigator.java index 3ff727b504..2c340adaa2 100644 --- a/src/com/vaadin/navigator/Navigator.java +++ b/src/com/vaadin/navigator/Navigator.java @@ -270,6 +270,15 @@ public class Navigator implements Serializable { /** * Create a navigator that is tracking the active view using URI fragments. * + * <p> + * After all {@link View}s and {@link ViewProvider}s have been registered, + * the application should trigger navigation to the current fragment using + * e.g. + * + * <pre> + * navigator.navigateTo(Page.getCurrent().getFragment()); + * </pre> + * * @param page * whose URI fragments are used * @param display @@ -278,7 +287,6 @@ public class Navigator implements Serializable { public Navigator(Page page, ViewDisplay display) { this.display = display; fragmentManager = new UriFragmentManager(page, this); - navigateTo(page.getFragment()); } /** @@ -286,13 +294,21 @@ public class Navigator implements Serializable { * By default, a {@link SimpleViewDisplay} is used and can be obtained using * {@link #getDisplay()}. * + * <p> + * After all {@link View}s and {@link ViewProvider}s have been registered, + * the application should trigger navigation to the current fragment using + * e.g. + * + * <pre> + * navigator.navigateTo(Page.getCurrent().getFragment()); + * </pre> + * * @param page * whose URI fragments are used */ public Navigator(Page page) { display = new SimpleViewDisplay(); fragmentManager = new UriFragmentManager(page, this); - navigateTo(page.getFragment()); } /** |