public abstract class AbstractNavigationStateRenderer extends Object implements NavigationHandler
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)
Notified the navigation target about the status of the navigation.
|
public AbstractNavigationStateRenderer(NavigationState navigationState)
navigationState
- the target navigation statepublic NavigationState getNavigationState()
public int handle(NavigationEvent event)
NavigationHandler
handle
in interface NavigationHandler
event
- 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
null
protected abstract boolean eventActionsSupported()
true
to support event actions; false
otherwise.Copyright © 2019. All rights reserved.