Package com.vaadin.navigator
Class Navigator.SingleComponentContainerViewDisplay
- java.lang.Object
-
- com.vaadin.navigator.Navigator.SingleComponentContainerViewDisplay
-
- All Implemented Interfaces:
ViewDisplay
,Serializable
- Enclosing class:
- Navigator
public static class Navigator.SingleComponentContainerViewDisplay extends Object implements ViewDisplay
A ViewDisplay that replaces the contents of aSingleComponentContainer
with the activeView
.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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SingleComponentContainerViewDisplay(SingleComponentContainer container)
Create newViewDisplay
that updates aSingleComponentContainer
to show the view.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
showView(View view)
Remove previously shown view and show the newly selected view in its place.
-
-
-
Constructor Detail
-
SingleComponentContainerViewDisplay
public SingleComponentContainerViewDisplay(SingleComponentContainer container)
Create newViewDisplay
that updates aSingleComponentContainer
to show the view.
-
-
Method Detail
-
showView
public void showView(View view)
Description copied from interface:ViewDisplay
Remove 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:
showView
in interfaceViewDisplay
- Parameters:
view
- new view to show
-
-