Package com.vaadin.flow.router
Class AfterNavigationEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.router.AfterNavigationEvent
-
- All Implemented Interfaces:
Serializable
public class AfterNavigationEvent extends EventObject
Event created after navigation completed.- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description AfterNavigationEvent(LocationChangeEvent event)
Construct event from a NavigationEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<HasElement>
getActiveChain()
Get the active chain that we have after navigation.Location
getLocation()
Gets the new location.LocationChangeEvent
getLocationChangeEvent()
Get theLocationChangeEvent
.Router
getSource()
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
AfterNavigationEvent
public AfterNavigationEvent(LocationChangeEvent event)
Construct event from a NavigationEvent.- Parameters:
event
- NavigationEvent that is on going
-
-
Method Detail
-
getLocation
public Location getLocation()
Gets the new location.- Returns:
- the new location, not
null
-
getLocationChangeEvent
public LocationChangeEvent getLocationChangeEvent()
Get theLocationChangeEvent
.- Returns:
- the
LocationChangeEvent
, notnull
-
getActiveChain
public List<HasElement> getActiveChain()
Get the active chain that we have after navigation.- Returns:
- unmodifiable list of active view chain
-
getSource
public Router getSource()
- Overrides:
getSource
in classEventObject
-
-