javax > javax.swing > javax.swing.tree > javax.swing.tree.defaultmutabletreenode >

Class: javax.swing.tree.DefaultMutableTreeNode
    java.lang.Object
       javax.swing.tree.DefaultMutableTreeNode


public class DefaultMutableTreeNode extends Object implements Cloneable, MutableTreeNode, Serializable


FIELDS:
public static final Enumeration EMPTY_ENUMERATION
protected boolean allowsChildren
protected Vector children
protected MutableTreeNode parent
protected Object userObject

CONSTRUCTORS:
public DefaultMutableTreeNode()

public DefaultMutableTreeNode(Object userObject)

public DefaultMutableTreeNode(Object userObject, boolean allowsChildren)


METHODS:
public void add(MutableTreeNode newChild)
Throws: IllegalArgumentException
Throws: IllegalStateException

public Enumeration breadthFirstEnumeration()

public Enumeration children()

public Object clone()
Overrides: Object

public Enumeration depthFirstEnumeration()

public boolean getAllowsChildren()

public TreeNode getChildAfter(TreeNode aChild)
Throws: IllegalArgumentException

public TreeNode getChildAt(int index)
Throws: ArrayIndexOutOfBoundsException

public TreeNode getChildBefore(TreeNode aChild)
Throws: IllegalArgumentException

public int getChildCount()

public int getDepth()

public TreeNode getFirstChild()
Throws: NoSuchElementException

public DefaultMutableTreeNode getFirstLeaf()

public int getIndex(TreeNode aChild)
Throws: IllegalArgumentException

public TreeNode getLastChild()
Throws: NoSuchElementException

public DefaultMutableTreeNode getLastLeaf()

public int getLeafCount()

public int getLevel()

public DefaultMutableTreeNode getNextLeaf()

public DefaultMutableTreeNode getNextNode()

public DefaultMutableTreeNode getNextSibling()

public TreeNode getParent()

public TreeNode[] getPath()

protected TreeNode[] getPathToRoot(TreeNode aNode, int depth)

public DefaultMutableTreeNode getPreviousLeaf()

public DefaultMutableTreeNode getPreviousNode()

public DefaultMutableTreeNode getPreviousSibling()

public TreeNode getRoot()

public TreeNode getSharedAncestor(DefaultMutableTreeNode aNode)

public int getSiblingCount()

public Object getUserObject()

public Object[] getUserObjectPath()

public void insert(MutableTreeNode newChild, int childIndex)
Throws: ArrayIndexOutOfBoundsException
Throws: IllegalArgumentException
Throws: IllegalStateException

public boolean isLeaf()

public boolean isNodeAncestor(TreeNode anotherNode)

public boolean isNodeChild(TreeNode aNode)

public boolean isNodeDescendant(DefaultMutableTreeNode anotherNode)

public boolean isNodeRelated(DefaultMutableTreeNode aNode)

public boolean isNodeSibling(TreeNode anotherNode)

public boolean isRoot()

public Enumeration pathFromAncestorEnumeration(TreeNode ancestor)
Throws: IllegalArgumentException

public Enumeration postorderEnumeration()

public Enumeration preorderEnumeration()

public void remove(int childIndex)
Throws: ArrayIndexOutOfBoundsException

public void remove(MutableTreeNode aChild)
Throws: IllegalArgumentException

public void removeAllChildren()

public void removeFromParent()

public void setAllowsChildren(boolean allows)

public void setParent(MutableTreeNode newParent)

public void setUserObject(Object userObject)

public String toString()
Overrides: Object


INHERITED METHODS:
getClass(), hashCode(), equals(java.lang.Object), clone(), toString(), notify(), notifyAll(), wait(long), wait(long, int), wait(), finalize(),

SUBCLASSES:
JTree.DynamicUtilTreeNode,





Yazilar kaynak gosterilmeden kopyalanamaz © www.kodcu.net