We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.router.
Class BeforeEnterEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.router.BeforeEvent
-
- com.vaadin.flow.router.BeforeEnterEvent
-
All Implemented Interfaces:
public class BeforeEnterEvent extends BeforeEvent
Event created before navigation happens.
Since:
1.0
Author:
Vaadin Ltd
See Also:
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor and Description BeforeEnterEvent(NavigationEvent event, Class<?> navigationTarget)
Construct event from a NavigationEvent.
BeforeEnterEvent(Router router, NavigationTrigger trigger, Location location, Class<?> navigationTarget, UI ui)
Constructs a new BeforeNavigation Event.
-
Method Summary
-
Methods inherited from class com.vaadin.flow.router.BeforeEvent
forwardTo, forwardTo, forwardTo, forwardTo, forwardTo, forwardTo, getErrorParameter, getForwardTarget, getForwardTargetType, getLocation, getNavigationTarget, getRerouteTarget, getRouteTargetType, getSource, getTrigger, getUI, hasErrorParameter, hasForwardTarget, hasRerouteTarget, rerouteTo, rerouteTo, rerouteTo, rerouteTo, rerouteTo, rerouteTo, rerouteToError, rerouteToError, rerouteToError
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
BeforeEnterEvent
public BeforeEnterEvent(NavigationEvent event, Class<?> navigationTarget)
Construct event from a NavigationEvent.
Parameters:
event
- NavigationEvent that is on goingnavigationTarget
- 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, notnull
trigger
- the type of user action that triggered this location change, notnull
location
- the new location, notnull
navigationTarget
- navigation target classui
- the UI related to the navigation
-
-