diff options
author | Artur Signell <artur.signell@itmill.com> | 2009-10-27 07:57:12 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2009-10-27 07:57:12 +0000 |
commit | 6a3c715dae922edd723c9423b4308d5d7948b74e (patch) | |
tree | 46a007274681a9803afccf135ace5554f3e01e3a /src/com/vaadin/tests/components/window/EmbeddedInSubWindow.java | |
parent | 931d75fef69deb9b738fad97001cf5621de9f43e (diff) | |
download | vaadin-framework-6a3c715dae922edd723c9423b4308d5d7948b74e.tar.gz vaadin-framework-6a3c715dae922edd723c9423b4308d5d7948b74e.zip |
Split demo and tests files to own source folders, for #3298
svn changeset:9390/svn branch:6.2
Diffstat (limited to 'src/com/vaadin/tests/components/window/EmbeddedInSubWindow.java')
-rw-r--r-- | src/com/vaadin/tests/components/window/EmbeddedInSubWindow.java | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/com/vaadin/tests/components/window/EmbeddedInSubWindow.java b/src/com/vaadin/tests/components/window/EmbeddedInSubWindow.java deleted file mode 100644 index f1ef0069c9..0000000000 --- a/src/com/vaadin/tests/components/window/EmbeddedInSubWindow.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.vaadin.tests.components.window; - -import com.vaadin.terminal.ThemeResource; -import com.vaadin.tests.components.TestBase; -import com.vaadin.ui.Embedded; -import com.vaadin.ui.Window; - -public class EmbeddedInSubWindow extends TestBase { - - @Override - protected String getDescription() { - return "The sub window contains a large icon and should be sized according to the icon. The icon contains a blue border of 10px at the outer edges. The layout in the sub window has margins enabled."; - } - - @Override - protected Integer getTicketNumber() { - return null; - } - - @Override - protected void setup() { - setTheme("tests-tickets"); - Window zoom = new Window("Image Preview"); - zoom.setSizeUndefined(); - zoom.getContent().setSizeUndefined(); - - String res = "icons/EmbeddedInSubWindow-image.png"; - Embedded imagePreview = new Embedded("", new ThemeResource(res)); - imagePreview.setSizeUndefined(); - - zoom.addComponent(imagePreview); - zoom.setModal(true); - zoom.setResizable(false); - - zoom.addListener(new Window.CloseListener() { - public void windowClose(Window.CloseEvent closeEvent) { - getMainWindow().removeWindow(closeEvent.getWindow()); - } - }); - - getMainWindow().addWindow(zoom); - - } - -} |