javax.help
Class TOCView.DefaultTOCFactory
java.lang.Object
javax.help.TOCView.DefaultTOCFactory
- TOCView
- TreeItemFactory
public static class TOCView.DefaultTOCFactory
extends java.lang.Object
A default TreeItemFactory that can be used to parse TOC items as used
by this navigator.
createItem
public TreeItem createItem(String tagName,
Hashtable atts,
HelpSet hs,
Locale locale)
Create an TOCItem with the given data.
- createItem in interface TreeItemFactory
tagName
- The TOC type to create.
Valid types are "tocitem". Null or invalid types will throw an
IllegalArgumentExceptionatts
- Attributes of the Item. Valid attributes are "target",
"image", and "text". A null atts is valid and means no attributeshs
- HelpSet this item was created under.locale
- Locale of this item. A null locale is valid.
parsingEnded
public DefaultMutableTreeNode parsingEnded(DefaultMutableTreeNode node)
Ends parsing. Last chance to do something
to the node.
- parsingEnded in interface TreeItemFactory
node
- The DefaultMutableTreeNode that has been built during the
the parsing. If node is null or there were parsing errors a null
is returned.
processDOCTYPE
public void processDOCTYPE(String root,
String publicID,
String systemID)
Processes a DOCTYPE.
- processDOCTYPE in interface TreeItemFactory