|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproper.xml.Node
public abstract class Node
This class represents an abstract XML node, ancestor to Comment and Element.
Constructor Summary | |
---|---|
Node()
initializes an empty comment with no parent |
|
Node(Node parent)
initializes an empty comment with the given parent |
Method Summary | |
---|---|
abstract java.util.Enumeration |
children()
Returns the children of the receiver as an Enumeration. |
abstract boolean |
getAllowsChildren()
Returns true if the receiver allows children. |
abstract javax.swing.tree.TreeNode |
getChildAt(int childIndex)
Returns the child TreeNode at index childIndex. |
abstract int |
getChildCount()
Returns the number of children TreeNodes the receiver contains. |
int |
getDepth()
returns the depth of this element in the tree |
int |
getIndention()
returns the current indention |
abstract int |
getIndex(javax.swing.tree.TreeNode node)
Returns the index of node in the receivers children. |
javax.swing.tree.TreeNode |
getParent()
returns the parent of this element |
javax.swing.tree.TreeNode |
getRoot()
returns the root of this node |
abstract void |
insert(javax.swing.tree.MutableTreeNode child,
int index)
Adds child to the receiver at index. |
boolean |
isContainer()
whether it is just a container or a real XML tag |
abstract boolean |
isLeaf()
Returns true if the receiver is a leaf. |
abstract void |
remove(int index)
Removes the child at index from the receiver. |
abstract void |
remove(javax.swing.tree.MutableTreeNode node)
Removes node from the receiver. |
void |
removeFromParent()
Removes the receiver from its parent. |
void |
setIndention(int indention)
sets the indention of this element and all children (recursively) |
void |
setIsContainer(boolean container)
whether this Element is just a container or a real XML tag |
void |
setParent(javax.swing.tree.MutableTreeNode newParent)
sets the new parent. |
void |
setUserObject(java.lang.Object object)
Resets the user object of the receiver to object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Node()
public Node(Node parent)
Method Detail |
---|
public javax.swing.tree.TreeNode getRoot()
public abstract java.util.Enumeration children()
children
in interface javax.swing.tree.TreeNode
public abstract boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
public abstract javax.swing.tree.TreeNode getChildAt(int childIndex)
getChildAt
in interface javax.swing.tree.TreeNode
public abstract int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
public abstract int getIndex(javax.swing.tree.TreeNode node)
getIndex
in interface javax.swing.tree.TreeNode
public javax.swing.tree.TreeNode getParent()
getParent
in interface javax.swing.tree.TreeNode
public abstract boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
public abstract void insert(javax.swing.tree.MutableTreeNode child, int index)
insert
in interface javax.swing.tree.MutableTreeNode
public abstract void remove(int index)
remove
in interface javax.swing.tree.MutableTreeNode
public abstract void remove(javax.swing.tree.MutableTreeNode node)
remove
in interface javax.swing.tree.MutableTreeNode
public void removeFromParent()
removeFromParent
in interface javax.swing.tree.MutableTreeNode
public void setParent(javax.swing.tree.MutableTreeNode newParent)
setParent
in interface javax.swing.tree.MutableTreeNode
public void setUserObject(java.lang.Object object)
setUserObject
in interface javax.swing.tree.MutableTreeNode
public int getDepth()
public void setIndention(int indention)
public int getIndention()
public void setIsContainer(boolean container)
public boolean isContainer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |