public interface TreeNode
重写的TreeNode equals通常需要重写hashCode以及实现。参考TreeModel更多信息。对于采用树形节点的更多信息和示例,看到在java教程How to Use Tree Nodes。
| Modifier and Type | Method and Description |
|---|---|
Enumeration |
children()
作为一个
Enumeration返回接收的孩子。
|
boolean |
getAllowsChildren()
如果接收器允许孩子返回真的。
|
TreeNode |
getChildAt(int childIndex)
返回指数
childIndex孩子
TreeNode。
|
int |
getChildCount()
返回的孩子
TreeNodes接收机数量包含。
|
int |
getIndex(TreeNode node)
返回
node指数在接收机的孩子。
|
TreeNode |
getParent()
返回父
TreeNode接收机。
|
boolean |
isLeaf()
如果接收器是一个叶子,则返回真。
|
TreeNode getChildAt(int childIndex)
childIndex孩子
TreeNode。
int getChildCount()
TreeNodes接收机数量包含。
TreeNode getParent()
TreeNode接收机。
int getIndex(TreeNode node)
node指数在接收机的孩子。如果接收者没有包含
node,1将返回。
boolean getAllowsChildren()
boolean isLeaf()
Enumeration children()
Enumeration返回接收的孩子。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.