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 µµ ÂüÁ¶ÇϽʽÿÀ.