diff options
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket2337.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/tickets/Ticket2337.java | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2337.java b/uitest/src/com/vaadin/tests/tickets/Ticket2337.java new file mode 100644 index 0000000000..3ac381b2d1 --- /dev/null +++ b/uitest/src/com/vaadin/tests/tickets/Ticket2337.java @@ -0,0 +1,46 @@ +package com.vaadin.tests.tickets; + +import com.vaadin.Application; +import com.vaadin.ui.Button; +import com.vaadin.ui.Button.ClickEvent; +import com.vaadin.ui.GridLayout; +import com.vaadin.ui.Label; +import com.vaadin.ui.UI.LegacyWindow; + +public class Ticket2337 extends Application.LegacyApplication { + + GridLayout gl = new GridLayout(3, 1); + + @Override + public void init() { + LegacyWindow w = new LegacyWindow(); + setMainWindow(w); + Button b = new Button("add", new Button.ClickListener() { + + @Override + public void buttonClick(ClickEvent event) { + gl.addComponent(new Label("asd"), 0, gl.getCursorY(), 2, + gl.getCursorY()); + + } + + }); + w.addComponent(b); + + b = new Button("empty", new Button.ClickListener() { + + @Override + public void buttonClick(ClickEvent event) { + gl.removeAllComponents(); + ; + + } + + }); + w.addComponent(b); + + w.addComponent(gl); + + } + +} |