|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
JTree 内のツリーノードとして使用できるオブジェクトに関する要求を定義します。
メソッドの概要 | |
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()
|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |