|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
public interface TreeCellRenderer
Æ®¸® ³ëµå¸¦ Ç¥½ÃÇÏ´Â °´Ã¼ÀÇ ¿ä°ÇÀ» Á¤ÀÇÇÕ´Ï´Ù. Ä¿½ºÅÒÀÚ½Ä ¾ÆÀÌÄÜÀ» Ç¥½ÃÇÏ´Â Æ®¸® ¼¿ ·»´õ¸µÀÇ ±¸Çö¿¹´Â ¡¸The Java Tutorial¡¹ÀÇ ¡¸How to Use Trees¡¹¸¦ ÂüÁ¶ÇϽʽÿÀ.
| ¸Þ¼µå °³¿ä | |
|---|---|
Component |
getTreeCellRendererComponent (JTree tree,
Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
ÇöÀçÀÇ Æ®¸® ¼¿ÀÇ °ªÀ» value·Î
¼³Á¤ÇÕ´Ï´Ù. |
| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
Component getTreeCellRendererComponent(JTree tree,
Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
value·Î
¼³Á¤ÇÕ´Ï´Ù. selected°¡ trueÀÎ °æ¿ì´Â ¼¿Àº ¼±Åõǰí ÀÖ´Â °ÍÀ¸·Î¼ ·»´õ¸µ µË´Ï´Ù. expanded°¡ true À̸é, ³ëµå´Â ÇöÀç Àü°³µÇ°í ÀÖ½À´Ï´Ù. leaf°¡ true À̸é, ³ëµå´Â ÀÙÀ» ³ªÅ¸³À´Ï´Ù. hasFocus°¡ true À̸é, ³ëµå¿¡ ÇöÀç Æ÷Ä¿½º°¡ ÀÖ½À´Ï´Ù. tree°¡ JTreeÀÎ °æ¿ì, ¸®½Ã¹ö´Â ¼³Á¤ÁßÀÔ´Ï´Ù. ·»´õ¸µÀÌ °ªÀ» ·»´õ¸µ Çϴµ¥ »ç¿ëÇÏ´Â Component¸¦ ¸®ÅÏÇÕ´Ï´Ù.
Component
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.