public class ErrorStateRenderer extends AbstractNavigationStateRenderer
For internal use only. May be renamed or removed in a future release.
HasErrorParameter,
Serialized Form| Constructor 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, purgeInactiveUIPreservedChainCachepublic ErrorStateRenderer(NavigationState navigationState)
navigationState - the navigation state handled by this instancepublic int handle(NavigationEvent event)
NavigationHandlerhandle in interface NavigationHandlerhandle in class AbstractNavigationStateRendererevent - the navigation event to handleprotected void notifyNavigationTarget(Component componentInstance, NavigationEvent navigationEvent, BeforeEnterEvent beforeEnterEvent, LocationChangeEvent locationChangeEvent)
AbstractNavigationStateRenderernotifyNavigationTarget in class AbstractNavigationStateRenderercomponentInstance - 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 AbstractNavigationStateRenderertargetType - component type to showrouter - used router instanceRouterLayout types, not
nullprotected boolean eventActionsSupported()
AbstractNavigationStateRenderereventActionsSupported in class AbstractNavigationStateRenderertrue to support event actions; false
otherwise.Copyright © 2025. All rights reserved.