public interface SpringViewNavigator extends ViewNavigator
ViewNavigator
with Spring support.
Note that default implementation (the one returned by the builder obtained through builder()
) extends Vaadin
SpringNavigator
ad it is designed to be used as a registered Spring bean with default
SpringViewProvider
as View provider.
Modifier and Type | Interface and Description |
---|---|
static interface |
SpringViewNavigator.Builder
Builder to create
SpringViewNavigator instances |
ViewNavigator.NavigationBuilder, ViewNavigator.NavigatorBuilder<B extends ViewNavigator.NavigatorBuilder<B>>, ViewNavigator.ViewNavigationException, ViewNavigator.ViewNavigatorChangeEvent
CONTEXT_KEY, VIEW_URI_SCHEME
Modifier and Type | Method and Description |
---|---|
static SpringViewNavigator.Builder |
builder()
Builder to create
SpringViewNavigator instances |
void |
init(com.vaadin.ui.UI ui,
com.vaadin.ui.ComponentContainer container)
Initializes an injected navigator and registers
SpringViewProvider for it. |
void |
init(com.vaadin.ui.UI ui,
com.vaadin.navigator.NavigationStateManager stateManager,
com.vaadin.navigator.ViewDisplay viewDisplay)
Initializes an injected navigator and registers
SpringViewProvider for it, using a custom
NavigationStateManager . |
void |
init(com.vaadin.ui.UI ui,
com.vaadin.ui.SingleComponentContainer container)
Initializes an injected navigator and registers
SpringViewProvider for it. |
void |
init(com.vaadin.ui.UI ui,
com.vaadin.navigator.ViewDisplay viewDisplay)
Initializes an injected navigator and registers
SpringViewProvider for it. |
addViewChangeListener, getCurrent, getCurrentView, getCurrentViewName, getDefaultViewName, navigateBack, navigateInWindow, navigateInWindow, navigateInWindow, navigateInWindow, navigateTo, navigateTo, navigateToDefault, navigateToState, require, runAfterLeaveConfirmation, toView
void init(com.vaadin.ui.UI ui, com.vaadin.ui.ComponentContainer container)
SpringViewProvider
for it.
The default navigation state manager (based on URI fragments) is used.
Navigation is automatically initiated after UI.init()
if a navigator was created. If at a later point
changes are made to the navigator, navigator.navigateTo(navigator.getState())
may need to be explicitly
called to ensure the current view matches the navigation state.
ui
- The UI to which this Navigator is attachedcontainer
- The component container used to display the views handled by this navigatorvoid init(com.vaadin.ui.UI ui, com.vaadin.ui.SingleComponentContainer container)
SpringViewProvider
for it.
The default navigation state manager (based on URI fragments) is used.
Navigation is automatically initiated after UI.init()
if a navigator was created. If at a later point
changes are made to the navigator, navigator.navigateTo(navigator.getState())
may need to be explicitly
called to ensure the current view matches the navigation state.
ui
- The UI to which this Navigator is attachedcontainer
- The single component container used to display the views handled by this navigatorvoid init(com.vaadin.ui.UI ui, com.vaadin.navigator.ViewDisplay viewDisplay)
SpringViewProvider
for it.
The default navigation state manager (based on URI fragments) is used.
Navigation is automatically initiated after UI.init()
if a navigator was created. If at a later point
changes are made to the navigator, navigator.navigateTo(navigator.getState())
may need to be explicitly
called to ensure the current view matches the navigation state.
ui
- The UI to which this Navigator is attachedviewDisplay
- The ViewDisplay used to display the views handled by this navigatorvoid init(com.vaadin.ui.UI ui, com.vaadin.navigator.NavigationStateManager stateManager, com.vaadin.navigator.ViewDisplay viewDisplay)
SpringViewProvider
for it, using a custom
NavigationStateManager
.
Navigation is automatically initiated after UI.init()
if a navigator was created. If at a later point
changes are made to the navigator, navigator.navigateTo(navigator.getState())
may need to be explicitly
called to ensure the current view matches the navigation state.
ui
- The UI to which this Navigator is attachedstateManager
- The NavigationStateManager keeping track of the active view and enabling bookmarking and
direct navigation or null for defaultviewDisplay
- The ViewDisplay used to display the views handled by this navigatorstatic SpringViewNavigator.Builder builder()
SpringViewNavigator
instancesbuilder
in interface ViewNavigator
Copyright © 2019 The Holon Platform. All rights reserved.