|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
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¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
TreeNode getChildAt(int childIndex)
childIndex¿¡ ÀÖ´ÂÀÚ½Ä
TreeNode¸¦ ¸®ÅÏÇÕ´Ï´Ù.
int getChildCount()
TreeNode
¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù.
TreeNode getParent()
TreeNode¸¦ ¸®ÅÏÇÕ´Ï´Ù.
int getIndex(TreeNode node)
node
À妽º¸¦ ¸®ÅÏÇÕ´Ï´Ù. ¸®½Ã¹ö°¡ node¸¦ Æ÷ÇÔÇÏÁö ¾Ê´Â °æ¿ì´Â -1 ÀÌ ¸®Åϵ˴ϴÙ
.
boolean getAllowsChildren()
boolean isLeaf()
Enumeration children()
Enumeration·Î
¸®ÅÏÇÕ´Ï´Ù.
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.