JavaTM Platform
Standard Ed. 6

javax.swing.tree
인터페이스 TreeNode

기존의 서브 인터페이스의 일람:
MutableTreeNode
기존의 구현 클래스의 일람:
AbstractDocument.AbstractElement , AbstractDocument.BranchElement , AbstractDocument.LeafElement , DefaultMutableTreeNode , DefaultStyledDocument.SectionElement , HTMLDocument.BlockElement , HTMLDocument.RunElement , JTree.DynamicUtilTreeNode


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 를 돌려줍니다.
 

메소드의 상세

getChildAt

TreeNode  getChildAt(int childIndex)
인덱스 childIndex 에 있는 아이 TreeNode 를 돌려줍니다.


getChildCount

int getChildCount()
TreeNode 의 리시버가 포함하는 아이의 수를 돌려줍니다.


getParent

TreeNode  getParent()
리시버의 친 TreeNode 를 돌려줍니다.


getIndex

int getIndex(TreeNode  node)
리시버의 아이중에서 node 의 인덱스를 돌려줍니다. 리시버가 node 를 포함하지 않는 경우는,-1 이 돌려주어집니다.


getAllowsChildren

boolean getAllowsChildren()
리시버가 아이를 허가하는 경우는 true 를 돌려줍니다.


isLeaf

boolean isLeaf()
리시버가 잎인 경우는 true 를 돌려줍니다.


children

Enumeration  children()
리시버의 아이를 Enumeration 로서 돌려줍니다.


JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.