public static class Navigator.ComponentContainerViewDisplay extends Object implements ViewDisplay
ComponentContainer
with the active View
.
All components of the container are removed before adding the new view to it.
This display only supports views that are Component
s themselves.
Attempting to display a view that is not a component causes an exception
to be thrown.
Constructor and Description |
---|
ComponentContainerViewDisplay(ComponentContainer container)
Create new
ViewDisplay that updates a
ComponentContainer to show the view. |
Modifier and Type | Method and Description |
---|---|
void |
showView(View view)
Remove previously shown view and show the newly selected view in its
place.
|
public ComponentContainerViewDisplay(ComponentContainer container)
ViewDisplay
that updates a
ComponentContainer
to show the view.public void showView(View view)
ViewDisplay
showView
in interface ViewDisplay
view
- new view to showCopyright © 2016 Vaadin Ltd. All rights reserved.