Wiki source code of WOApplet

Last modified by Pascal Robert on 2011/04/26 23:30

Show last authors
1 {{toc/}}
2
3 = Introduction =
4
5 WOApplet is a dynamic element that generates HTML to specify a Java applet. The applet's parameters are passed by one or more WOParam elements.
6
7 = Usage =
8
9 {{code}}
10
11 WOApplet { code=javaClassName; width=aWidth; height=aHeight; [associationClass=className;] [codeBase=aPath;] [archive=jarFile1[, jarFile2];] [archiveNames=jarFile1[, jarFile2];] [object=serializedApplet;] [hspace= aSize;] [vspace=aSize;] [align=aString]... }
12
13 {{/code}}
14
15 = Bindings =
16
17 |(((
18 code
19 )))|(((
20 Name of the Java class.
21 )))
22 |(((
23 width
24 )))|(((
25 Width, in pixels, of the area to allocate for the applet.
26 )))
27 |(((
28 height
29 )))|(((
30 Height, in pixels, of the area to allocate for the applet.
31 )))
32 |(((
33 associationClass
34 )))|(((
35 Name of the Java subclass of WOAssociation that aids in communication between client applet and the server.
36 )))
37 |(((
38 codeBase
39 )))|(((
40 Directory that contains the applet code. If this attribute is omitted, the applet code is assumed to be in the same directory as the template HTML file.
41 )))
42 |(((
43 archive
44 )))|(((
45 Comma-separated list of URLs for jar archive files containing classes and other resources that will be preloaded. (Note: Currently, most browsers do not support a comma-separated list, so only a single archive file may be used.) Use this attribute for archive files that you have generated outside of a WebObjects application or framework. The value for this attribute is appended to the archiveNames attribute value.
46 )))
47 |(((
48 archiveNames
49 )))|(((
50 Comma-separated list of archive files containing classes and other resources that will be preloaded. (Note: Currently, most browsers do not support a comma-separated list, so only a single archive file may be used.) Use this attribute for archive files that are built as part of a WebObjects application or framework project.
51 )))
52 |(((
53 object
54 )))|(((
55 File containing serialized representation of the applet.
56 )))
57 |(((
58 hspace
59 )))|(((
60 Amount of whitespace (in pixels) to the left and right of the applet.
61 )))
62 |(((
63 vspace
64 )))|(((
65 Amount of whitespace (in pixels) at the top and bottom of the applet.
66 )))
67 |(((
68 align
69 )))|(((
70 Alignment of the applet. Possible values are top, bottom, left, right, and middle.
71 )))
72
73 = Examples =
74
75 == Java methods ==
76
77 == WOD-style ==
78
79 {{code/}}
80
81 == Inline bindings (WOOGNL) ==
82
83 {{code/}}
84
85 = Related documents =