Java com.vaadin.navigator Navigator fields, constructors, methods, implement or subclass

Example usage for Java com.vaadin.navigator Navigator fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.vaadin.navigator Navigator.

The text is from its open source code.

Subclass

com.vaadin.navigator.Navigator has subclasses.
Click this link to see all its subclasses.

Constructor

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.

Method

voidaddProvider(ViewProvider provider)
Registers a view provider (factory).
voidaddView(String viewName, View view)
Registers a static, pre-initialized view instance for a view name.
voidaddView(String viewName, Class viewClass)
Registers a view class for a view name.
RegistrationaddViewChangeListener(ViewChangeListener listener)
Listen to changes of the active view.
StringgetState()
Returns the current navigation state reported by this Navigator's NavigationStateManager .
voidnavigateTo(String navigationState)
Navigates to a view and initialize the view with given parameters.
voidremoveViewChangeListener(ViewChangeListener listener)
Removes a view change listener.
voidsetErrorProvider(ViewProvider provider)
Registers a view provider that is queried for a view when no other view matches the navigation state.
voidsetErrorView(final Class viewClass)
Registers a view class that is instantiated when no other view matches the navigation state.
voidsetErrorView(final View view)
Registers a view that is displayed when no other view matches the navigation state.