Wiki source code of WOApplet
Version 3.1 by Pascal Robert on 2011/04/26 23:30
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{toc}}{{/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 | | code | Name of the Java class. | ||
18 | | width | Width, in pixels, of the area to allocate for the applet. | ||
19 | | height | Height, in pixels, of the area to allocate for the applet. | ||
20 | | associationClass | Name of the Java subclass of WOAssociation that aids in communication between client applet and the server. | ||
21 | | codeBase | 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. | ||
22 | | archive | 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. | ||
23 | | archiveNames | 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. | ||
24 | | object | File containing serialized representation of the applet. | ||
25 | | hspace | Amount of whitespace (in pixels) to the left and right of the applet. | ||
26 | | vspace | Amount of whitespace (in pixels) at the top and bottom of the applet. | ||
27 | | align | Alignment of the applet. Possible values are top, bottom, left, right, and middle. | ||
28 | |||
29 | = Examples = | ||
30 | |||
31 | == Java methods == | ||
32 | |||
33 | == WOD-style == | ||
34 | |||
35 | {{code}} | ||
36 | |||
37 | |||
38 | {{/code}} | ||
39 | |||
40 | == Inline bindings (WOOGNL) == | ||
41 | |||
42 | {{code}} | ||
43 | |||
44 | |||
45 | {{/code}} | ||
46 | |||
47 | = Related documents = |