com.vaadin.navigator
Class Navigator.SingleComponentContainerViewDisplay

java.lang.Object
  extended by com.vaadin.navigator.Navigator.SingleComponentContainerViewDisplay
All Implemented Interfaces:
ViewDisplay, java.io.Serializable
Enclosing class:
Navigator

public static class Navigator.SingleComponentContainerViewDisplay
extends java.lang.Object
implements ViewDisplay

A ViewDisplay that replaces the contents of a SingleComponentContainer with the active View.

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
Navigator.SingleComponentContainerViewDisplay(SingleComponentContainer container)
          Create new ViewDisplay that updates a SingleComponentContainer to show the view.
 
Method Summary
 void showView(View view)
          Remove previously shown view and show the newly selected view in its place.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, toString
 

Constructor Detail

Navigator.SingleComponentContainerViewDisplay

public Navigator.SingleComponentContainerViewDisplay(SingleComponentContainer container)
Create new ViewDisplay that updates a SingleComponentContainer 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 interface ViewDisplay
Parameters:
view - new view to show


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.