diff options
author | Henri Sara <hesara@vaadin.com> | 2012-11-14 13:49:47 +0200 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2012-11-14 13:49:47 +0200 |
commit | aca92f4937cc54f122b20c4bfb6288ee007c9e47 (patch) | |
tree | 7d7ee8e0cfa760e5f6b1da15ea8fe088f542540f /uitest/src/com/vaadin/tests/fieldgroup | |
parent | 1b7a4a1ee9e03f445cbfcbb520a5ac970ccf47de (diff) | |
download | vaadin-framework-aca92f4937cc54f122b20c4bfb6288ee007c9e47.tar.gz vaadin-framework-aca92f4937cc54f122b20c4bfb6288ee007c9e47.zip |
Panel and Window based on AbstractSingleComponentContainer (#2924)
Change-Id: I9eb1f40a02dcad0f756ad2518d86ef1c52aa69c2
Diffstat (limited to 'uitest/src/com/vaadin/tests/fieldgroup')
-rw-r--r-- | uitest/src/com/vaadin/tests/fieldgroup/BasicPersonForm.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/uitest/src/com/vaadin/tests/fieldgroup/BasicPersonForm.java b/uitest/src/com/vaadin/tests/fieldgroup/BasicPersonForm.java index b399857b3b..e418116cd5 100644 --- a/uitest/src/com/vaadin/tests/fieldgroup/BasicPersonForm.java +++ b/uitest/src/com/vaadin/tests/fieldgroup/BasicPersonForm.java @@ -18,11 +18,13 @@ import com.vaadin.tests.data.bean.Sex; import com.vaadin.tests.util.Log; import com.vaadin.ui.Button; import com.vaadin.ui.Button.ClickEvent; +import com.vaadin.ui.ComponentContainer; import com.vaadin.ui.Notification; import com.vaadin.ui.Panel; import com.vaadin.ui.Table; import com.vaadin.ui.TextArea; import com.vaadin.ui.TextField; +import com.vaadin.ui.VerticalLayout; public class BasicPersonForm extends TestBase { @@ -61,7 +63,8 @@ public class BasicPersonForm extends TestBase { private class ConfigurationPanel extends Panel { public ConfigurationPanel() { - super("Configuration"); + super("Configuration", new VerticalLayout()); + ((VerticalLayout) getContent()).setMargin(true); BeanItem<Configuration> bi = new BeanItem<BasicPersonForm.Configuration>( configuration); FieldGroup confFieldGroup = new FieldGroup(bi); @@ -69,7 +72,8 @@ public class BasicPersonForm extends TestBase { confFieldGroup.setBuffered(false); for (Object propertyId : bi.getItemPropertyIds()) { - addComponent(confFieldGroup.buildAndBind(propertyId)); + ((ComponentContainer) getContent()).addComponent(confFieldGroup + .buildAndBind(propertyId)); } } |