diff options
-rw-r--r-- | src/com/vaadin/ui/Root.java | 4 | ||||
-rw-r--r-- | tests/testbench/com/vaadin/tests/tickets/Ticket1970.java | 7 | ||||
-rw-r--r-- | tests/testbench/com/vaadin/tests/tickets/Ticket2053.java | 8 |
3 files changed, 1 insertions, 18 deletions
diff --git a/src/com/vaadin/ui/Root.java b/src/com/vaadin/ui/Root.java index 66e7258b17..142719b629 100644 --- a/src/com/vaadin/ui/Root.java +++ b/src/com/vaadin/ui/Root.java @@ -824,8 +824,4 @@ public class Root extends AbstractComponentContainer implements public void removeListener(ResizeListener resizeListener) { throw new RuntimeException("Not yet implemented"); } - - public void addListener(CloseListener closeListener) { - throw new RuntimeException("Not yet (if ever) implemented"); - } } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1970.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1970.java index 08afb965c4..0c587ce8c9 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1970.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1970.java @@ -7,8 +7,6 @@ import com.vaadin.ui.Button; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Label; import com.vaadin.ui.Root; -import com.vaadin.ui.Window; -import com.vaadin.ui.Window.CloseEvent; public class Ticket1970 extends Application.LegacyApplication { @@ -49,11 +47,6 @@ public class Ticket1970 extends Application.LegacyApplication { w.showNotification(openWindows); } })); - w.addListener(new Window.CloseListener() { - public void windowClose(CloseEvent e) { - removeWindow(w); - } - }); return w; } diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2053.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2053.java index dd44203836..b617484df3 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2053.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2053.java @@ -9,8 +9,6 @@ import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Label; import com.vaadin.ui.Root; import com.vaadin.ui.TextField; -import com.vaadin.ui.Window; -import com.vaadin.ui.Window.CloseEvent; public class Ticket2053 extends Application.LegacyApplication { @@ -30,11 +28,7 @@ public class Ticket2053 extends Application.LegacyApplication { public void buttonClick(ClickEvent event) { final String name = "Child " + (++childs); Root c = new Root(name); - c.addListener(new Window.CloseListener() { - public void windowClose(CloseEvent e) { - main.addComponent(new Label(name + " closed")); - } - }); + addWindow(c); main.open(new ExternalResource(getWindowUrl(c)), "_new"); main.addComponent(new Label(name + " opened")); |