Package help

Class CustomTOCView

java.lang.Object
javax.help.NavigatorView
javax.help.TOCView
help.CustomTOCView
All Implemented Interfaces:
Serializable

public class CustomTOCView extends javax.help.TOCView
A custom Table of Contents view that we specify in our JavaHelp xml documents. This view lets us install custom renderers and custom tree items for use by those renderers. These renderers let us display custom text defined by the TOC_Source.xml files. We also add some utility like: tooltips in development mode, node selection when pressing F1.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Our custom factory that knows how to look for extra XML attributes and how to create our custom tree items
    static class 
    A custom tree item that allows us to store and retrieve custom attributes that we parsed from the TOC xml document.

    Nested classes/interfaces inherited from class javax.help.TOCView

    javax.help.TOCView.DefaultTOCFactory
  • Field Summary

    Fields inherited from class javax.help.TOCView

    publicIDString, publicIDString_V2
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomTOCView(javax.help.HelpSet hs, String name, String label, Hashtable params)
     
    CustomTOCView(javax.help.HelpSet hs, String name, String label, Locale locale, Hashtable params)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    createNavigator(javax.help.HelpModel model)
     
     
    javax.help.HelpModel
     

    Methods inherited from class javax.help.TOCView

    getCategoryClosedImageID, getCategoryOpenImageID, getMergeType, getTopicImageID, parse, parse, setCategoryClosedImageID, setCategoryOpenImageID, setTopicImageID

    Methods inherited from class javax.help.NavigatorView

    create, getHelpSet, getImageID, getLabel, getLabel, getLocale, getName, getParameters

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • createNavigator

      public Component createNavigator(javax.help.HelpModel model)
      Overrides:
      createNavigator in class javax.help.TOCView
    • getHelpModel

      public javax.help.HelpModel getHelpModel()
    • getDataAsTree

      public DefaultMutableTreeNode getDataAsTree()
      Overrides:
      getDataAsTree in class javax.help.TOCView