JavaTM 2
Platform
Std.  Ed.  v1. 4.0

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

±âÁ¸ÀÇ ¼­ºê ÀÎÅÍÆäÀ̽ºÀÇ À϶÷:
MutableTreeNode
±âÁ¸ÀÇ ±¸Çö Ŭ·¡½ºÀÇ À϶÷:
AbstractDocument.AbstractElement , DefaultMutableTreeNode

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

public TreeNode  getChildAt(int childIndex)
À妽º childIndex ¿¡ ÀÖ´Â ¾ÆÀÌ TreeNode ¸¦ µ¹·ÁÁÝ´Ï´Ù.


getChildCount

public int getChildCount()
¸®½Ã¹ö°¡ ÀúÀåÇÏ´Â ¾ÆÀÌ TreeNode ÀÇ ¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù.


getParent

public TreeNode  getParent()
¸®½Ã¹öÀÇ Ä£ TreeNode ¸¦ µ¹·ÁÁÝ´Ï´Ù.


getIndex

public int getIndex(TreeNode  node)
¸®½Ã¹öÀÇ ¾ÆÀÌÁß¿¡¼­ node ÀÇ À妽º¸¦ µ¹·ÁÁÝ´Ï´Ù. ¸®½Ã¹ö°¡ node ¸¦ ÀúÀåÇÏÁö ¾Ê´Â °æ¿ì´Â -1 ÀÌ µ¹·ÁÁÖ¾îÁý´Ï´Ù.


getAllowsChildren

public boolean getAllowsChildren()
¸®½Ã¹ö°¡ ¾ÆÀ̸¦ Çã°¡ÇÏ´Â °æ¿ì´Â true ¸¦ µ¹·ÁÁÝ´Ï´Ù.


isLeaf

public boolean isLeaf()
¸®½Ã¹ö°¡ ÀÙÀÎ °æ¿ì´Â true ¸¦ µ¹·ÁÁÝ´Ï´Ù.


children

public Enumeration  children()
¸®½Ã¹öÀÇ ¾ÆÀ̸¦ Enumeration ·Î µ¹·ÁÁÝ´Ï´Ù.


JavaTM 2
Platform
Std.  Ed.  v1. 4.0

¹ö±×ÀÇ º¸°í¿Í ±â´ÉÀÇ ¸®Äù½ºÆ®
ÀÌ¿ÜÀÇ API ·¹ÆÛ·±½º ¹× °³¹ßÀÚ¿ë ¹®¼­¿¡ ´ëÇØ¼­´Â Java 2 SDK SE °³¹ßÀÚ¿ë ¹®¼­¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä. °³¹ßÀÚÀü¿ëÀÇ »ó¼¼ÇÑ ÇØ¼³, °³³äÀÇ °³¿ä, ¿ë¾îÀÇ Á¤ÀÇ, ¹ö±×ÀÇ È¸ÇÇÃ¥, ¹× ÄÚµå ½Ç·Ê°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.

Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ À־ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.