Previous Topic

Next Topic

Book Contents

Book Index

JavaHelp

JavaHelp for the Style and Structure Editors is included in the MFStyleEditor.jar and MFStructureEditor.jar. JavaHelp is context-sensitive and provides a complete help system, including a table of contents, index and search.

Applets

Pass in 0 for the helpType and ensure that the correct jar file is on your classpath. Pass the name of the jar containing the JavaHelp as the second parameter to setHelp. Applets require the name of the jar that contains the JavaHelp.

<script  type="text/javascript">
    function setHelp() {
      SampleStyleEditorApplet.setHelp(0,
"MFStyleEditor.jar");
    }
  </script>
</head>
<body onLoad="setHelp()">

Applications

Analogous to setting the HTML Help, you must use the SimpleConfigurationInfo, StyleConfigurationInfo, and StructureConfigurationInfo objects to set the help type to JavaHelp. Applications do not require the name of the jar containing the JavaHelp to be passed in; however, it must be on the classpath.


StyleConfigurationInfo config = new StyleConfigurationInfo();

// To use context sensitive JavaHelp 
config.setHelp(HelpInfo.JAVA_HELP);

Previous Topic

Next Topic

Book Contents

Book Index


[Design Science Home]
Copyright © 1996-2016 Design Science, Inc. All rights reserved.