com.vaadin.flow.router.internal.
Class AbstractNavigationStateRenderer
All Implemented Interfaces:
Direct Known Subclasses:
Base class for navigation handlers that target a navigation state.
For internal use only. May be renamed or removed in a future release.
Since:
1.0
Author:
Vaadin Ltd
See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractNavigationStateRenderer
(NavigationState navigationState) Creates a new renderer for the given navigation state.
-
Method Summary
Modifier and TypeMethodDescriptionGets the targeted navigation state.
protected abstract List<Class<? extends RouterLayout>>
getRouterLayoutTypes
(Class<? extends Component> routeTargetType, Router router) Gets the router layout types to show for the given route target type, starting from the parent layout immediately wrapping the route target type.
int
handle
(NavigationEvent event) Handles the navigation event.
handleTriggeredBeforeEvent
(NavigationEvent event, BeforeEvent beforeEvent) Handle a
BeforeEvent
after if has been triggered to an observer.protected abstract void
notifyNavigationTarget
(Component componentInstance, NavigationEvent navigationEvent, BeforeEnterEvent beforeEnterEvent, LocationChangeEvent locationChangeEvent) Notify the navigation target about the status of the navigation.
protected void
pushHistoryState
(NavigationEvent event) protected boolean
-
Constructor Details
-
Method Details
-
getRouterLayoutTypes
protected abstract List<Class<? extends RouterLayout>> getRouterLayoutTypes(Class<? extends Component> routeTargetType, Router router) Gets the router layout types to show for the given route target type, starting from the parent layout immediately wrapping the route target type.
Parameters:
routeTargetType
- component type that will be shownrouter
- used router instanceReturns:
a list of parent
RouterLayout
types, notnull