public class NavigationState extends Object implements Serializable
Constructor and Description |
---|
NavigationState(Router router)
Creates a new instance of the class using the
router . |
Modifier and Type | Method and Description |
---|---|
Class<? extends Component> |
getNavigationTarget()
Gets the navigation target of this state.
|
String |
getResolvedPath()
Get the resolved path details for this navigation state.
|
RouteParameters |
getRouteParameters()
Gets the route parameters map.
|
RouteTarget |
getRouteTarget()
Gets the route target for this navigation state.
|
Optional<List<String>> |
getUrlParameters()
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.
|
void |
setUrlParameters(List<String> parameters)
Deprecated.
use
setRouteParameters(RouteParameters) instead. |
public NavigationState(Router router)
router
.router
- the router managing navigationpublic Class<? extends Component> getNavigationTarget()
public void setNavigationTarget(Class<? extends Component> navigationTarget)
navigationTarget
- navigation targetpublic RouteTarget getRouteTarget()
public void setResolvedPath(String resolvedPath)
resolvedPath
- path for which the target was selectedpublic String getResolvedPath()
public RouteParameters getRouteParameters()
public Optional<List<String>> getUrlParameters()
@Deprecated public void setUrlParameters(List<String> parameters)
setRouteParameters(RouteParameters)
instead.parameters
- the url parameters to setCopyright © 2025. All rights reserved.