|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
public interface TreeNode
JTree 내의 트리 노드로서 사용할 수 있는 객체에 관한 요구를 정의합니다.
equals
를 오버라이드(override) 하는 TreeNode
의 구현이며, 일반적으로,hashCode
도 오버라이드(override) 할 필요가 있습니다. 상세한 것에 대하여는,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 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.