diff options
author | Henri Sara <hesara@vaadin.com> | 2012-11-13 18:08:29 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-11-13 18:18:40 +0200 |
commit | 391884746fda1781c55b13bc200dd75373f69141 (patch) | |
tree | 0d5a8dcd9d13c5c39813d81252506e12d72741af /uitest/src/com/vaadin/tests/components/AbstractTestUI.java | |
parent | 4628bcc3062ef19ed9d561f79fe3bfb3696d6e04 (diff) | |
download | vaadin-framework-391884746fda1781c55b13bc200dd75373f69141.tar.gz vaadin-framework-391884746fda1781c55b13bc200dd75373f69141.zip |
UI based on AbstractBasicComponentContainer (#2924)
Change-Id: I1614a3464b8e7a0e9ecdd8c3a76335cdb85bdf87
Diffstat (limited to 'uitest/src/com/vaadin/tests/components/AbstractTestUI.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/AbstractTestUI.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/uitest/src/com/vaadin/tests/components/AbstractTestUI.java b/uitest/src/com/vaadin/tests/components/AbstractTestUI.java index 480fd2df57..a044b52f18 100644 --- a/uitest/src/com/vaadin/tests/components/AbstractTestUI.java +++ b/uitest/src/com/vaadin/tests/components/AbstractTestUI.java @@ -17,10 +17,14 @@ public abstract class AbstractTestUI extends UI { Label label = new Label(getTestDescription(), ContentMode.HTML); label.setWidth("100%"); + VerticalLayout rootLayout = new VerticalLayout(); + rootLayout.setMargin(true); + setContent(rootLayout); + layout = new VerticalLayout(); - getContent().addComponent(label); - getContent().addComponent(layout); + rootLayout.addComponent(label); + rootLayout.addComponent(layout); ((VerticalLayout) getContent()).setExpandRatio(layout, 1); setup(request); @@ -34,17 +38,14 @@ public abstract class AbstractTestUI extends UI { protected abstract void setup(VaadinRequest request); - @Override public void addComponent(Component c) { getLayout().addComponent(c); } - @Override public void removeComponent(Component c) { getLayout().removeComponent(c); } - @Override public void replaceComponent(Component oldComponent, Component newComponent) { getLayout().replaceComponent(oldComponent, newComponent); } |