public enum NavigationTrigger extends Enum<NavigationTrigger>
LocationChangeEvent.getTrigger(),
History.HistoryStateChangeEvent.getTrigger()| Enum Constant and Description |
|---|
HISTORY
Navigation was triggered by the user going forward or back in the
browser's history.
|
PAGE_LOAD
Navigation was triggered by the user opening the application or reloading
in the browser.
|
PROGRAMMATIC
Navigation was triggered programmatically via forward/reroute action.
|
REFRESH
Navigation is for a reload event on a preserveOnRefresh route.
|
ROUTER_LINK
Navigation was triggered by the user following a router link.
|
UI_NAVIGATE
Navigation was triggered via
UI.navigate(String, QueryParameters). |
| Modifier and Type | Method and Description |
|---|---|
static NavigationTrigger |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NavigationTrigger[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NavigationTrigger PAGE_LOAD
public static final NavigationTrigger ROUTER_LINK
RouterLinkpublic static final NavigationTrigger HISTORY
public static final NavigationTrigger PROGRAMMATIC
public static final NavigationTrigger UI_NAVIGATE
UI.navigate(String, QueryParameters). It's for internal use only.public static final NavigationTrigger REFRESH
public static NavigationTrigger[] values()
for (NavigationTrigger c : NavigationTrigger.values()) System.out.println(c);
public static NavigationTrigger valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2025. All rights reserved.