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.NavigatorMPR extension of Navigator so we can handle navigation between legacyNavigatorand Flow Router.- See Also:
- Serialized Form
-
-
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.SingleComponentContainerViewDisplay, com.vaadin.navigator.Navigator.StaticViewProvider, com.vaadin.navigator.Navigator.UriFragmentManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMprNavigator(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.ui.HasComponentsgetViewDisplay()Get 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, destroy, fireAfterViewChange, fireBeforeViewChange, getCurrentView, getDisplay, getState, getStateManager, getUI, init, navigateTo, removeProvider, removeView, removeViewChangeListener, revertNavigation, setErrorProvider, setErrorView, setErrorView, switchView, updateNavigationState
-
-
-
-
Constructor Detail
-
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 Detail
-
navigateTo
public void navigateTo(String navigationState)
- Overrides:
navigateToin classcom.vaadin.navigator.Navigator
-
getViewDisplay
public com.vaadin.ui.HasComponents getViewDisplay()
Get the view display used for showing the active view.- Returns:
- Navigator component
-
-