summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/com')
-rw-r--r--src/com/itmill/toolkit/demo/features/FeatureEmbedded.java32
-rw-r--r--src/com/itmill/toolkit/demo/features/itmill_spin.swfbin0 -> 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
new file mode 100644
index 0000000000..9e58ce29c6
--- /dev/null
+++ b/src/com/itmill/toolkit/demo/features/itmill_spin.swf
Binary files differ