]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed deprecated API used in TestBase
authorArtur Signell <artur.signell@itmill.com>
Fri, 22 May 2009 16:46:25 +0000 (16:46 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 22 May 2009 16:46:25 +0000 (16:46 +0000)
svn changeset:7971/svn branch:6.0

src/com/vaadin/tests/components/TestBase.java

index 45cc69516d03fd3435b03224b3706814a9839a2b..b56c9dd46f49ac30698f95400db0ffaeb3472071 100644 (file)
@@ -4,7 +4,6 @@ import com.vaadin.Application;
 import com.vaadin.ui.Component;\r
 import com.vaadin.ui.Label;\r
 import com.vaadin.ui.Layout;\r
-import com.vaadin.ui.SplitPanel;\r
 import com.vaadin.ui.VerticalLayout;\r
 import com.vaadin.ui.Window;\r
 \r
@@ -14,21 +13,20 @@ public abstract class TestBase extends Application {
     public final void init() {\r
         window = new Window(getClass().getName());\r
         setMainWindow(window);\r
-        window.getLayout().setSizeFull();\r
+        window.getContent().setSizeFull();\r
 \r
         Label label = new Label(getDescription(), Label.CONTENT_XHTML);\r
         label.setWidth("100%");\r
-        window.getLayout().addComponent(label);\r
+        window.getContent().addComponent(label);\r
 \r
         layout = new VerticalLayout();\r
-        window.getLayout().addComponent(layout);\r
-        ((VerticalLayout) window.getLayout()).setExpandRatio(layout, 1);\r
+        window.getContent().addComponent(layout);\r
+        ((VerticalLayout) window.getContent()).setExpandRatio(layout, 1);\r
 \r
         setup();\r
     }\r
 \r
     private Window window;\r
-    private SplitPanel splitPanel;\r
     private Layout layout;\r
 \r
     public TestBase() {\r