|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproper.xml.Node
proper.xml.Comment
public class Comment
This class represents an XML comment.
Constructor Summary | |
---|---|
Comment()
initializes an empty comment with no parent |
|
Comment(Node parent)
initializes an empty comment with the given parent |
|
Comment(Node parent,
java.lang.String content)
initializes an comment |
|
Comment(java.lang.String content)
initializes an comment with no parent and this content |
Method Summary | |
---|---|
java.util.Enumeration |
children()
Returns the children of the receiver as an Enumeration. |
boolean |
getAllowsChildren()
Returns true if the receiver allows children. |
javax.swing.tree.TreeNode |
getChildAt(int childIndex)
Returns the child TreeNode at index childIndex. |
int |
getChildCount()
Returns the number of children TreeNodes the receiver contains. |
java.lang.String |
getContent()
returns the content of the comment |
int |
getIndex(javax.swing.tree.TreeNode node)
Returns the index of node in the receivers children. |
void |
insert(javax.swing.tree.MutableTreeNode child,
int index)
Adds child to the receiver at index. |
boolean |
isLeaf()
Returns true if the receiver is a leaf. |
void |
remove(int index)
Removes the child at index from the receiver. |
void |
remove(javax.swing.tree.MutableTreeNode node)
Removes node from the receiver. |
void |
setContent(java.lang.String content)
sets the content of the comment |
java.lang.String |
toString()
the comment as XML string |
Methods inherited from class proper.xml.Node |
---|
getDepth, getIndention, getParent, getRoot, isContainer, removeFromParent, setIndention, setIsContainer, setParent, setUserObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Comment()
public Comment(Node parent)
public Comment(java.lang.String content)
public Comment(Node parent, java.lang.String content)
Method Detail |
---|
public void setContent(java.lang.String content)
public java.lang.String getContent()
public java.util.Enumeration children()
children
in interface javax.swing.tree.TreeNode
children
in class Node
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
getAllowsChildren
in class Node
public javax.swing.tree.TreeNode getChildAt(int childIndex)
getChildAt
in interface javax.swing.tree.TreeNode
getChildAt
in class Node
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
getChildCount
in class Node
public int getIndex(javax.swing.tree.TreeNode node)
getIndex
in interface javax.swing.tree.TreeNode
getIndex
in class Node
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
isLeaf
in class Node
public void insert(javax.swing.tree.MutableTreeNode child, int index)
insert
in interface javax.swing.tree.MutableTreeNode
insert
in class Node
public void remove(int index)
remove
in interface javax.swing.tree.MutableTreeNode
remove
in class Node
public void remove(javax.swing.tree.MutableTreeNode node)
remove
in interface javax.swing.tree.MutableTreeNode
remove
in class Node
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |