Package io.jmix.flowui.view.navigation
Class ViewNavigationSupport
java.lang.Object
io.jmix.flowui.view.navigation.ViewNavigationSupport
Utility class that provides support for navigating between views.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends com.vaadin.flow.component.Component>
Optional<T>findCurrentNavigationTarget(com.vaadin.flow.component.UI ui, Class<? extends T> navigationTarget) Finds the current navigation target of the specified type in the provided UI's active router target chain.<T extends com.vaadin.flow.component.Component>
Optional<T>findCurrentNavigationTarget(Class<? extends T> navigationTarget) Finds the current navigation target of the specified type in the current UI's active router target chain.protected com.vaadin.flow.router.RouteConfiguration<T,C extends com.vaadin.flow.component.Component & com.vaadin.flow.router.HasUrlParameter<T>>
voidNavigates to the specified navigation target using the given parameter.<T,C extends com.vaadin.flow.component.Component & com.vaadin.flow.router.HasUrlParameter<T>>
voidnavigate(Class<? extends C> navigationTarget, T parameter, com.vaadin.flow.router.QueryParameters queryParameters) Navigates to the specified navigation target using the provided parameter and query parameters.<T extends com.vaadin.flow.component.Component>
Optional<T>Navigates to the specified navigation target with empty route and query parameters.<T extends com.vaadin.flow.component.Component>
Optional<T>navigate(Class<? extends T> navigationTarget, com.vaadin.flow.router.RouteParameters routeParameters) Navigates to the specified navigation target using the provided route parameters.<T extends com.vaadin.flow.component.Component>
Optional<T>navigate(Class<? extends T> navigationTarget, com.vaadin.flow.router.RouteParameters routeParameters, com.vaadin.flow.router.QueryParameters queryParameters) Navigates to the specified navigation target using the provided route and query parameters.voidNavigates to the specified view identified by its ID with empty route and query parameters.voidNavigates to the specified view identified by its ID using the provided route parameters and empty query parameters.voidnavigate(String viewId, com.vaadin.flow.router.RouteParameters routeParameters, com.vaadin.flow.router.QueryParameters queryParameters) Navigates to the specified view identified by its ID using the provided route and query parameters.
-
Field Details
-
viewRegistry
-
-
Constructor Details
-
ViewNavigationSupport
-
-
Method Details
-
getRouteConfiguration
protected com.vaadin.flow.router.RouteConfiguration getRouteConfiguration()