@Tag(value="div")
public abstract class AbstractMprNavigatorRoute
extends com.vaadin.flow.component.Component
implements com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasComponents
Navigator coexists with Flow routing.| Constructor and Description |
|---|
AbstractMprNavigatorRoute()
Navigator route constructor.
|
AbstractMprNavigatorRoute(com.vaadin.ui.ComponentContainer container)
Navigator route constructor with componentContainer for navigator.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
configureNavigator(com.vaadin.navigator.Navigator navigator)
Initialize the navigation routes for the legacy Navigator.
|
com.vaadin.navigator.Navigator |
getNavigator()
Get the navigator registered for the current FW UI.
|
protected com.vaadin.navigator.Navigator |
getNavigator(com.vaadin.ui.ComponentContainer container)
Get the navigator registered for the current FW UI or create a new one
using given container.
|
protected abstract AbstractLegacyWrapper |
getWrapper(com.vaadin.ui.Component component) |
void |
navigateTo(String navigationState)
Shorthand for navigating to new view.
|
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCssSize, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullpublic AbstractMprNavigatorRoute()
public AbstractMprNavigatorRoute(com.vaadin.ui.ComponentContainer container)
container - Layout component that should be used with navigatorprotected abstract AbstractLegacyWrapper getWrapper(com.vaadin.ui.Component component)
public void navigateTo(String navigationState)
navigationState - view name and parameterspublic abstract void configureNavigator(com.vaadin.navigator.Navigator navigator)
navigator - navigator to configurepublic com.vaadin.navigator.Navigator getNavigator()
protected com.vaadin.navigator.Navigator getNavigator(com.vaadin.ui.ComponentContainer container)
container - The ComponentContainer to use with the NavigatorCopyright © 2018–2023 Vaadin Ltd. All rights reserved.