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/tickets/Ticket1506_Panel.java | |
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/tickets/Ticket1506_Panel.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/tickets/Ticket1506_Panel.java | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1506_Panel.java b/uitest/src/com/vaadin/tests/tickets/Ticket1506_Panel.java index 5f36427733..b59b7f8e5e 100644 --- a/uitest/src/com/vaadin/tests/tickets/Ticket1506_Panel.java +++ b/uitest/src/com/vaadin/tests/tickets/Ticket1506_Panel.java @@ -7,6 +7,7 @@ import com.vaadin.ui.Button; import com.vaadin.ui.Component; import com.vaadin.ui.Panel; import com.vaadin.ui.Select; +import com.vaadin.ui.VerticalLayout; /** * @author Efecte R&D @@ -15,18 +16,22 @@ import com.vaadin.ui.Select; public class Ticket1506_Panel extends Panel { public Ticket1506_Panel() { + VerticalLayout layout = new VerticalLayout(); + layout.setMargin(true); + setContent(layout); + ObjectProperty<String> property1 = new ObjectProperty<String>(null, String.class); - addComponent(initSelect(new Ticket1506_TestContainer(), "Test select", - property1)); - addComponent(initButton(property1)); - addComponent(initSelect(new Ticket1506_TestContainer2(), + layout.addComponent(initSelect(new Ticket1506_TestContainer(), + "Test select", property1)); + layout.addComponent(initButton(property1)); + layout.addComponent(initSelect(new Ticket1506_TestContainer2(), "Test select 2", new ObjectProperty<String>(null, String.class))); } private Component initButton(final ObjectProperty<?> property) { Button button = new Button("Clear select"); - button.addListener(new Button.ClickListener() { + button.addClickListener(new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { property.setValue(null); |