com.vaadin.flow.router.

Class BeforeEnterEvent

    • Constructor Detail

      • BeforeEnterEvent

        public BeforeEnterEvent(NavigationEvent event,
                                Class<?> navigationTarget,
                                List<Class<? extends RouterLayout>> layouts)

        Construct event from a NavigationEvent.

        Parameters:

        event - NavigationEvent that is on-going

        navigationTarget - Navigation target

        layouts - Navigation layout chain

      • BeforeEnterEvent

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

        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

        layouts - the layout chain for the navigation target