Uses of Class
com.vaadin.flow.router.Location
-
Packages that use Location Package Description com.vaadin.flow.component.internal com.vaadin.flow.component.page com.vaadin.flow.router com.vaadin.flow.router.internal com.vaadin.flow.server -
-
Uses of Location in com.vaadin.flow.component.internal
Methods in com.vaadin.flow.component.internal that return Location Modifier and Type Method Description Location
UIInternals. getActiveViewLocation()
Gets the location of the currently shown view.Location
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 Location Modifier and Type Method Description void
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 Location Modifier and Type Method Description Location
History.HistoryStateChangeEvent. getLocation()
Gets the location that was opened.Methods in com.vaadin.flow.component.page with parameters of type Location Modifier and Type Method Description void
History. pushState(elemental.json.JsonValue state, Location location)
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.Constructors in com.vaadin.flow.component.page with parameters of type Location Constructor Description HistoryStateChangeEvent(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 Location Modifier and Type Method Description Location
AfterNavigationEvent. getLocation()
Gets the new location.Location
BeforeEvent. getLocation()
Gets the new location.Location
LocationChangeEvent. getLocation()
Gets the new location.Location
NavigationEvent. getLocation()
Gets the new location.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 Location Modifier and Type Method Description Optional<Location>
Location. getSubLocation()
Creates a new location without the first path segment.Methods in com.vaadin.flow.router with parameters of type Location Modifier and Type Method Description void
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.Optional<NavigationState>
Router. resolveNavigationTarget(Location location)
Resolve the navigation target for givenLocation
using the router routeResolver.Constructors in com.vaadin.flow.router with parameters of type Location Constructor Description BeforeEnterEvent(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. -
Uses of Location in com.vaadin.flow.router.internal
Methods in com.vaadin.flow.router.internal that return Location Modifier and Type Method Description Location
ResolveRequest. getLocation()
Gets the location that is requested to be resolved.Constructors in com.vaadin.flow.router.internal with parameters of type Location Constructor Description InternalRedirectHandler(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 Modifier and Type Method Description Location
BootstrapHandler.BootstrapContext. getRoute()
Gets the location of the route that should be activated for this bootstrap request.
-