javax.help
Class IndexView.DefaultIndexFactory
java.lang.Object
javax.help.IndexView.DefaultIndexFactory
- IndexView
- TreeItemFactory
public static class IndexView.DefaultIndexFactory
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)
Creates an IndexItem with the given data.
- createItem in interface TreeItemFactory
tagName
- The index type to create.
Valid types are "indexitem". Null or invalid types throw an
IllegalArgumentException.atts
- Attributes of the Item. Valid attributes are "target"
and "text". A null atts is valid and means no attributes.hs
- The HelpSet this item was created under.locale
- Locale of this item. A null locale is valid.
parsingEnded
public DefaultMutableTreeNode parsingEnded(DefaultMutableTreeNode node)
Parsing has ended. The 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)
Process a DOCTYPE
- processDOCTYPE in interface TreeItemFactory