public static class DefaultViewNavigator.ViewNavigatorBuilder extends AbstractNavigatorBuilder<ViewNavigator.Builder,DefaultViewNavigator> implements ViewNavigator.Builder
Builder implementation for fluent-style ViewNavigator creation| Constructor and Description |
|---|
ViewNavigatorBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ViewNavigator |
buildAndBind(com.vaadin.ui.UI ui)
Build ViewNavigator instance and bind it to given
ui |
ViewNavigator.Builder |
navigationStateManager(com.vaadin.navigator.NavigationStateManager navigationStateManager)
Set the NavigationStateManager keeping track of the active view and enabling bookmarking and direct
navigation.
|
ViewNavigator.Builder |
viewDisplay(com.vaadin.ui.ComponentContainer container)
Set the
ComponentContainer which has to used to display View instances, replacing the
contents of the ComponentContainer with the active view. |
ViewNavigator.Builder |
viewDisplay(com.vaadin.ui.SingleComponentContainer container)
Set the
SingleComponentContainer which has to used to display View instances using
SingleComponentContainer.setContent(com.vaadin.ui.Component). |
ViewNavigator.Builder |
viewDisplay(com.vaadin.navigator.ViewDisplay viewDisplay)
ViewDisplay used to display
View instances |
ViewNavigator.Builder |
withView(String viewName,
Class<? extends com.vaadin.navigator.View> viewClass)
Add a default
ViewProvider (if not already present) and register the given View class bound
to given view name. |
addProvider, authenticationEnabled, defaultViewName, defaultViewWindowConfigurator, errorView, errorViewProvider, maxNavigationHistorySize, navigateToDefaultViewWhenViewNotAvailable, withViewChangeListenerequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddProvider, authenticationEnabled, defaultViewName, defaultViewWindowConfigurator, errorView, errorViewProvider, maxNavigationHistorySize, navigateToDefaultViewWhenViewNotAvailable, withViewChangeListenerpublic ViewNavigator.Builder withView(String viewName, Class<? extends com.vaadin.navigator.View> viewClass)
ViewNavigator.BuilderViewProvider (if not already present) and register the given View class bound
to given view name. This ViewProvider supports StatefulView view instances.
View instances will be created according to view scope: for stateful views, an instance is created at first request (for each UI) and the same instance is returned to subsequent view requests. On the contrary, for standard views, a new instance is created and returned to navigator for every view request.
withView in interface ViewNavigator.BuilderviewName - View name (not null)viewClass - View class (not null)public ViewNavigator.Builder navigationStateManager(com.vaadin.navigator.NavigationStateManager navigationStateManager)
ViewNavigator.BuildernavigationStateManager in interface ViewNavigator.BuildernavigationStateManager - NavigationStateManager or null to use the default implementationpublic ViewNavigator.Builder viewDisplay(com.vaadin.navigator.ViewDisplay viewDisplay)
ViewNavigator.BuilderView instancesviewDisplay in interface ViewNavigator.BuilderviewDisplay - The ViewDisplaypublic ViewNavigator.Builder viewDisplay(com.vaadin.ui.SingleComponentContainer container)
ViewNavigator.BuilderSingleComponentContainer which has to used to display View instances using
SingleComponentContainer.setContent(com.vaadin.ui.Component).viewDisplay in interface ViewNavigator.Buildercontainer - The SingleComponentContainer which has to used to display View instancespublic ViewNavigator.Builder viewDisplay(com.vaadin.ui.ComponentContainer container)
ViewNavigator.BuilderComponentContainer which has to used to display View instances, replacing the
contents of the ComponentContainer with the active view.viewDisplay in interface ViewNavigator.Buildercontainer - The ComponentContainer which has to used to display View instancespublic ViewNavigator buildAndBind(com.vaadin.ui.UI ui)
ViewNavigator.BuilderuibuildAndBind in interface ViewNavigator.Builderui - UI to which to bind the navigatorCopyright © 2019 The Holon Platform. All rights reserved.