com.vaadin.flow.router.

Class BeforeEnterEvent

    • Constructor Detail

      • BeforeEnterEvent

        public BeforeEnterEvent(NavigationEvent event,
                                Class<?> navigationTarget)

        Construct event from a NavigationEvent.

        Parameters:

        event - NavigationEvent that is on going

        navigationTarget - Navigation target

      • BeforeEnterEvent

        public BeforeEnterEvent(Router router,
                                NavigationTrigger trigger,
                                Location location,
                                Class<?> navigationTarget,
                                UI ui)

        Constructs a new BeforeNavigation Event.

        Parameters:

        router - the router that triggered the change, not null

        trigger - the type of user action that triggered this location change, not null

        location - the new location, not null

        navigationTarget - navigation target class

        ui - the UI related to the navigation