com.vaadin.flow.router.

Class NavigationEvent

    • Constructor Detail

      • NavigationEvent

        public NavigationEvent(Router router,
                               Location location,
                               UI ui,
                               NavigationTrigger trigger)

        Creates a new navigation event.

        Parameters:

        router - the router handling the navigation, not null

        location - the new location, not null

        ui - the UI in which the navigation occurs, not null

        trigger - the type of user action that triggered this navigation event, not null

    • Method Detail

      • getLocation

        public Location getLocation()

        Gets the new location.

        Returns:

        the new location, not null

      • getUI

        public UI getUI()

        Gets the UI in which the navigation occurs.

        Returns:

        the UI of the navigation

      • getTrigger

        public NavigationTrigger getTrigger()

        Gets the type of user action that triggered this navigation event.

        Returns:

        the type of user action that triggered this navigation event, not null