Package com.vaadin.navigator
Class Navigator.ComponentContainerViewDisplay
- java.lang.Object
-
- com.vaadin.navigator.Navigator.ComponentContainerViewDisplay
-
- All Implemented Interfaces:
ViewDisplay,Serializable
- Enclosing class:
- Navigator
public static class Navigator.ComponentContainerViewDisplay extends Object implements ViewDisplay
A ViewDisplay that replaces the contents of aComponentContainerwith the activeView.All components of the container are removed before adding the new view to it.
This display only supports views that are
Components themselves. Attempting to display a view that is not a component causes an exception to be thrown.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ComponentContainerViewDisplay(ComponentContainer container)Create newViewDisplaythat updates aComponentContainerto show the view.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidshowView(View view)Remove previously shown view and show the newly selected view in its place.
-
-
-
Constructor Detail
-
ComponentContainerViewDisplay
public ComponentContainerViewDisplay(ComponentContainer container)
Create newViewDisplaythat updates aComponentContainerto show the view.
-
-
Method Detail
-
showView
public void showView(View view)
Description copied from interface:ViewDisplayRemove previously shown view and show the newly selected view in its place. The parameters for the view have been set before this method is called.- Specified by:
showViewin interfaceViewDisplay- Parameters:
view- new view to show
-
-