|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.help.TOCView.DefaultTOCFactory
A default TreeItemFactory that can be used to parse TOC items as used by this navigator.
| Constructor Summary | |
TOCView.DefaultTOCFactory()
|
|
| Method Summary | |
TreeItem |
createItem()
Creates a default TOCItem. |
TreeItem |
createItem(java.lang.String tagName,
java.util.Hashtable atts,
HelpSet hs,
java.util.Locale locale)
Create an TOCItem with the given data. |
java.util.Enumeration |
listMessages()
Lists all the error messages. |
javax.swing.tree.DefaultMutableTreeNode |
parsingEnded(javax.swing.tree.DefaultMutableTreeNode node)
Ends parsing. |
void |
parsingStarted(java.net.URL source)
Starts parsing. |
void |
processDOCTYPE(java.lang.String root,
java.lang.String publicID,
java.lang.String systemID)
Processes a DOCTYPE. |
void |
processPI(HelpSet hs,
java.lang.String target,
java.lang.String data)
Finds a PI--ignore it. |
void |
reportMessage(java.lang.String msg,
boolean validParse)
Reports an error message. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TOCView.DefaultTOCFactory()
| Method Detail |
public void parsingStarted(java.net.URL source)
parsingStarted in interface TreeItemFactorysource - The URL of the document being parsed.
public void processDOCTYPE(java.lang.String root,
java.lang.String publicID,
java.lang.String systemID)
processDOCTYPE in interface TreeItemFactoryroot - The root tag of the document.publicID - PublicID from the DOCTYPE.systemID - SystemID from the DOCTYPE.
public void processPI(HelpSet hs,
java.lang.String target,
java.lang.String data)
processPI in interface TreeItemFactorytarget - The target of the PI.data - A String for the data in the PI.
public TreeItem createItem(java.lang.String tagName,
java.util.Hashtable atts,
HelpSet hs,
java.util.Locale locale)
createItem in interface TreeItemFactorytagName - 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.
IllegalArgumentExcetpion - if tagname is null or invalid.public TreeItem createItem()
createItem in interface TreeItemFactory
public void reportMessage(java.lang.String msg,
boolean validParse)
reportMessage in interface TreeItemFactorymsg - The message to report.validParse - Whether the result of the parse is still valid.public java.util.Enumeration listMessages()
listMessages in interface TreeItemFactorypublic javax.swing.tree.DefaultMutableTreeNode parsingEnded(javax.swing.tree.DefaultMutableTreeNode node)
parsingEnded in interface TreeItemFactorynode - The DefaultMutableTreeNode that has been built during the
the parsing. If node is null or there were parsing errors a null
is returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||