diff options
author | Jani Laakso <jani.laakso@itmill.com> | 2007-02-11 10:55:21 +0000 |
---|---|---|
committer | Jani Laakso <jani.laakso@itmill.com> | 2007-02-11 10:55:21 +0000 |
commit | 5f1fe305bc2fc1cb1a5c103d4c07805c1815cd52 (patch) | |
tree | 7e76b6c518af054c78f452bfc7b1b72a9c23a1cd /src | |
parent | 8bb2d2f3e941280eac873ac11a72ea48ae8f2df9 (diff) | |
download | vaadin-framework-5f1fe305bc2fc1cb1a5c103d4c07805c1815cd52.tar.gz vaadin-framework-5f1fe305bc2fc1cb1a5c103d4c07805c1815cd52.zip |
Tried to add flash (itmill_spin.swf) for FeatureEmbedded.
svn changeset:649/svn branch:toolkit
Diffstat (limited to 'src')
-rw-r--r-- | src/com/itmill/toolkit/demo/features/FeatureEmbedded.java | 32 | ||||
-rw-r--r-- | src/com/itmill/toolkit/demo/features/itmill_spin.swf | bin | 0 -> 2991 bytes |
2 files changed, 18 insertions, 14 deletions
diff --git a/src/com/itmill/toolkit/demo/features/FeatureEmbedded.java b/src/com/itmill/toolkit/demo/features/FeatureEmbedded.java index bb54d345ea..93c817285f 100644 --- a/src/com/itmill/toolkit/demo/features/FeatureEmbedded.java +++ b/src/com/itmill/toolkit/demo/features/FeatureEmbedded.java @@ -29,6 +29,7 @@ package com.itmill.toolkit.demo.features; import com.itmill.toolkit.terminal.ClassResource; +import com.itmill.toolkit.terminal.ExternalResource; import com.itmill.toolkit.terminal.Sizeable; import com.itmill.toolkit.ui.*; @@ -42,21 +43,24 @@ public class FeatureEmbedded extends Feature { OrderedLayout l = new OrderedLayout(); - // Example panel - Panel show = new Panel("Embedded component"); - Embedded emb = new Embedded("Embedded Caption"); - emb.setClassId("clsid:F08DF954-8592-11D1-B16A-00C0F0283628"); - emb.setWidth(100); - emb.setHeight(50); - emb.setParameter("BorderStyle", "1"); - emb.setParameter("MousePointer", "1"); + ClassResource flashResource = new ClassResource( + "itmill_spin.swf", this.getApplication()); + Embedded emb = new Embedded("Embedded Caption", flashResource); + emb.setCodebase("http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"); + emb.setClassId("clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"); +// emb.setClassId("clsid:F08DF954-8592-11D1-B16A-00C0F0283628"); +// emb.setWidth(100); +// emb.setHeight(50); +// emb.setParameter("BorderStyle", "1"); +// emb.setParameter("MousePointer", "1"); emb.setParameter("Enabled", "1"); - emb.setParameter("Min", "1"); - emb.setParameter("Max", "10"); - show.addComponent(emb); - l.addComponent(show); +// emb.setParameter("Min", "1"); +// emb.setParameter("Max", "10"); + l.addComponent(emb); // Properties + propertyPanel = null; + if (false) { propertyPanel = new PropertyPanel(emb); Form ap = propertyPanel.createBeanPropertySet(new String[] { "type", "source", "width", "height", "widthUnits", "heightUnits", @@ -88,9 +92,9 @@ public class FeatureEmbedded extends Feature { .getField("classId") .setDescription( "Unique object id. This can be used for example to identify windows components."); - + } setJavadocURL("ui/Embedded.html"); - + return l; } diff --git a/src/com/itmill/toolkit/demo/features/itmill_spin.swf b/src/com/itmill/toolkit/demo/features/itmill_spin.swf Binary files differnew file mode 100644 index 0000000000..9e58ce29c6 --- /dev/null +++ b/src/com/itmill/toolkit/demo/features/itmill_spin.swf |