Oracle9i Supplied Java Packages Reference Release 2 (9.2) Part Number A96609-01 |
|
This chapter describes package oracle.xml.treeviewer.
The Oracle XML Transviewer Beans are provided as part of Oracle XDK for Java Beans. XML Transviewer Beans facilitate the addition of graphical or visual interfaces to your XML applications.
This chaper contains these sections:
Package oracle.xml.treeviewer implements the Treeviewer bean, which displays XML formatted files graphically as a tree. The branches and leaves of this tree can be manipulated with a mouse. It takes as input an org.w3c.dom.Document
object. and recognizes XML DOM nodes as described in the class reference section of this chapter.
Information about developing applications using Oracle XML Transviewer Java Beans can be found in Oracle9i XML Developer's Kits Guide - XDK.
See Also:
Oracle XML Developer's Kit for Java Beans at |
Class | Description |
---|---|
Shows an XML document as a tree. |
|
Provides info for XMLTreeView bean. |
public class XMLTreeView extends javax.swing.JPanel java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--oracle.xml.treeviewer.XMLTreeView
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Shows an XML document as a tree. Recognizes XML DOM nodes as follows: Tag, Attribute Name, Attribute Value, Comment, CDATA, PCDATA, PI Data, PI Name and NOTATION Symbol
.
Takes as input an org.w3c.dom.Document
object.
protected oracle.xml.treeviewer.XMLTreeModel model
protected transient javax.swing.JScrollPane scrollPane
protected transient javax.swing.JTree theTree
public XMLTreeView()
The class constructor. Creates an object of type XMLTreeView
.
public java.awt.Dimension getPreferredSize()
Returns the XMLTreeView preffered size.
javax.swing.JComponent.getPreferredSize() in class javax.swing.JComponent
The Dimension
object containing the XMLTreeView prefered size.
protected javax.swing.JTree getTree()
protected oracle.xml.treeviewer.XMLTreeModel getXMLTreeModel()
public void setXMLDocument(org.w3c.dom.Document document)
Associates the XMLTreeViewer with a XML document.
doc
- The Document
document to display.
public void updateUI()
Forces the XMLTreeView to update/refresh UI.
javax.swing.JPanel.updateUI() in class javax.swing.JPanel
public class XMLTreeViewBeanInfo extends java.beans.SimpleBeanInfo java.lang.Object | +--java.beans.SimpleBeanInfo | +--oracle.xml.treeviewer.XMLTreeViewBeanInfo
java.beans.BeanInfo
public XMLTreeViewBeanInfo()
public java.awt.Image getIcon(int iconKind)
java.beans.SimpleBeanInfo.getIcon(int) in class java.beans.SimpleBeanInfo
public java.beans.PropertyDescriptor[] getPropertyDescriptors()
java.beans.SimpleBeanInfo.getPropertyDescriptors() in class java.beans.SimpleBeanInfo
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|