|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
public interface TableCellRenderer
ÀÌ ÀÎÅÍÆäÀ̽º´Â JTable
¼¿ÀÇ ·»´õ¸µÀÌ µÉ °¡´É¼ºÀÌ ÀÖ´Â °´Ã¼°¡ ¿ä±¸ÇÏ´Â ¸Þ¼µå¸¦ Á¤ÀÇÇÕ´Ï´Ù.
| ¸Þ¼µå °³¿ä | |
|---|---|
Component |
getTableCellRendererComponent (JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
¼¿À» ·»´õ¸µ Çϴµ¥ »ç¿ëµÇ´Â ÄÄÆÛ³ÍÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
Component getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
table - ·»´õ¸µ Çϱâ À§Çؼ ·»´õ¸µÀ» ¿ä±¸ÇÏ´Â JTable. nullµµ °¡´Évalue - ·»´õ¸µ µÇ´Â ¼¿ÀÇ °ª. °ªÀ» ÇØ¼® ¹× ·»´õ¸µ ÇÏ´Â ¹æ¹ýÀº ƯÁ¤ÀÇ ·»´õ¸µ¿¡ µû¶ó¼ ´Ù¸£´Ù. ¿¹¸¦ µé¾î, value°¡ ij¸¯ÅÍ ¶óÀÎ trueÀÎ °æ¿ì, ±×°ÍÀº ij¸¯ÅÍ ¶óÀÎÀ¸·Î¼ ·»´õ¸µ µÇ´ÂÁö, ¶Ç´Â üũµÇ°í Àִ üũ ¹Ú½º·Î¼ ·»´õ¸µ µÈ´Ù. nullÀº À¯È¿ÇÑ °ªisSelected - ¼¿ÀÌ ÇÏÀ̶óÀÌÆ®·Î ·»´õ¸µ µÇ°í ÀÖ´Â °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â falsehasFocus - trueÀÎ °æ¿ì, ¼¿À» ÀûÀýÈ÷ ·»´õ¸µ ÇÑ´Ù. ¿¹¸¦ µé¾î
ƯÁ¤ÀÇ º¸´õ¸¦ ¼¿¿¡ ¹èÄ¡ÇØ, ¼¿ÀÌ ÆíÁý °¡´ÉÇÑ °æ¿ì´Â ÆíÁýÀ» ³ªÅ¸³»´Â »öÀ¸·Î ·»´õ¸µ ÇÏ´Ârow - ·»´õ¸µ µÇ´Â ¼¿ÀÇ Çà À妽º. Çì´õ°¡ ·»´õ¸µ µÇ´Â °æ¿ì, row°ªÀº -1column - ·»´õ¸µ µÇ´Â ¼¿ÀÇ ¿À妽º
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.