Appendix B. Lightweight Component Tags

During JavaHelp development, you can add code to certain help topic (HTML) files to employ the pop-up and secondary window lightweight components.

These components are discussed in Chapter 6. This appendix provides you with a quick reference to the elements and attributes that specify the components.

Pop-up and Secondary Windows

Example:

<object classid="java:com.sun.java.help.impl.JHSecondaryViewer">
    <param name="viewerActivator" value="javax.help.LinkLabel">
    <param name="viewerStyle" value="javax.help.SecondaryWindow">
    <param name="viewerLocation" value="400,200">
    <param name="viewerSize" value="600,300">
    <param name="text" value="Runway markings">
    <param name="textFontSize" value="medium">
    <param name="textFontWeight" value="plain">
    <param name="id" value="sec.runwaymarkings">
</object>

Elements and Attributes

Tag

Attribute

Required

Description

<object>

 

Yes

Element that defines a pop-up or secondary window. Contains one or more <param> subelements to specify the window’s properties.

 

classid

Yes

Specifies the Java class that handles the display of the pop-up or secondary window. For Sun’s default pop-up and secondary window components, use: java:com.sun.java.help.impl. JHSecondaryViewer.

<param>

 

Yes

Specifies, through its name and value attributes, one property for a pop-up or secondary window. This is a subelement of <object>.

 

name

Yes

Specifies a property to be set. Refer to the next table for the properties’ names. ...

Get Creating Effective JavaHelp now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.