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:

  • Constructor Details

    • AfterNavigationEvent

      public AfterNavigationEvent(LocationChangeEvent event)

      Construct event from a NavigationEvent.

      Parameters:

      event - NavigationEvent that is on going

    • AfterNavigationEvent

      public AfterNavigationEvent(LocationChangeEvent event, RouteParameters routeParameters)

      Construct event from a NavigationEvent.

      Parameters:

      event - NavigationEvent that is on going

      routeParameters - route parameters, not null

  • Method Details

    • getLocation

      public Location getLocation()

      Gets the new location.

      Returns:

      the new location, not null

    • getLocationChangeEvent

      public LocationChangeEvent getLocationChangeEvent()

      Get the LocationChangeEvent.

      Returns:

      the LocationChangeEvent, not null

    • 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 class EventObject

    • 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

    • getRouteParameters

      public RouteParameters getRouteParameters()

      Gets the route parameters associated with this event.

      Returns:

      route parameters retrieved from the navigation url.