Top Description Fields Constructors Methods
org.dom4j.swing

public Class DocumentTreeModel

extends DefaultTreeModel
Class Inheritance
Imports
javax.swing.tree.DefaultTreeModel, org.dom4j.Document

DocumentTreeModel implements a Swing TreeModel for a dom4j XML Document.

Authors
James Strachan , Jakob Jenkov
Version
$Revision: 1.7 $

Field Summary

Modifier and TypeField and Description
protected Document
document

The document for this model

Inherited from javax.swing.tree.DefaultTreeModel:
asksAllowsChildrenlistenerListroot

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Document

Returns:

the Document instance that this TreeModel is based on
getDocument
()

DOCUMENT ME!

public void
setDocument(Document
DOCUMENT ME!
document
)

Sets the Document instance that this TreeModel is based on

Inherited from javax.swing.tree.DefaultTreeModel:
addTreeModelListenerasksAllowsChildrenfireTreeNodesChangedfireTreeNodesInsertedfireTreeNodesRemovedfireTreeStructureChangedgetChildgetChildCountgetIndexOfChildgetListenersgetPathToRootgetPathToRootgetRootgetTreeModelListenersinsertNodeIntoisLeafnodeChangednodesChangednodeStructureChangednodesWereInsertednodesWereRemovedreloadreloadremoveNodeFromParentremoveTreeModelListenersetAsksAllowsChildrensetRootvalueForPathChanged

Field Detail

documentback to summary
protected Document document

The document for this model

Constructor Detail

DocumentTreeModelback to summary
public DocumentTreeModel(Document document)

Method Detail

getDocumentback to summary
public Document getDocument()

DOCUMENT ME!

Returns:Document

the Document instance that this TreeModel is based on

setDocumentback to summary
public void setDocument(Document document)

Sets the Document instance that this TreeModel is based on

Parameters
document:Document

DOCUMENT ME!