summaryrefslogtreecommitdiffstats
path: root/src/com/itmill
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2009-03-12 13:25:48 +0000
committerArtur Signell <artur.signell@itmill.com>2009-03-12 13:25:48 +0000
commit35387a98c607449a1888d607c76ccdee392385ea (patch)
treec2c42573a46ca2ee0b4258a5f1af886fe1618312 /src/com/itmill
parent6a89ff905e36ed744503ef5410e7f056a87e5512 (diff)
downloadvaadin-framework-35387a98c607449a1888d607c76ccdee392385ea.tar.gz
vaadin-framework-35387a98c607449a1888d607c76ccdee392385ea.zip
Merged test case for #2738
svn changeset:7070/svn branch:6.0
Diffstat (limited to 'src/com/itmill')
-rw-r--r--src/com/itmill/toolkit/tests/components/window/EmbeddedInSubWindow.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/com/itmill/toolkit/tests/components/window/EmbeddedInSubWindow.java b/src/com/itmill/toolkit/tests/components/window/EmbeddedInSubWindow.java
new file mode 100644
index 0000000000..cb9d8d095d
--- /dev/null
+++ b/src/com/itmill/toolkit/tests/components/window/EmbeddedInSubWindow.java
@@ -0,0 +1,46 @@
+package com.itmill.toolkit.tests.components.window;
+
+import com.itmill.toolkit.terminal.ThemeResource;
+import com.itmill.toolkit.tests.components.TestBase;
+import com.itmill.toolkit.ui.Embedded;
+import com.itmill.toolkit.ui.Window;
+
+public class EmbeddedInSubWindow extends TestBase {
+
+ @Override
+ protected String getDescription() {
+ return "";
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ protected void setup() {
+ setTheme("tests-tickets");
+ Window zoom = new Window("Image Preview");
+ zoom.setSizeUndefined();
+ zoom.getLayout().setSizeUndefined();
+
+ String res = "icons/640ok.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);
+
+ }
+
+}