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
      • NavigationEvent

        public NavigationEvent​(Router router,
                               Location location,
                               UI ui,
                               NavigationTrigger trigger,
                               elemental.json.JsonValue state,
                               boolean forwardTo)
        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
        state - includes navigation state info including for example the scroll position and the complete href of the RouterLink
        forwardTo - indicates if this event is created as a result of BeforeEvent.forwardTo(com.vaadin.flow.router.NavigationHandler, com.vaadin.flow.router.NavigationState) or not