All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xg.xg_Document

java.lang.Object
   |
   +----com.sun.java.swing.tree.DefaultMutableTreeNode
           |
           +----xg.xg_Node
                   |
                   +----xg.xg_Document

public class xg_Document
extends xg_Node
An XML document.


Constructor Index

 o xg_Document()
Construct a document with no name.
 o xg_Document(String)
Construct a document with a name.

Method Index

 o getDocument()
Get the swing.text.Document associated with this node.
 o getRootElement()
Get the root element of this document.
 o getSummaryString()
Get a summary descriptive string (intended for display in the tree view).
 o getType()
Get the type of this node.
 o reset()
Clear out the contents of this document.
 o setDocument(Document)
Set the swing.text.Document associated with this node.
 o toString()
Return a string representation of the document (intended for use as debug output).

Constructors

 o xg_Document
 public xg_Document()
Construct a document with no name.

 o xg_Document
 public xg_Document(String InputNodeName)
Construct a document with a name.

Parameters:
InputNodeName - The name of the document

Methods

 o reset
 public void reset()
Clear out the contents of this document.

Overrides:
reset in class xg_Node
 o setDocument
 public void setDocument(Document InputDocument)
Set the swing.text.Document associated with this node.

Parameters:
InputDocument - The swing.text.Document to which this node belongs
 o getType
 public int getType()
Get the type of this node.

Returns:
The type of this node
Overrides:
getType in class xg_Node
 o getRootElement
 public xg_Element getRootElement()
Get the root element of this document.

Returns:
The root element of this document
 o getSummaryString
 public String getSummaryString()
Get a summary descriptive string (intended for display in the tree view).

Returns:
A description suitable for display in the tree view
Overrides:
getSummaryString in class xg_Node
 o toString
 public String toString()
Return a string representation of the document (intended for use as debug output).

Returns:
String representing the document name.
Overrides:
toString in class xg_Node
 o getDocument
 public Document getDocument()
Get the swing.text.Document associated with this node.

Returns:
The swing.text.Document to which this node belongs
Overrides:
getDocument in class xg_Node

All Packages  Class Hierarchy  This Package  Previous  Next  Index