Web Connection User's Guide
Use the Applet part to insert a Java applet to your Web page. The
Applet part generates the HTML element applet.
(Java applets might not be supported by all browsers.)
Note: | While Web Connection supports the inclusion of Java applets within your Web
pages, it does not provide support for the development of the applet
itself.
|
To add an Applet part, select the Web Connection Category (
), then the Applet part (
). You can also add the part using the Add Part dialog and specifying
the class name, AbtHtmlApplet.
TheApplet part has the following properties:
- align
- Use the align property to specify how you want the element to
be aligned on the Web page. You can select any of the following values
from the drop-down list:
- Top
- Middle
- Bottom
- <Default> (Browser default)
In addition, you can specify an alignment by typing the appropriate string
directly into the field. Do this if you want to specify a special
alignment supported by your browser but not directly supported by
VisualAge. VisualAge will use the specified alignment string when
generating HTML at run time, but will use its default alignment at edit
time.
This property is equivalent to the align attribute of
the appropriate HTML element.
- altText
- Use the altText property to specify the text you want displayed
if the element does not display (for example, if the browser cannot load an
image or cannot run a Java applet). Alternate text can indicate what is
intended to appear even if something prevents the page from loading properly,
or if a user interrupts transmission before loading is complete.
This property is equivalent to the alt attribute of
the appropriate HTML element.
- appletName
- Use the appletName property to specify the name of the Java
applet.
- archive
- Use the archive property to specify a single library file to
collect common classes into. This library is cached on the user's
local disk. When classes are cached on a local disk this way the
browser doesn't need to use a network to access an applet and therefore
loads the class much faster.
The value of the archive property is a URL indicating an archive
file, either .zip or .jar format.
- cabBase
- Use the cabBase property to reference applets stored in
.cab archive files.
- codeBase
- Use the codeBase property to define an alternate URL from which
the browser will receive the applet file. The value of this property is
a URL pointing to a directory containing the class defined by the
applet.
- eventHandlers
- Use the eventHandlers property to define any event handlers for
this part. Event handlers provide the ability to detect and react to
events that occur while an HtmlPage is loaded in a Web browser. An
example of an event handler is mouse over, where you can specify
when the mouse moves over an HTML element, something happens, usually a
JavaScript is executed..
- extraAttributes
- Use the extraAttributes property to specify any additional HTML
attributes that you want included in the HTML tagging generated by the
part. You can use this property to include HTML attributes that are not
directly supported by VisualAge.
- height
- Use the height property to specify the height of the area you
want the applet or embed to appear in. Use this property in conjunction
with the width property to specify the dimensions of the applet or
embed on the page.
- parameterLiteralText
- Use the parameterLiteralText property to literally type, or cut
and paste, parameters into a list rather than separating them into key value
pairs.
- parameters
- Use the parameters property to specify the parameters you want
to pass to the applet or embed.
- partName
- In the Part name field, type the name you want to use to
describe the part. For non-visual parts, this text appears under the
icon for the part on the free-form surface.
The name of the part can consist of alphanumeric characters, and must be
unique from all other parts on the layout surface.
This field is optional. If you do not specify a part name, VisualAge
generates a unique name based on the class name of the part.
- width
- Use the width property to specify the width of the area you
want the applet or embed to appear in. Use this attribute in
conjunction with the height property to specify the dimensions of
the applet or embed on the page.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]