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()
返回的孩子
TreeNode s接收机数量包含。
|
int |
getIndex(TreeNode node)
返回
node 指数在接收机的孩子。
|
TreeNode |
getParent()
返回父
TreeNode 接收机。
|
boolean |
isLeaf()
如果接收器是一个叶子,则返回真。
|
TreeNode getChildAt(int childIndex)
childIndex
孩子
TreeNode
。
int getChildCount()
TreeNode
s接收机数量包含。
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.