|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
public interface TableCellEditor
±¸ÇöÇÒ Çʿ䰡 ÀÖ´Â 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 |
¸Þ¼µåÀÇ »ó¼¼ |
---|
Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
value
¸¦ ¼³Á¤ÇÕ´Ï´Ù. À̰Ϳ¡ ÀÇÇØ ¿¡µðÅÍ·Î stopEditing
°¡ ºÒ·Á°¡
±× ¶§¿¡ ¿¡µðÅͰ¡ ÆíÁýÁßÀÇ °æ¿ì´Â ÆíÁýµÈ °ªÀÌ ÀϺΠ¼Ò½ÇÇÏ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.
Ŭ¶óÀ̾ðÆ®ÀÇ Component
°èÃþ¿¡ Ãß°¡ÇÒ Çʿ䰡 ÀÖ´Â ÄÄÆÛ³ÍÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÀÌ ÄÄÆÛ³ÍÆ®°¡ Ŭ¶óÀ̾ðÆ®ÀÇ °èÃþ¿¡ Â¥³Ö¾îÁö¸é, »ç¿ëÀÚ
ÀÔ·ÂÀ» ·»´õ¸µ ¹× ¼ö½ÅÇÒ ¼ö ÀÖ½À´Ï´Ù.
table
- ¿¡µðÅÍ¿¡ ÆíÁýÀ» ¿ä±¸ÇÏ´Â JTable
. null
µµ °¡´Évalue
- ÆíÁýµÇ´Â ¼¿ÀÇ °ª. °ªÀ» ÇØ¼® ¹× ·»´õ¸µ ÇÏ´Â ¹æ¹ýÀº ƯÁ¤ÀÇ ¿¡µðÅÍ¿¡ µû¶ó¼ ´Ù¸£´Ù. ¿¹¸¦ µé¾î
°ªÀÌ Ä³¸¯ÅÍ ¶óÀÎ trueÀÎ °æ¿ì, ±×°ÍÀº ij¸¯ÅÍ ¶óÀÎÀ¸·Î¼ ·»´õ¸µ µÇ´ÂÁö, ¶Ç´Â üũµÇ°í Àִ üũ ¹Ú½º·Î¼ ·»´õ¸µ µÈ´Ù. null
Àº À¯È¿ÇÑ °ªisSelected
- ¼¿ÀÌ ÇÏÀ̶óÀÌÆ®·Î ·»´õ¸µ µÇ°í ÀÖ´Â °æ¿ì´Â truerow
- ÆíÁýµÇ´Â ¼¿ÀÇ Çàcolumn
- ÆíÁýµÇ´Â ¼¿ÀÇ ¿
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.