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 µµ ÂüÁ¶ÇϽʽÿÀ.