Skip Headers

Oracle9i Supplied Java Packages Reference
Release 2 (9.2)

Part Number A96609-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to next page

17
Package oracle.xml.treeviewer

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 Description

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 http://otn.oracle.com/tech/xml/xdk_jbeans/content.html


Package oracle.xml.treeviewer Summary

Table 17-1  Class Summary for oracle.xml.treeviewer
Class Description

XMLTreeView

Shows an XML document as a tree.

XMLTreeViewBeanInfo

Provides info for XMLTreeView bean.


XMLTreeView

Syntax

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

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 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.


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


XMLTreeViewBeanInfo

Syntax

public class XMLTreeViewBeanInfo extends java.beans.SimpleBeanInfo
 
java.lang.Object
  |
  +--java.beans.SimpleBeanInfo
        |
        +--oracle.xml.treeviewer.XMLTreeViewBeanInfo

All Implemented Interfaces

java.beans.BeanInfo

Constructors

XMLTreeViewBeanInfo()

Syntax

public  XMLTreeViewBeanInfo()

Methods

getIcon(int)

public java.awt.Image getIcon(int iconKind)

Overrides

java.beans.SimpleBeanInfo.getIcon(int) in class java.beans.SimpleBeanInfo

getPropertyDescriptors()

public java.beans.PropertyDescriptor[] getPropertyDescriptors()

Overrides

java.beans.SimpleBeanInfo.getPropertyDescriptors() in class java.beans.SimpleBeanInfo


Go to previous page Go to next page
Oracle
Copyright © 1996, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback