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.
-
xg_Document()
- Construct a document with no name.
-
xg_Document(String)
- Construct a document with a name.
-
getDocument()
- Get the swing.text.Document associated with this node.
-
getRootElement()
- Get the root element of this document.
-
getSummaryString()
- Get a summary descriptive string (intended for display in the tree view).
-
getType()
- Get the type of this node.
-
reset()
- Clear out the contents of this document.
-
setDocument(Document)
- Set the swing.text.Document associated with this node.
-
toString()
- Return a string representation of the document (intended for use as debug
output).
xg_Document
public xg_Document()
- Construct a document with no name.
xg_Document
public xg_Document(String InputNodeName)
- Construct a document with a name.
- Parameters:
- InputNodeName - The name of the document
reset
public void reset()
- Clear out the contents of this document.
- Overrides:
- reset in class xg_Node
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
getType
public int getType()
- Get the type of this node.
- Returns:
- The type of this node
- Overrides:
- getType in class xg_Node
getRootElement
public xg_Element getRootElement()
- Get the root element of this document.
- Returns:
- The root element of this document
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
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
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