public class ErrorStateRenderer extends AbstractNavigationStateRenderer
For internal use only. May be renamed or removed in a future release.
HasErrorParameter
,
Serialized FormConstructor and Description |
---|
ErrorStateRenderer(NavigationState navigationState)
Constructs a new state renderer for the given navigation state.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
eventActionsSupported()
Checks whether this renderer should reroute or postpone navigation based
on results from event listeners.
|
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.
|
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.
|
getNavigationState, purgeInactiveUIPreservedChainCache
public ErrorStateRenderer(NavigationState navigationState)
navigationState
- the navigation state handled by this instancepublic int handle(NavigationEvent event)
NavigationHandler
handle
in interface NavigationHandler
handle
in class AbstractNavigationStateRenderer
event
- the navigation event to handleprotected void notifyNavigationTarget(Component componentInstance, NavigationEvent navigationEvent, BeforeEnterEvent beforeEnterEvent, LocationChangeEvent locationChangeEvent)
AbstractNavigationStateRenderer
notifyNavigationTarget
in class AbstractNavigationStateRenderer
componentInstance
- the navigation target instancenavigationEvent
- the low level navigation event that is being processedbeforeEnterEvent
- the before enter event that will be fired unless navigation is
reroutedlocationChangeEvent
- the location change event that will be fired unless navigation
is reroutedpublic List<Class<? extends RouterLayout>> getRouterLayoutTypes(Class<? extends Component> targetType, Router router)
getRouterLayoutTypes
in class AbstractNavigationStateRenderer
targetType
- component type to showrouter
- used router instanceRouterLayout
types, not
null
protected boolean eventActionsSupported()
AbstractNavigationStateRenderer
eventActionsSupported
in class AbstractNavigationStateRenderer
true
to support event actions; false
otherwise.Copyright © 2025. All rights reserved.