JavaTM 2 Platform
Standard Ed. 5.0

javax.swing.table
ÀÎÅÍÆäÀ̽º TableCellRenderer

±âÁ¸ÀÇ ±¸Çö Ŭ·¡½ºÀÇ À϶÷:
DefaultTableCellRenderer, DefaultTableCellRenderer.UIResource

public interface TableCellRenderer

ÀÌ ÀÎÅÍÆäÀ̽º´Â JTable ¼¿ÀÇ ·»´õ¸µÀÌ µÉ °¡´É¼ºÀÌ ÀÖ´Â ¿ÀºêÁ§Æ®°¡ ¿ä±¸ÇÏ´Â ¸Þ¼­µå¸¦ Á¤ÀÇÇÕ´Ï´Ù.


¸Þ¼­µå °³¿ä
 Component getTableCellRendererComponent (JTable  table, Object  value, boolean isSelected, boolean hasFocus, int row, int column)
          ¼¿À» ·»´õ¸µ Çϴµ¥ »ç¿ëµÇ´Â ÄÄÆÛ³ÍÆ®¸¦ µ¹·ÁÁÝ´Ï´Ù.
 

¸Þ¼­µåÀÇ »ó¼¼

getTableCellRendererComponent

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, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
hasFocus - true °æ¿ì, ¼¿À» ÀûÀýÈ÷ ·»´õ¸µ ÇÑ´Ù. ¿¹¸¦ µé¾î, ƯÁ¤ÀÇ º¸´õ¸¦ ¼¿¿¡ ¹èÄ¡ÇØ, ¼¿ÀÌ ÆíÁý °¡´ÉÇÑ °æ¿ì´Â ÆíÁýÀ» ³ªÅ¸³»´Â »öÀ¸·Î ·»´õ¸µ ÇÏ´Â
row - ·»´õ¸µ µÇ´Â ¼¿ÀÇ Çà À妽º. Çì´õ°¡ ·»´õ¸µ µÇ´Â °æ¿ì,row °ªÀº -1
column - ·»´õ¸µ µÇ´Â ¼¿ÀÇ ¿­À妽º

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.