JavaTM 2 Platform
Standard Ed. 5.0

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

¸ðµç ½´ÆÛ ÀÎÅÍÆäÀ̽º:
CellEditor
¾Ë·ÁÁø ±¸Çö Ŭ·¡½º ¸ñ·Ï:
DefaultCellEditor

public interface TableCellEditor
extends CellEditor

±¸ÇöÇÒ ÇÊ¿ä°¡ ÀÖ´Â JListBox, JComboBox, JTree, ¶Ç´Â JTable ¶ó°í ÇÑ, ÄÄÆÛ³ÍÆ®ÀÇ °ªÀÇ ¿¡µðÅÍ°¡ µÉ °¡´É¼ºÀÌ ÀÖ´Â °´Ã¼ÀÇ ¸Þ¼­µå¸¦ Á¤ÀÇÇÕ´Ï´Ù.


¸Þ¼­µå °³¿ä
 Component getTableCellEditorComponent (JTable  table, Object  value, boolean isSelected, int row, int column)
          ¿¡µðÅÍ¿¡ ÃʱâÀÇ value¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 
ÀÎÅÍÆäÀ̽º javax.swing. CellEditor ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
addCellEditorListener, cancelCellEditing, getCellEditorValue, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 

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

getTableCellEditorComponent

Component  getTableCellEditorComponent(JTable  table,
                                      Object  value,
                                      boolean isSelected,
                                      int row,
                                      int column)
¿¡µðÅÍ¿¡ ÃʱâÀÇ value¸¦ ¼³Á¤ÇÕ´Ï´Ù. ÀÌ°Í¿¡ ÀÇÇØ ¿¡µðÅÍ·Î stopEditing°¡ ºÒ·Á°¡ ±× ¶§¿¡ ¿¡µðÅÍ°¡ ÆíÁýÁßÀÇ °æ¿ì´Â ÆíÁýµÈ °ªÀÌ ÀϺΠ¼Ò½ÇÇÏ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.

Ŭ¶óÀ̾ðÆ®ÀÇ Component °èÃþ¿¡ Ãß°¡ÇÒ ÇÊ¿ä°¡ ÀÖ´Â ÄÄÆÛ³ÍÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÀÌ ÄÄÆÛ³ÍÆ®°¡ Ŭ¶óÀ̾ðÆ®ÀÇ °èÃþ¿¡ Â¥³Ö¾îÁö¸é, »ç¿ëÀÚ ÀÔ·ÂÀ» ·»´õ¸µ ¹× ¼ö½ÅÇÒ ¼ö ÀÖ½À´Ï´Ù.

ÆĶó¹ÌÅÍ:
table - ¿¡µðÅÍ¿¡ ÆíÁýÀ» ¿ä±¸ÇÏ´Â JTable. nullµµ °¡´É
value - ÆíÁýµÇ´Â ¼¿ÀÇ °ª. °ªÀ» Çؼ® ¹× ·»´õ¸µ ÇÏ´Â ¹æ¹ýÀº ƯÁ¤ÀÇ ¿¡µðÅÍ¿¡ µû¶ó¼­ ´Ù¸£´Ù. ¿¹¸¦ µé¾î °ªÀÌ Ä³¸¯ÅÍ ¶óÀÎ trueÀÎ °æ¿ì, ±×°ÍÀº ij¸¯ÅÍ ¶óÀÎÀ¸·Î¼­ ·»´õ¸µ µÇ´ÂÁö, ¶Ç´Â üũµÇ°í Àִ üũ ¹Ú½º·Î¼­ ·»´õ¸µ µÈ´Ù. nullÀº À¯È¿ÇÑ °ª
isSelected - ¼¿ÀÌ ÇÏÀ̶óÀÌÆ®·Î ·»´õ¸µ µÇ°í ÀÖ´Â °æ¿ì´Â true
row - ÆíÁýµÇ´Â ¼¿ÀÇ Çà
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 µµ ÂüÁ¶ÇϽʽÿÀ.