summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2008-03-06 12:54:55 +0000
committerMarc Englund <marc.englund@itmill.com>2008-03-06 12:54:55 +0000
commit71c896481ddf64d52af830725e7e3b58b12ef657 (patch)
treefe4b5e83c443c831705326eb130669faf2534c74
parent3ce80961146b47dc6baaa1e87552aa27575a5f15 (diff)
downloadvaadin-framework-71c896481ddf64d52af830725e7e3b58b12ef657.tar.gz
vaadin-framework-71c896481ddf64d52af830725e7e3b58b12ef657.zip
Reload left window empty ( #1414 ).
Also, changes to windowing had broken window re-open at some point. svn changeset:3988/svn branch:trunk
-rw-r--r--src/com/itmill/toolkit/demo/WindowedDemos.java16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/com/itmill/toolkit/demo/WindowedDemos.java b/src/com/itmill/toolkit/demo/WindowedDemos.java
index 6ec59bf629..4367e09cf2 100644
--- a/src/com/itmill/toolkit/demo/WindowedDemos.java
+++ b/src/com/itmill/toolkit/demo/WindowedDemos.java
@@ -9,6 +9,7 @@ import java.util.Iterator;
import com.itmill.toolkit.terminal.ExternalResource;
import com.itmill.toolkit.ui.Button;
+import com.itmill.toolkit.ui.Embedded;
import com.itmill.toolkit.ui.Window;
import com.itmill.toolkit.ui.Button.ClickEvent;
@@ -78,13 +79,18 @@ public class WindowedDemos extends com.itmill.toolkit.Application {
w.setWidth(520);
w.setHeight(500);
w.setPositionX(202);
+ w.getLayout().setSizeFull();
+ w.getLayout().setMargin(false);
windows.put(demoName, w);
- getMainWindow().addWindow(w);
- } else {
- w.setVisible(true);
+ Embedded emb = new Embedded();
+ emb.setType(Embedded.TYPE_BROWSER);
+ emb
+ .setSource(new ExternalResource((String) servlets
+ .get(demoName)));
+ emb.setSizeFull();
+ w.addComponent(emb);
}
- w.open(new ExternalResource((String) servlets.get(demoName)));
-
+ getMainWindow().addWindow(w);
}
}