summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2009-05-22 16:46:25 +0000
committerArtur Signell <artur.signell@itmill.com>2009-05-22 16:46:25 +0000
commita4b7e0b6627e58082942eed12fd542039e446bbb (patch)
tree345296c7dd2ca2f28c6f0a414ce1ae17431a7e63 /src
parent81d4810664ce1ca6631665d0c12debb50c3e5cf8 (diff)
downloadvaadin-framework-a4b7e0b6627e58082942eed12fd542039e446bbb.tar.gz
vaadin-framework-a4b7e0b6627e58082942eed12fd542039e446bbb.zip
Fixed deprecated API used in TestBase
svn changeset:7971/svn branch:6.0
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/tests/components/TestBase.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/com/vaadin/tests/components/TestBase.java b/src/com/vaadin/tests/components/TestBase.java
index 45cc69516d..b56c9dd46f 100644
--- a/src/com/vaadin/tests/components/TestBase.java
+++ b/src/com/vaadin/tests/components/TestBase.java
@@ -4,7 +4,6 @@ import com.vaadin.Application;
import com.vaadin.ui.Component;
import com.vaadin.ui.Label;
import com.vaadin.ui.Layout;
-import com.vaadin.ui.SplitPanel;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
@@ -14,21 +13,20 @@ public abstract class TestBase extends Application {
public final void init() {
window = new Window(getClass().getName());
setMainWindow(window);
- window.getLayout().setSizeFull();
+ window.getContent().setSizeFull();
Label label = new Label(getDescription(), Label.CONTENT_XHTML);
label.setWidth("100%");
- window.getLayout().addComponent(label);
+ window.getContent().addComponent(label);
layout = new VerticalLayout();
- window.getLayout().addComponent(layout);
- ((VerticalLayout) window.getLayout()).setExpandRatio(layout, 1);
+ window.getContent().addComponent(layout);
+ ((VerticalLayout) window.getContent()).setExpandRatio(layout, 1);
setup();
}
private Window window;
- private SplitPanel splitPanel;
private Layout layout;
public TestBase() {