com.vaadin.flow.router.internal.
Class ErrorStateRenderer
All Implemented Interfaces:
Handles error navigation rendering in the target UI.
For internal use only. May be renamed or removed in a future release.
Since:
1.0
See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionErrorStateRenderer
(NavigationState navigationState) Constructs a new state renderer for the given navigation state.
-
Method Summary
Modifier and TypeMethodDescriptionList<Class<? extends RouterLayout>>
getRouterLayoutTypes
(Class<? extends Component> targetType, 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.
protected void
notifyNavigationTarget
(Component componentInstance, NavigationEvent navigationEvent, BeforeEnterEvent beforeEnterEvent, LocationChangeEvent locationChangeEvent) Notify the navigation target about the status of the navigation.
Methods inherited from class com.vaadin.flow.router.internal.AbstractNavigationStateRenderer
getNavigationState, getTargetParentLayouts, handleTriggeredBeforeEvent, purgeInactiveUIPreservedChainCache, pushHistoryState, shouldPushHistoryState
-
Constructor Details
-
Method Details
-
getRouterLayoutTypes
public List<Class<? extends RouterLayout>> getRouterLayoutTypes(Class<? extends Component> targetType, 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.
Specified by:
getRouterLayoutTypes
in classAbstractNavigationStateRenderer
Parameters:
targetType
- component type to showrouter
- used router instanceReturns:
a list of parent
RouterLayout
types, notnull