public class NavigationStateRenderer extends AbstractNavigationStateRenderer
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 boolean |
eventActionsSupported()
Checks whether this renderer should reroute or postpone navigation based
on results from event listeners.
|
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)
Notified the navigation target about the status of the navigation.
|
getNavigationState, handle
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 reroutedprotected boolean eventActionsSupported()
AbstractNavigationStateRenderer
eventActionsSupported
in class AbstractNavigationStateRenderer
true
to support event actions; false
otherwise.Copyright © 2019. All rights reserved.