public class NavigationStateBuilder extends Object
NavigationState instances.| Constructor and Description |
|---|
NavigationStateBuilder(Router router)
Constructs a new NavigationStateBuilder.
|
| Modifier and Type | Method and Description |
|---|---|
NavigationState |
build()
Returns the NavigationState instance that has been built so far and
resets the internal state of this builder.
|
NavigationStateBuilder |
withPath(String path)
Assign the path that was used for determining the navigation target.
|
NavigationStateBuilder |
withTarget(Class<? extends Component> navigationTarget)
Assigns the given navigation target to the navigation state being built.
|
NavigationStateBuilder |
withTarget(Class<? extends Component> navigationTarget,
List<String> parameters)
Deprecated.
use
withTarget(Class, RouteParameters) instead. |
NavigationStateBuilder |
withTarget(Class<? extends Component> navigationTarget,
RouteParameters parameters)
Assigns the given navigation target with the given url parameter to the
navigation state being built.
|
NavigationStateBuilder |
withTarget(RouteTarget routeTarget,
RouteParameters parameters)
Assigns the given route target with the given route parameters to the
navigation state being built.
|
public NavigationStateBuilder(Router router)
router - the router managing navigation@Deprecated public NavigationStateBuilder withTarget(Class<? extends Component> navigationTarget, List<String> parameters)
withTarget(Class, RouteParameters) instead.navigationTarget - the navigation targetparameters - the route parameters of the navigation targetpublic NavigationStateBuilder withTarget(Class<? extends Component> navigationTarget, RouteParameters parameters)
navigationTarget - the navigation targetparameters - the route parameters of the navigation targetpublic NavigationStateBuilder withTarget(RouteTarget routeTarget, RouteParameters parameters)
routeTarget - the route targetparameters - the route parameters of the navigation targetpublic NavigationStateBuilder withTarget(Class<? extends Component> navigationTarget)
navigationTarget - the navigation targetpublic NavigationStateBuilder withPath(String path)
path - navigation pathpublic NavigationState build()
Copyright © 2025. All rights reserved.