All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class oracle.xml.treeviewer.XMLTreeView

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----javax.swing.JComponent
                           |
                           +----javax.swing.JPanel
                                   |
                                   +----oracle.xml.treeviewer.XMLTreeView

public class XMLTreeView
extends JPanel
Shows an XML document as a tree. Recognizes the following XML DOM nodes: Tag, Attribute Name, Attribute Value, Comment, CDATA, PCDATA, PI Data, PI Name and NOTATION Symbol. Takes as input an org.w3c.dom.Document object.


Variable Index

 o model
 o scrollPane
 o theTree

Constructor Index

 o XMLTreeView()
The class constructor.

Method Index

 o getPreferredSize()
Returns the XMLTreeView preffered size.
 o getTree()
 o getXMLTreeModel()
 o setXMLDocument(Document)
Associates the XMLTreeViewer with a XML document.
 o updateUI()
Forces the XMLTreeView to update/refresh UI.

Variables

 o theTree
 protected transient JTree theTree
 o scrollPane
 protected transient JScrollPane scrollPane
 o model
 protected XMLTreeModel model

Constructors

 o XMLTreeView
 public XMLTreeView()
The class constructor. Creates an object of type XMLTreeView.

Methods

 o setXMLDocument
 public void setXMLDocument(Document document)
Associates the XMLTreeViewer with a XML document.

Parameters:
doc - The Document document to display.
 o updateUI
 public void updateUI()
Forces the XMLTreeView to update/refresh UI.

Overrides:
updateUI in class JPanel
 o getPreferredSize
 public Dimension getPreferredSize()
Returns the XMLTreeView preffered size.

Returns:
The Dimension object containing the XMLTreeView prefered size.
Overrides:
getPreferredSize in class JComponent
 o getXMLTreeModel
 protected XMLTreeModel getXMLTreeModel()
 o getTree
 protected JTree getTree()

All Packages  Class Hierarchy  This Package  Previous  Next  Index