| 
 | JavaTM 2 Platform Std. Ed. v1.4.0 | ||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
JTree 内のツリーノードとして使用できるオブジェクトに関する要求を定義します。
ツリーノードの詳細および使用例は、「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 を返します。 | 
| メソッドの詳細 | 
public TreeNode getChildAt(int childIndex)
childIndex にある子 TreeNode を返します。
public int getChildCount()
TreeNode の数を返します。
public TreeNode getParent()
TreeNode を返します。
public int getIndex(TreeNode node)
node のインデックスを返します。レシーバが node を格納しない場合は、-1 が返されます。
public boolean getAllowsChildren()
public boolean isLeaf()
public Enumeration children()
Enumeration で返します。
| 
 | JavaTM 2 Platform Std. Ed. v1.4.0 | ||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
 Java、Java 2D、および JDBC は米国ならびにその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
 Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A.  All Rights Reserved.