From: Matti Tahvonen Date: Fri, 17 Aug 2007 06:40:01 +0000 (+0000) Subject: simple flash support for embedded component X-Git-Tag: 6.7.0.beta1~6093 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0f5a649a35efe30a37d5ed53e567017f682c5df6;p=vaadin-framework.git simple flash support for embedded component svn changeset:2038/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IEmbedded.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IEmbedded.java index 5e36793910..ce9a261a5d 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IEmbedded.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IEmbedded.java @@ -8,8 +8,20 @@ import com.itmill.toolkit.terminal.gwt.client.UIDL; public class IEmbedded extends HTML implements Paintable { public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { + if(client.updateComponent(this, uidl, true)) + return; + if(uidl.hasAttribute("type") && uidl.getStringAttribute("type").equals("image")) { setHTML(""); + } else if(uidl.hasAttribute("mimetype") && + uidl.getStringAttribute("mimetype").equals("application/x-shockwave-flash")) { + String w = uidl.hasAttribute("width") ? uidl.getStringAttribute("width") : "100"; + String h = uidl.hasAttribute("height") ? uidl.getStringAttribute("height") : "100"; + + setHTML(""); } else { setText("Terminal don't know how ty handle this type of embed"); }