- 
- 既知のすべてのサブインタフェース:
- MutableTreeNode
 - 既知のすべての実装クラス:
- AbstractDocument.AbstractElement,- AbstractDocument.BranchElement,- AbstractDocument.LeafElement,- DefaultMutableTreeNode,- DefaultStyledDocument.SectionElement,- HTMLDocument.BlockElement,- HTMLDocument.RunElement,- JTree.DynamicUtilTreeNode
 
 public interface TreeNodeJTree内のツリー・ノードとして使用できるオブジェクトに関する要求を定義します。equalsをオーバーライドするTreeNodeの実装であり、通常、hashCodeもオーバーライドする必要があります。 詳細は、TreeModelを参照してください。 ツリー・ノードの詳細および使用例は、The Java TutorialのHow to Use Tree Nodesを参照してください。
- 
- 
メソッドのサマリー修飾子と型 メソッド 説明 Enumeration<? extends TreeNode>children()レシーバの子をEnumerationとして返します。booleangetAllowsChildren()レシーバが子を許可する場合はtrueを返します。TreeNodegetChildAt(int childIndex)インデックスchildIndexにある子TreeNodeを返します。intgetChildCount()TreeNodeのレシーバが格納する子の数を返します。intgetIndex(TreeNode node)レシーバの子の中でnodeのインデックスを返します。TreeNodegetParent()レシーバの親TreeNodeを返します。booleanisLeaf()レシーバが葉である場合はtrueを返します。
 
- 
- 
- 
メソッドの詳細- 
getChildAtTreeNode getChildAt(int childIndex) インデックスchildIndexにある子TreeNodeを返します。- パラメータ:
- childIndex- 子のインデックス
- 戻り値:
- 指定されたインデックスの子ノード
 
 - 
getChildCountint getChildCount() TreeNodeのレシーバが格納する子の数を返します。- 戻り値:
- レシーバが含む子の数
 
 - 
getParentTreeNode getParent() レシーバの親TreeNodeを返します。- 戻り値:
- レシーバの親
 
 - 
getIndexint getIndex(TreeNode node) レシーバの子の中でnodeのインデックスを返します。 レシーバがnodeを格納しない場合は、-1が返されます。- パラメータ:
- node- ルークするノード
- 戻り値:
- 指定されたノードのインデックス
 
 - 
getAllowsChildrenboolean getAllowsChildren() レシーバが子を許可する場合はtrueを返します。- 戻り値:
- レシーバが子を許可するかどうか
 
 - 
isLeafboolean isLeaf() レシーバが葉である場合はtrueを返します。- 戻り値:
- レシーバがリーフかどうか
 
 - 
childrenEnumeration<? extends TreeNode> children() レシーバの子をEnumerationとして返します。- 戻り値:
- レシーバの子(Enumeration)
 
 
- 
 
-