public class BeforeEnterEvent extends BeforeEvent
source
Constructor and Description |
---|
BeforeEnterEvent(NavigationEvent event,
Class<?> navigationTarget)
Deprecated.
Use
BeforeEnterEvent(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.
|
forwardTo, forwardTo, forwardTo, forwardTo, forwardTo, forwardTo, getErrorParameter, getForwardTarget, getForwardTargetParameters, getForwardTargetType, getLayouts, getLocation, getNavigationTarget, getRerouteTarget, getRerouteTargetParameters, getRerouteTargetType, getRouteTargetType, getSource, getTrigger, getUI, hasErrorParameter, hasForwardTarget, hasRerouteTarget, rerouteTo, rerouteTo, rerouteTo, rerouteTo, rerouteTo, rerouteTo, rerouteToError, rerouteToError, rerouteToError
toString
@Deprecated public BeforeEnterEvent(NavigationEvent event, Class<?> navigationTarget)
BeforeEnterEvent(NavigationEvent, Class, List)
instead.event
- NavigationEvent that is on-goingnavigationTarget
- Navigation targetpublic BeforeEnterEvent(NavigationEvent event, Class<?> navigationTarget, List<Class<? extends RouterLayout>> layouts)
event
- NavigationEvent that is on-goingnavigationTarget
- Navigation targetlayouts
- Navigation layout chain@Deprecated public BeforeEnterEvent(Router router, NavigationTrigger trigger, Location location, Class<?> navigationTarget, UI ui)
BeforeEnterEvent(Router, NavigationTrigger, Location, Class, UI, List)
instead.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 classui
- the UI related to the navigationpublic BeforeEnterEvent(Router router, NavigationTrigger trigger, Location location, Class<?> navigationTarget, UI ui, List<Class<? extends RouterLayout>> layouts)
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 classui
- the UI related to the navigationlayouts
- the layout chain for the navigation targetCopyright © 2020. All rights reserved.