summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/navigator
diff options
context:
space:
mode:
authorJohannes Dahlström <johannesd@vaadin.com>2012-10-16 13:03:08 +0300
committerJohannes Dahlström <johannesd@vaadin.com>2012-10-16 13:25:39 +0300
commitb888fd4ff5ddb973195394d8ddcb4e0ed2ea19f0 (patch)
tree06835ed10cce31cab4b29f6f4edea171d9f74e2c /server/src/com/vaadin/navigator
parent39515829548b0ff2097e4562c0d75e8d02074e15 (diff)
downloadvaadin-framework-b888fd4ff5ddb973195394d8ddcb4e0ed2ea19f0.tar.gz
vaadin-framework-b888fd4ff5ddb973195394d8ddcb4e0ed2ea19f0.zip
Remove Navigator.SimpleViewDisplay (#9936)
Change-Id: I4c7e9ae14d7a50981d8da4909e6832d337fdf059
Diffstat (limited to 'server/src/com/vaadin/navigator')
-rw-r--r--server/src/com/vaadin/navigator/Navigator.java33
1 files changed, 0 insertions, 33 deletions
diff --git a/server/src/com/vaadin/navigator/Navigator.java b/server/src/com/vaadin/navigator/Navigator.java
index e4704bce6a..72d6c65fd2 100644
--- a/server/src/com/vaadin/navigator/Navigator.java
+++ b/server/src/com/vaadin/navigator/Navigator.java
@@ -28,7 +28,6 @@ import com.vaadin.server.Page.FragmentChangedListener;
import com.vaadin.ui.Component;
import com.vaadin.ui.ComponentContainer;
import com.vaadin.ui.CssLayout;
-import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.UI;
/**
@@ -147,38 +146,6 @@ public class Navigator implements Serializable {
}
/**
- * A ViewDisplay that is a component itself and replaces its contents with
- * the view.
- * <p>
- * This display only supports views that are {@link Component}s themselves.
- * Attempting to display a view that is not a component causes an exception
- * to be thrown.
- * <p>
- * By default, the view display has full size.
- */
- public static class SimpleViewDisplay extends CustomComponent implements
- ViewDisplay {
-
- /**
- * Create new {@link ViewDisplay} that is itself a component displaying
- * the view.
- */
- public SimpleViewDisplay() {
- setSizeFull();
- }
-
- @Override
- public void showView(View view) {
- if (view instanceof Component) {
- setCompositionRoot((Component) view);
- } else {
- throw new IllegalArgumentException("View is not a component: "
- + view);
- }
- }
- }
-
- /**
* A ViewDisplay that replaces the contents of a {@link ComponentContainer}
* with the active {@link View}.
* <p>