| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
public interface TreeNode
JTree 内のツリーノードとして使用できるオブジェクトに関する要求を定義します。
equals をオーバーライドする TreeNode の実装であり、通常、hashCode もオーバーライドする必要があります。詳細については、TreeModel を参照してください。
ツリーノードの詳細および使用例は、「The Java Tutorial」の「How to Use Trees」を参照してください。
| メソッドの概要 | |
|---|---|
|  Enumeration | children()レシーバの子を Enumerationとして返します。 | 
|  boolean | getAllowsChildren()レシーバが子を許可する場合は true を返します。 | 
|  TreeNode | getChildAt(int childIndex)インデックス childIndexにある子TreeNodeを返します。 | 
|  int | getChildCount()TreeNodeのレシーバが格納する子の数を返します。 | 
|  int | getIndex(TreeNode node)レシーバの子の中で nodeのインデックスを返します。 | 
|  TreeNode | getParent()レシーバの親 TreeNodeを返します。 | 
|  boolean | isLeaf()レシーバが葉である場合は true を返します。 | 
| メソッドの詳細 | 
|---|
TreeNode getChildAt(int childIndex)
childIndex にある子 TreeNode を返します。
int getChildCount()
TreeNode のレシーバが格納する子の数を返します。
TreeNode getParent()
TreeNode を返します。
int getIndex(TreeNode node)
node のインデックスを返します。レシーバが node を格納しない場合は、-1 が返されます。
boolean getAllowsChildren()
boolean isLeaf()
Enumeration children()
Enumeration として返します。
| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。