Setting properties
About this task
Use the Java™ Applet Properties box to set applet properties (such as height and width). You can also use the Properties box to hide an applet by condition, or to hide an applet based on the browser accessing it.
To set applet properties
Procedure
- Select the Java™ applet and choose Java™ Applet - Java™ Applet Properties.
- Click the Info tab to set any of these properties.
Property
Description
Base class
The name of the main class file.
DocBase
Provided for information only. You cannot edit it.
CodeBase
CodeBase is the path storing the class files, relative to the base class file. If you linked to an applet on the Web, the URL of the directory containing the applet is displayed, and you can edit the URL name. Otherwise, the field is provided for information only.
Size
The Height and Width fields set the size of the applet display area in the Domino® application where the applet is running. If the applet is too large to run in the default size, you must reset these settings, using the height and width settings from the HTML file. To determine the applet size, use any text editor or Web browser to view the HTML file. Check the width and height values specified in the <applet> tag. Enter these values in the Width and Height fields. You can also specify a size for the applet as a percentage of its parent window.
Text to display when applet is not running
Domino® displays the text you specify when it can't run the applet. Enter a simple text string, such as "This applet is not working at this time."
Applet uses Notes® CORBA classes
Enable the applet to access Notes® objects.
Applet uses CORBA SSL security
If you select "Applet uses Notes® CORBA classes," this setting becomes available.
To hide an applet under certain conditions
About this task
You can hide an applet so it appears only under certain conditions in the form or page.
Procedure
- Select the Java™ applet and choose Java™ - Java™ Applet Properties.
- Click the Hide-When tab and choose one of the following:
- Hide paragraph from
- Hide paragraph when document is
- Hide paragraph if formula is true
To hide an applet based on the browser accessing it
Procedure
- Create a field named HTTP_USER_AGENT in the form where you imported or linked the applet, or in the form used by the document where you imported or linked the applet.
- Optional: For the field type, select Text and Computed for display. Optionally, you can hide the field.
- Enter the following formula for the field value:
HTTP_USER_AGENT
When a user accesses a document that uses this form, the Web server fills in the field with a string describing the browser type and version. The format of the string differs according to the browser. Some examples:
Mozilla/3.0Gold (WinNT; I) Mozilla/2.0 (compatible; MSIE 3.02; Update a)
- Select the Java™ applet
and choose Java™ Applet - Java™ Applet properties. Click the
Hide When tab and enter a formula that uses this field to hide the
applet for a particular browser. Use the @contains(HTTP_USER_AGENT; string)
formula.
For example, use the following formula to hide the applet from Internet Explorer:
@Contains(HTTP_USER_AGENT; "MSIE")