public interface SubViewContainer
extends com.vaadin.navigator.View
View
as container for other sub-views.
Sub views bound to a SubViewContainer must declare parent container view name using SubViewOf
.
When a sub-view bound to this parent container is requested using ViewNavigator
, the
display(View, String, Map)
method is called and the container is delegated to display the view contents.
Modifier and Type | Method and Description |
---|---|
boolean |
display(com.vaadin.navigator.View view,
String viewName,
Map<String,String> parameters)
Display request for the given
view : returns true if view is accepted and than diplayed
by this sub-view container. |
com.vaadin.navigator.View |
getCurrentView()
Get current active
View in this container |
boolean display(com.vaadin.navigator.View view, String viewName, Map<String,String> parameters) throws ViewNavigator.ViewNavigationException
view
: returns true
if view is accepted and than diplayed
by this sub-view container. If false
is returned, View lifecycle hooks and methods will be ignored
(for example OnShow
methods).view
- View instance to displayviewName
- View nameparameters
- View parameters is serialized form, or an empty map if nonetrue
if this container accepted to display the view, false
otherwise.ViewNavigator.ViewNavigationException
- Error navigating to viewcom.vaadin.navigator.View getCurrentView()
View
in this containerCopyright © 2018 The Holon Platform. All rights reserved.