Class DocumentTreeModel

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.tree.TreeModel

    public class DocumentTreeModel
    extends javax.swing.tree.DefaultTreeModel

    DocumentTreeModel implements a Swing TreeModel for a dom4j XML Document.

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Document document
      The document for this model
      • Fields inherited from class javax.swing.tree.DefaultTreeModel

        asksAllowsChildren, listenerList, root
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Document getDocument()
      DOCUMENT ME!
      void setDocument​(Document document)
      Sets the Document instance that this TreeModel is based on
      • 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
    • Field Detail

      • document

        protected Document document
        The document for this model
    • Constructor Detail

      • DocumentTreeModel

        public DocumentTreeModel​(Document document)
    • Method Detail

      • getDocument

        public Document getDocument()
        DOCUMENT ME!
        Returns:
        the Document instance that this TreeModel is based on
      • setDocument

        public void setDocument​(Document document)
        Sets the Document instance that this TreeModel is based on
        Parameters:
        document - DOCUMENT ME!