com.vaadin.flow.router.
Class NavigationState
All Implemented Interfaces:
Contains all relevant information related to a valid navigation.
Since:
1.0.
Author:
Vaadin Ltd
See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNavigationState
(Router router) Creates a new instance of the class using the
router
. -
Method Summary
Modifier and TypeMethodDescriptionGets the navigation target of this state.
Get the resolved path details for this navigation state.
Gets the route parameters map.
Gets the route target for this navigation state.
Gets the list of strings that correspond to the raw string url parameters.
void
setNavigationTarget
(Class<? extends Component> navigationTarget) Sets the navigation target of this state.
void
setResolvedPath
(String resolvedPath) Set the path for the resolved navigation target.
-
Constructor Details
-
NavigationState
Creates a new instance of the class using the
router
.Parameters:
router
- the router managing navigation
-
-
Method Details
-
getRouteTarget
Gets the route target for this navigation state.
Returns:
the route target to navigate to.
-
setResolvedPath
Set the path for the resolved navigation target.
Parameters:
resolvedPath
- path for which the target was selected -
getResolvedPath
Get the resolved path details for this navigation state.
Returns:
the resolved path details
-
getRouteParameters
Gets the route parameters map.
Returns:
route parameters.
-
getUrlParameters
Gets the list of strings that correspond to the raw string url parameters.
Returns:
the url parameters of this navigation state