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

    Constructors
    Modifier
    Constructor
    Description
    protected
    MprNavigator(com.vaadin.ui.UI ui, com.vaadin.ui.ComponentContainer container)
    MprNavigator override to get the used ComponentContainer for adding as a AbstractLegacyWrapper component.
    protected
    MprNavigator(com.vaadin.ui.UI ui, com.vaadin.ui.SingleComponentContainer container)
    MprNavigator override to get the used SingleComponentContainer for adding as a AbstractLegacyWrapper component.
     
    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 Type
    Method
    Description
    com.vaadin.ui.HasComponents
    Get the view display used for showing the active view.
    void
    navigateTo(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MprNavigator

      public MprNavigator(com.vaadin.ui.UI ui, Class<? extends AbstractMprNavigatorRoute> mprNavigatorRoute)
      MprNavigator constructor.
      Parameters:
      ui - legacy UI instance of this navigator
      mprNavigatorRoute - 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 navigator
      mprNavigatorRoute - Flow view containing navigator component container
      container - 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 navigator
      mprNavigatorRoute - Flow view containing navigator component container
      container - 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 used ComponentContainer for adding as a AbstractLegacyWrapper component.
      Parameters:
      ui - legacy UI instance of this navigator
      container - 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 used SingleComponentContainer for adding as a AbstractLegacyWrapper component.
      Parameters:
      ui - legacy UI instance of this navigator
      container - 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