Uses of Class
com.vaadin.flow.router.Location
Packages that use Location
Package
Description
-
Uses of Location in com.vaadin.flow.component
Methods in com.vaadin.flow.component that return LocationModifier and TypeMethodDescriptionGets the location of the currently shown view. -
Uses of Location in com.vaadin.flow.component.internal
Methods in com.vaadin.flow.component.internal that return LocationModifier and TypeMethodDescriptionUIInternals.getActiveViewLocation()
Gets the location of the currently shown view.UIInternals.getLastHandledLocation()
Get the latest handled location or empty optional if no active navigation.Methods in com.vaadin.flow.component.internal with parameters of type LocationModifier and TypeMethodDescriptionvoid
UIInternals.setLastHandledNavigation
(Location location) Set the latest navigation location for active navigation.void
UIInternals.showRouteTarget
(Location viewLocation, Component target, List<RouterLayout> layouts) Shows a route target in the related UI. -
Uses of Location in com.vaadin.flow.component.page
Methods in com.vaadin.flow.component.page that return LocationModifier and TypeMethodDescriptionHistory.HistoryStateChangeEvent.getLocation()
Gets the location that was opened.Methods in com.vaadin.flow.component.page with parameters of type LocationModifier and TypeMethodDescriptionvoid
Invokeshistory.pushState
in the browser with the given parameters.void
Invokeshistory.pushState
in the browser with the given parameters.void
History.replaceState
(elemental.json.JsonValue state, Location location) Invokeshistory.replaceState
in the browser with the given parameters.void
History.replaceState
(elemental.json.JsonValue state, Location location, boolean callback) Invokeshistory.replaceState
in the browser with the given parameters.Constructors in com.vaadin.flow.component.page with parameters of type LocationModifierConstructorDescriptionHistoryStateChangeEvent
(History history, elemental.json.JsonValue state, Location location, NavigationTrigger trigger) Creates a new event. -
Uses of Location in com.vaadin.flow.router
Methods in com.vaadin.flow.router that return LocationModifier and TypeMethodDescriptionAfterNavigationEvent.getLocation()
Gets the new location.BeforeEvent.getLocation()
Gets the new location.LocationChangeEvent.getLocation()
Gets the new location.NavigationEvent.getLocation()
Gets the new location.Location.toggleTrailingSlash()
Removes or adds slash to the end of the location path.Methods in com.vaadin.flow.router that return types with arguments of type LocationModifier and TypeMethodDescriptionLocation.getSubLocation()
Creates a new location without the first path segment.Methods in com.vaadin.flow.router with parameters of type LocationModifier and TypeMethodDescriptionvoid
Router.initializeUI
(UI ui, Location location) Enables navigation for a new UI instance.int
Router.navigate
(UI ui, Location location, NavigationTrigger trigger) Navigates the given UI to the given location.int
Router.navigate
(UI ui, Location location, NavigationTrigger trigger, elemental.json.JsonValue state) Navigates the given UI to the given location.int
Router.navigate
(UI ui, Location location, NavigationTrigger trigger, elemental.json.JsonValue state, boolean forceInstantiation, boolean recreateLayoutChain) Navigates the given UI to the given location.Router.resolveNavigationTarget
(Location location) Resolve the navigation target for givenLocation
using the router routeResolver.Constructors in com.vaadin.flow.router with parameters of type LocationModifierConstructorDescriptionBeforeEnterEvent
(Router router, NavigationTrigger trigger, Location location, Class<?> navigationTarget, UI ui, List<Class<? extends RouterLayout>> layouts) Constructs a new BeforeEnterEvent.BeforeEnterEvent
(Router router, NavigationTrigger trigger, Location location, Class<?> navigationTarget, RouteParameters parameters, UI ui, List<Class<? extends RouterLayout>> layouts) Constructs a new BeforeEnterEvent.BeforeEvent
(Router router, NavigationTrigger trigger, Location location, Class<?> navigationTarget, UI ui, List<Class<? extends RouterLayout>> layouts) Constructs a new BeforeEvent.BeforeEvent
(Router router, NavigationTrigger trigger, Location location, Class<?> navigationTarget, RouteParameters parameters, UI ui, List<Class<? extends RouterLayout>> layouts) Constructs a new BeforeEvent.BeforeLeaveEvent
(Router router, NavigationTrigger trigger, Location location, Class<?> navigationTarget, UI ui, List<Class<? extends RouterLayout>> layouts) Constructs a new BeforeLeaveEvent.BeforeLeaveEvent
(Router router, NavigationTrigger trigger, Location location, Class<?> navigationTarget, RouteParameters parameters, UI ui, List<Class<? extends RouterLayout>> layouts) Constructs a new BeforeLeaveEvent.ErrorNavigationEvent
(Router router, Location location, UI ui, NavigationTrigger trigger, ErrorParameter<?> errorParameter) Creates a new navigation event.ErrorNavigationEvent
(Router router, Location location, UI ui, NavigationTrigger trigger, ErrorParameter<?> errorParameter, elemental.json.JsonValue state) Creates a new navigation event.LocationChangeEvent
(Router router, UI ui, NavigationTrigger trigger, Location location, List<HasElement> routeTargetChain) Creates a new location change event.NavigationEvent
(Router router, Location location, UI ui, NavigationTrigger trigger) Creates a new navigation event.NavigationEvent
(Router router, Location location, UI ui, NavigationTrigger trigger, elemental.json.JsonValue state, boolean forwardTo) Creates a new navigation event.NavigationEvent
(Router router, Location location, UI ui, NavigationTrigger trigger, elemental.json.JsonValue state, boolean forwardTo, boolean forceInstantiation, boolean recreateLayoutChain) Creates a new navigation event. -
Uses of Location in com.vaadin.flow.router.internal
Methods in com.vaadin.flow.router.internal that return LocationModifier and TypeMethodDescriptionResolveRequest.getLocation()
Gets the location that is requested to be resolved.Constructors in com.vaadin.flow.router.internal with parameters of type LocationModifierConstructorDescriptionInternalRedirectHandler
(Location target) Creates a new redirect handler for the provided location.ResolveRequest
(Router router, Location location) Constructs a new ResolveRequest with the given Router and Location. -
Uses of Location in com.vaadin.flow.server
Methods in com.vaadin.flow.server that return Location -
Uses of Location in com.vaadin.flow.server.auth
Methods in com.vaadin.flow.server.auth that return LocationConstructors in com.vaadin.flow.server.auth with parameters of type LocationModifierConstructorDescriptionNavigationContext
(Router router, Class<?> navigationTarget, Location location, RouteParameters parameters, Principal principal, Predicate<String> roleChecker, boolean errorHandling) Creates a new navigation context instance.