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)
Deprecated.
UseBeforeEnterEvent(NavigationEvent, Class, List)
instead.BeforeEnterEvent(NavigationEvent event, Class<?> navigationTarget, List<Class<? extends RouterLayout>> layouts)
Construct event from a NavigationEvent.
BeforeEnterEvent(Router router, NavigationTrigger trigger, Location location, Class<?> navigationTarget, UI ui)
Deprecated.
BeforeEnterEvent(Router router, NavigationTrigger trigger, Location location, Class<?> navigationTarget, UI ui, List<Class<? extends RouterLayout>> layouts)
Constructs a new BeforeNavigation Event.
-
Method Summary
-
Methods inherited from class com.vaadin.flow.router.BeforeEvent
forwardTo, forwardTo, forwardTo, forwardTo, forwardTo, forwardTo, getErrorParameter, getForwardTarget, getForwardTargetParameters, getForwardTargetType, getLayouts, 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
@Deprecated public BeforeEnterEvent(NavigationEvent event, Class<?> navigationTarget)
Deprecated. Use
BeforeEnterEvent(NavigationEvent, Class, List)
instead.Construct event from a NavigationEvent.
Parameters:
event
- NavigationEvent that is on-goingnavigationTarget
- Navigation target
-
BeforeEnterEvent
public BeforeEnterEvent(NavigationEvent event, Class<?> navigationTarget, List<Class<? extends RouterLayout>> layouts)
Construct event from a NavigationEvent.
Parameters:
event
- NavigationEvent that is on-goingnavigationTarget
- Navigation targetlayouts
- Navigation layout chain
-
BeforeEnterEvent
@Deprecated public BeforeEnterEvent(Router router, NavigationTrigger trigger, Location location, Class<?> navigationTarget, UI ui)
Deprecated. Use
BeforeEnterEvent(Router, NavigationTrigger, Location, Class, UI, List)
instead.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
-
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, 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 navigationlayouts
- the layout chain for the navigation target
-
-