Package com.vaadin.flow.router
Class AfterNavigationEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.router.AfterNavigationEvent
- All Implemented Interfaces:
Serializable
Event created after navigation completed.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionConstruct event from a NavigationEvent. -
Method Summary
Modifier and TypeMethodDescriptionGet the active chain that we have after navigation.Gets the new location.Get theLocationChangeEvent
.boolean
Check if event is for a refresh of a preserveOnRefresh view.Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
AfterNavigationEvent
Construct event from a NavigationEvent.- Parameters:
event
- NavigationEvent that is on going
-
-
Method Details
-
getLocation
Gets the new location.- Returns:
- the new location, not
null
-
getLocationChangeEvent
Get theLocationChangeEvent
.- Returns:
- the
LocationChangeEvent
, notnull
-
getActiveChain
Get the active chain that we have after navigation.- Returns:
- unmodifiable list of active view chain
-
getSource
- Overrides:
getSource
in classEventObject
-
isRefreshEvent
public boolean isRefreshEvent()Check if event is for a refresh of a preserveOnRefresh view.- Returns:
- true if refresh of a preserve on refresh view
-