Package com.vaadin.mpr.core
Class MprNavigator
java.lang.Object
com.vaadin.navigator.Navigator
com.vaadin.mpr.core.MprNavigator
- All Implemented Interfaces:
Serializable
public class MprNavigator
extends com.vaadin.navigator.Navigator
MPR extension of Navigator so we can handle navigation between legacy
Navigator and Flow Router.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.navigator.Navigator
com.vaadin.navigator.Navigator.ClassBasedViewProvider, com.vaadin.navigator.Navigator.ComponentContainerViewDisplay, com.vaadin.navigator.Navigator.EmptyView, com.vaadin.navigator.Navigator.PushStateManager, com.vaadin.navigator.Navigator.SingleComponentContainerViewDisplay, com.vaadin.navigator.Navigator.StaticViewProvider, com.vaadin.navigator.Navigator.UriFragmentManager -
Field Summary
Fields inherited from class com.vaadin.navigator.Navigator
display, stateManager, ui -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMprNavigator(com.vaadin.ui.UI ui, com.vaadin.ui.ComponentContainer container) MprNavigator override to get the usedComponentContainerfor adding as aAbstractLegacyWrappercomponent.protectedMprNavigator(com.vaadin.ui.UI ui, com.vaadin.ui.SingleComponentContainer container) MprNavigator override to get the usedSingleComponentContainerfor adding as aAbstractLegacyWrappercomponent.MprNavigator(com.vaadin.ui.UI ui, Class<? extends AbstractMprNavigatorRoute> mprNavigatorRoute) MprNavigator constructor.MprNavigator(com.vaadin.ui.UI ui, Class<? extends AbstractMprNavigatorRoute> mprNavigatorRoute, com.vaadin.ui.ComponentContainer container) Constructor with given component container instance.MprNavigator(com.vaadin.ui.UI ui, Class<? extends AbstractMprNavigatorRoute> mprNavigatorRoute, com.vaadin.ui.SingleComponentContainer container) Constructor with given single component container instance. -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.ui.HasComponentsGet the view display used for showing the active view.voidnavigateTo(String navigationState) Methods inherited from class com.vaadin.navigator.Navigator
addProvider, addView, addView, addViewChangeListener, beforeViewChange, createNavigationStateManager, destroy, fireAfterViewChange, fireBeforeViewChange, getCurrentNavigationState, getCurrentView, getDisplay, getState, getStateManager, getStateParameterMap, getStateParameterMap, getUI, getViewProvider, init, navigateTo, parseParameterStringToMap, parseStateParameterMap, performNavigateTo, removeProvider, removeView, removeViewChangeListener, revertNavigation, runAfterLeaveConfirmation, setErrorProvider, setErrorView, setErrorView, switchView, updateNavigationState
-
Constructor Details
-
MprNavigator
public MprNavigator(com.vaadin.ui.UI ui, Class<? extends AbstractMprNavigatorRoute> mprNavigatorRoute) MprNavigator constructor.- Parameters:
ui- legacy UI instance of this navigatormprNavigatorRoute- Flow view containing navigator component container
-
MprNavigator
public MprNavigator(com.vaadin.ui.UI ui, Class<? extends AbstractMprNavigatorRoute> mprNavigatorRoute, com.vaadin.ui.ComponentContainer container) Constructor with given component container instance.- Parameters:
ui- legacy UI instance of this navigatormprNavigatorRoute- Flow view containing navigator component containercontainer- The ComponentContainer whose contents should be replaced with the active view on view change
-
MprNavigator
public MprNavigator(com.vaadin.ui.UI ui, Class<? extends AbstractMprNavigatorRoute> mprNavigatorRoute, com.vaadin.ui.SingleComponentContainer container) Constructor with given single component container instance.- Parameters:
ui- legacy UI instance of this navigatormprNavigatorRoute- Flow view containing navigator component containercontainer- The SingleComponentContainer whose contents should be replaced with the active view on view change
-
MprNavigator
protected MprNavigator(com.vaadin.ui.UI ui, com.vaadin.ui.ComponentContainer container) MprNavigator override to get the usedComponentContainerfor adding as aAbstractLegacyWrappercomponent.- Parameters:
ui- legacy UI instance of this navigatorcontainer- The ComponentContainer whose contents should be replaced with the active view on view change
-
MprNavigator
protected MprNavigator(com.vaadin.ui.UI ui, com.vaadin.ui.SingleComponentContainer container) MprNavigator override to get the usedSingleComponentContainerfor adding as aAbstractLegacyWrappercomponent.- Parameters:
ui- legacy UI instance of this navigatorcontainer- The SingleComponentContainer whose contents should be replaced with the active view on view change
-
-
Method Details
-
getViewDisplay
public com.vaadin.ui.HasComponents getViewDisplay()Get the view display used for showing the active view.- Returns:
- Navigator component