Package | Description |
---|---|
com.vaadin.flow.component.internal | |
com.vaadin.flow.component.page | |
com.vaadin.flow.router | |
com.vaadin.flow.router.internal |
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
void |
UIInternals.setLastHandledNavigation(Location location)
Set the latest navigation location for active navigation.
|
void |
UIInternals.showRouteTarget(Location viewLocation,
String path,
Component target,
List<RouterLayout> layouts)
Shows a route target in the related UI.
|
Modifier and Type | Method and Description |
---|---|
Location |
History.HistoryStateChangeEvent.getLocation()
Gets the location that was opened.
|
Modifier and Type | Method and Description |
---|---|
void |
History.pushState(elemental.json.JsonValue state,
Location location)
Invokes
history.pushState in the browser with the given
parameters. |
void |
History.replaceState(elemental.json.JsonValue state,
Location location)
Invokes
history.replaceState in the browser with the given
parameters. |
Constructor and Description |
---|
HistoryStateChangeEvent(History history,
elemental.json.JsonValue state,
Location location,
NavigationTrigger trigger)
Creates a new event.
|
Modifier and Type | Method and Description |
---|---|
Location |
NavigationEvent.getLocation()
Gets the new location.
|
Location |
LocationChangeEvent.getLocation()
Gets the new location.
|
Location |
BeforeEvent.getLocation()
Gets the new location.
|
Location |
AfterNavigationEvent.getLocation()
Gets the new location.
|
Location |
Location.toggleTrailingSlash()
Removes or adds slash to the end of the location path.
|
Modifier and Type | Method and Description |
---|---|
Optional<Location> |
Location.getSubLocation()
Creates a new location without the first path segment.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Constructor and Description |
---|
BeforeEnterEvent(Router router,
NavigationTrigger trigger,
Location location,
Class<?> navigationTarget,
UI ui)
Deprecated.
|
BeforeEnterEvent(Router router,
NavigationTrigger trigger,
Location location,
Class<?> navigationTarget,
UI ui,
List<Class<? extends RouterLayout>> layouts)
Constructs a new BeforeNavigation Event.
|
BeforeEvent(Router router,
NavigationTrigger trigger,
Location location,
Class<?> navigationTarget,
UI ui)
Deprecated.
|
BeforeEvent(Router router,
NavigationTrigger trigger,
Location location,
Class<?> navigationTarget,
UI ui,
List<Class<? extends RouterLayout>> layouts)
Constructs a new BeforeNavigation Event.
|
BeforeLeaveEvent(Router router,
NavigationTrigger trigger,
Location location,
Class<?> navigationTarget,
UI ui)
Deprecated.
|
BeforeLeaveEvent(Router router,
NavigationTrigger trigger,
Location location,
Class<?> navigationTarget,
UI ui,
List<Class<? extends RouterLayout>> layouts)
Constructs a new BeforeNavigation Event.
|
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.
|
Modifier and Type | Method and Description |
---|---|
Location |
ResolveRequest.getLocation()
Gets the location that is requested to be resolved.
|
Constructor and 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.
|
Copyright © 2020. All rights reserved.