XMLTreeView - Oracle 9i

Syntax:

All Implemented Interfaces:

javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

Description:

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.

Fields

model:

protected oracle.xml.treeviewer.XMLTreeModel model

scrollPane:

protected transient javax.swing.JScrollPane scrollPane

theTree:

protected transient javax.swing.JTree theTree

Constructors

XMLTreeView():

public XMLTreeView()

The class constructor. Creates an object of type XMLTreeView.

Methods

getPreferredSize():

public java.awt.Dimension getPreferredSize()

Returns the XMLTreeView preffered size.

Overrides:

javax.swing.JComponent.getPreferredSize()

in class javax.swing.JComponent

Returns

The Dimension object containing the XMLTreeView prefered size.

getTree():

protected javax.swing.JTree getTree()

getXMLTreeModel():

protected oracle.xml.treeviewer.XMLTreeModel getXMLTreeModel()

setXMLDocument(Document):

public void setXMLDocument(org.w3c.dom.Document document)

Associates the XMLTreeViewer with a XML document.

Parameters

doc - The Document document to display.

updateUI():

public void updateUI()

Forces the XMLTreeView to update/refresh UI.

Overrides

javax.swing.JPanel.updateUI() in class javax.swing.JPanel

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Oracle 9i Topics