diff options
Diffstat (limited to 'src/com/vaadin/tests/tickets/Ticket2007.java')
-rw-r--r-- | src/com/vaadin/tests/tickets/Ticket2007.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/com/vaadin/tests/tickets/Ticket2007.java b/src/com/vaadin/tests/tickets/Ticket2007.java new file mode 100644 index 0000000000..e925519ee2 --- /dev/null +++ b/src/com/vaadin/tests/tickets/Ticket2007.java @@ -0,0 +1,28 @@ +package com.vaadin.tests.tickets; + +import com.vaadin.Application; +import com.vaadin.terminal.ExternalResource; +import com.vaadin.ui.Button; +import com.vaadin.ui.Window; +import com.vaadin.ui.Button.ClickEvent; + +public class Ticket2007 extends Application { + + int childs = 0; + + @Override + public void init() { + + final Window main = new Window("Main window for #2007"); + setMainWindow(main); + main.addComponent(new Button("Open another (non-main) window", + new Button.ClickListener() { + public void buttonClick(ClickEvent event) { + Window c = new Window("Non-main browser window " + + (++childs)); + addWindow(c); + main.open(new ExternalResource(c.getURL()), "_new"); + } + })); + } +} |