|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
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 ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
¸Þ¼ÒµåÀÇ »ó¼¼ |
public TreeNode getChildAt(int childIndex)
childIndex
¿¡ ÀÖ´Â ¾ÆÀÌ TreeNode
¸¦ µ¹·ÁÁÝ´Ï´Ù.
public int getChildCount()
TreeNode
ÀÇ ¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù.
public TreeNode getParent()
TreeNode
¸¦ µ¹·ÁÁÝ´Ï´Ù.
public int getIndex(TreeNode node)
node
ÀÇ À妽º¸¦ µ¹·ÁÁÝ´Ï´Ù. ¸®½Ã¹ö°¡ node
¸¦ ÀúÀåÇÏÁö ¾Ê´Â °æ¿ì´Â -1 ÀÌ µ¹·ÁÁÖ¾îÁý´Ï´Ù.
public boolean getAllowsChildren()
public boolean isLeaf()
public Enumeration children()
Enumeration
·Î µ¹·ÁÁÝ´Ï´Ù.
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
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.