You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.router.

Class BeforeEnterEvent

    • Constructor Detail

      • BeforeEnterEvent

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

        Constructs event from a NavigationEvent.

        Parameters:

        event - NavigationEvent that is on-going, not null

        navigationTarget - navigation target, not null

        layouts - navigation layout chain, not null

      • BeforeEnterEvent

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

        Constructs event from a NavigationEvent.

        Parameters:

        event - NavigationEvent that is on-going, not null

        navigationTarget - navigation target, not null

        parameters - route parameters, not null

        layouts - navigation layout chain, not null

      • BeforeEnterEvent

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

        Constructs a new BeforeEnterEvent.

        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, not null

        ui - the UI related to the navigation, not null

        layouts - the layout chain for the navigation target, not null

      • BeforeEnterEvent

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

        Constructs a new BeforeEnterEvent.

        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, not null

        parameters - route parameters, not null

        ui - the UI related to the navigation, not null

        layouts - the layout chain for the navigation target, not null