public interface NavigatorRegistry extends Serializable
Navigator instances registry.| Modifier and Type | Method and Description |
|---|---|
Optional<Navigator> |
getNavigator(com.vaadin.flow.component.UI ui)
Get the
Navigator bound to given UI, if available. |
Navigator |
getOrCreateNavigator(com.vaadin.flow.component.UI ui,
Function<com.vaadin.flow.component.UI,Navigator> creator)
Get the
Navigator bound to given UI, creating it if not present. |
static Optional<NavigatorRegistry> |
getSessionRegistry()
Get the
NavigatorRegistry associated with current session, if available. |
void |
setNavigator(com.vaadin.flow.component.UI ui,
Navigator navigator)
Bind the given
Navigator instance to the given ui. |
void setNavigator(com.vaadin.flow.component.UI ui,
Navigator navigator)
Navigator instance to the given ui.
If another Navigator instance was bound to given UI, it will be replaced by the new navigator instance.
ui - The UI (not null)navigator - The navigator (not null)Optional<Navigator> getNavigator(com.vaadin.flow.component.UI ui)
Navigator bound to given UI, if available.ui - The UI for which to obtain the navigator (not null)Navigator bound to given UINavigator getOrCreateNavigator(com.vaadin.flow.component.UI ui, Function<com.vaadin.flow.component.UI,Navigator> creator)
Navigator bound to given UI, creating it if not present.static Optional<NavigatorRegistry> getSessionRegistry()
NavigatorRegistry associated with current session, if available.Copyright © 2020 The Holon Platform. All rights reserved.