Example usage for Java com.vaadin.navigator Navigator fields, constructors, methods, implement or subclass
The text is from its open source code.
Navigator(UI ui, ComponentContainer container) Creates a navigator that is tracking the active view using URI fragments of the Page containing the given UI and replacing the contents of a ComponentContainer with the active view. | |
Navigator(UI ui, SingleComponentContainer container) Creates a navigator that is tracking the active view using URI fragments of the Page containing the given UI and replacing the contents of a SingleComponentContainer with the active view. | |
Navigator(UI ui, ViewDisplay display) Creates a navigator that is tracking the active view using URI fragments of the Page containing the given UI. | |
Navigator(UI ui, NavigationStateManager stateManager, ViewDisplay display) Creates a navigator. |
void | addProvider(ViewProvider provider) Registers a view provider (factory). |
void | addView(String viewName, View view) Registers a static, pre-initialized view instance for a view name. |
void | addView(String viewName, Class extends View> viewClass) Registers a view class for a view name. |
Registration | addViewChangeListener(ViewChangeListener listener) Listen to changes of the active view. |
String | getState() Returns the current navigation state reported by this Navigator's NavigationStateManager . |
void | navigateTo(String navigationState) Navigates to a view and initialize the view with given parameters. |
void | removeViewChangeListener(ViewChangeListener listener) Removes a view change listener. |
void | setErrorProvider(ViewProvider provider) Registers a view provider that is queried for a view when no other view matches the navigation state. |
void | setErrorView(final Class extends View> viewClass) Registers a view class that is instantiated when no other view matches the navigation state. |
void | setErrorView(final View view) Registers a view that is displayed when no other view matches the navigation state. |