public class DefaultNavigatorRegistry extends Object implements NavigatorRegistry
NavigatorRegistry instance.| Constructor and Description |
|---|
DefaultNavigatorRegistry() |
| Modifier and Type | Method and Description |
|---|---|
Optional<Navigator> |
getNavigator(com.vaadin.flow.component.UI ui)
Get the
Navigator bound to given UI, if available. |
int |
getNavigatorCount()
Get the number of the registered navigators.
|
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. |
void |
setNavigator(com.vaadin.flow.component.UI ui,
Navigator navigator)
Bind the given
Navigator instance to the given ui. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSessionRegistrypublic int getNavigatorCount()
public void setNavigator(com.vaadin.flow.component.UI ui,
Navigator navigator)
NavigatorRegistryNavigator instance to the given ui.
If another Navigator instance was bound to given UI, it will be replaced by the new navigator instance.
setNavigator in interface NavigatorRegistryui - The UI (not null)navigator - The navigator (not null)public Optional<Navigator> getNavigator(com.vaadin.flow.component.UI ui)
NavigatorRegistryNavigator bound to given UI, if available.getNavigator in interface NavigatorRegistryui - The UI for which to obtain the navigator (not null)Navigator bound to given UIpublic Navigator getOrCreateNavigator(com.vaadin.flow.component.UI ui, Function<com.vaadin.flow.component.UI,Navigator> creator)
NavigatorRegistryNavigator bound to given UI, creating it if not present.getOrCreateNavigator in interface NavigatorRegistryui - The UI for which to obtain the navigator (not null)creator - The function to use to create a new Navigator and bound it to the UI (not null)Navigator bound to given UICopyright © 2020 The Holon Platform. All rights reserved.