public class NavigationStateRenderer extends AbstractNavigationStateRenderer
For internal use only. May be renamed or removed in a future release.
NavigationState
,
Route
,
Serialized FormConstructor and Description |
---|
NavigationStateRenderer(NavigationState navigationState)
Constructs a new NavigationStateRenderer that handles the given
navigation state.
|
Modifier and Type | Method and Description |
---|---|
protected 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.
|
protected void |
notifyNavigationTarget(Component componentInstance,
NavigationEvent navigationEvent,
BeforeEnterEvent beforeEnterEvent,
LocationChangeEvent locationChangeEvent)
Notify the navigation target about the status of the navigation.
|
getNavigationState, handle, handleTriggeredBeforeEvent, pushHistoryState, shouldPushHistoryState
public NavigationStateRenderer(NavigationState navigationState)
navigationState
- the navigation state handled by this instanceprotected List<Class<? extends RouterLayout>> getRouterLayoutTypes(Class<? extends Component> targetType, Router router)
AbstractNavigationStateRenderer
getRouterLayoutTypes
in class AbstractNavigationStateRenderer
targetType
- component type that will be shownrouter
- used router instanceRouterLayout
types, not
null
protected 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 reroutedCopyright © 2022. All rights reserved.