Class DOMTreeFull.Model

java.lang.Object
  |
  +--javax.swing.tree.DefaultTreeModel
        |
        +--DOMTreeFull.Model
All Implemented Interfaces:
java.io.Serializable, javax.swing.tree.TreeModel
Enclosing class:
DOMTreeFull

public static class DOMTreeFull.Model
extends javax.swing.tree.DefaultTreeModel
implements java.io.Serializable

DOM tree model.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
 
Constructor Summary
DOMTreeFull.Model()
          Default constructor.
DOMTreeFull.Model(org.w3c.dom.Node node)
          Constructs a model from the specified root.
 
Method Summary
 java.util.Hashtable getAllNodes()
           
 org.w3c.dom.Node getNode(java.lang.Object treeNode)
          get the org.w3c.Node for a MutableTreeNode.
 org.w3c.dom.Node getRootNode()
          Returns the root.
 javax.swing.tree.TreeNode getTreeNode(java.lang.Object node)
          get the org.w3c.Node for a MutableTreeNode.
 javax.swing.tree.MutableTreeNode insertNode(org.w3c.dom.Node what, javax.swing.tree.MutableTreeNode where)
          Inserts a text node.
 void setRootNode(org.w3c.dom.Node root)
          Sets the root.
 
Methods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMTreeFull.Model

public DOMTreeFull.Model()
Default constructor.


DOMTreeFull.Model

public DOMTreeFull.Model(org.w3c.dom.Node node)
Constructs a model from the specified root.

Method Detail

setRootNode

public void setRootNode(org.w3c.dom.Node root)
Sets the root.


getRootNode

public org.w3c.dom.Node getRootNode()
Returns the root.


getNode

public org.w3c.dom.Node getNode(java.lang.Object treeNode)
get the org.w3c.Node for a MutableTreeNode.


getAllNodes

public java.util.Hashtable getAllNodes()

getTreeNode

public javax.swing.tree.TreeNode getTreeNode(java.lang.Object node)
get the org.w3c.Node for a MutableTreeNode.


insertNode

public javax.swing.tree.MutableTreeNode insertNode(org.w3c.dom.Node what,
                                                   javax.swing.tree.MutableTreeNode where)
Inserts a text node.