JavaTM 2 Platform
Standard Ed. 5.0

javax.swing.tree
ÀÎÅÍÆäÀ̽º TreeNode

¾Ë·ÁÁø ¼­ºê ÀÎÅÍÆäÀ̽º ¸ñ·Ï :
MutableTreeNode
¾Ë·ÁÁø ±¸Çö Ŭ·¡½º ¸ñ·Ï:
AbstractDocument.AbstractElement, AbstractDocument.BranchElement, AbstractDocument.LeafElement, DefaultMutableTreeNode, DefaultStyledDocument.SectionElement, HTMLDocument.BlockElement, HTMLDocument.RunElement, JTree.DynamicUtilTreeNode

public interface TreeNode

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¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 

¸Þ¼­µåÀÇ »ó¼¼

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 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.