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 |
---|---|---|---|
|
Yes |
Element that defines a pop-up or secondary window. Contains one or
more | |
|
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: | |
|
Yes |
Specifies, through its | |
|
Yes |
Specifies a property to be set. Refer to the next table for the properties’ names. ... |
Get Creating Effective JavaHelp now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.