public abstract class AbstractNavigationStateRenderer extends Object implements NavigationHandler
For internal use only. May be renamed or removed in a future release.
| Constructor and Description |
|---|
AbstractNavigationStateRenderer(NavigationState navigationState)
Creates a new renderer for the given navigation state.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
eventActionsSupported()
Checks whether this renderer should reroute or postpone navigation based
on results from event listeners.
|
NavigationState |
getNavigationState()
Gets 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.
|
protected abstract void |
notifyNavigationTarget(Component componentInstance,
NavigationEvent navigationEvent,
BeforeEnterEvent beforeEnterEvent,
LocationChangeEvent locationChangeEvent)
Notify the navigation target about the status of the navigation.
|
static void |
purgeInactiveUIPreservedChainCache(UI inactiveUI)
Removes preserved component cache for an inactive UI.
|
public AbstractNavigationStateRenderer(NavigationState navigationState)
navigationState - the target navigation statepublic NavigationState getNavigationState()
public int handle(NavigationEvent event)
NavigationHandlerhandle in interface NavigationHandlerevent - the navigation event to handleprotected abstract void notifyNavigationTarget(Component componentInstance, NavigationEvent navigationEvent, BeforeEnterEvent beforeEnterEvent, LocationChangeEvent locationChangeEvent)
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 reroutedprotected abstract List<Class<? extends RouterLayout>> getRouterLayoutTypes(Class<? extends Component> routeTargetType, Router router)
routeTargetType - component type that will be shownrouter - used router instanceRouterLayout types, not
nullprotected abstract boolean eventActionsSupported()
true to support event actions; false
otherwise.public static void purgeInactiveUIPreservedChainCache(UI inactiveUI)
inactiveUI - the inactive UIIllegalStateException - if the UI is not in closing stateCopyright © 2025. All rights reserved.