JavaTM 2 Platform
Standard Ed. 5.0

javax.swing.tree
ÀÎÅÍÆäÀ̽º TreeCellEditor

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

public interface TreeCellEditor
extends CellEditor

Æ®¸®·Î ¿¡µðÅ͸¦ ¼³Á¤Çϴµ¥ ÇÊ¿äÇÑ È®Àå ±â´ÉÀ» CellEditor¿¡ Ãß°¡ÇÕ´Ï´Ù.

°ü·Ã Ç׸ñ:
JTree

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

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

getTreeCellEditorComponent

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

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

ÆĶó¹ÌÅÍ:
tree - ¿¡µðÅÍ¿¡ ÆíÁýÀ» ¿ä±¸ÇÏ°í ÀÖ´Â JTree. ÀÌ ÆĶó¹ÌÅÍ´Â nullµµ °¡´É
value - ÆíÁýµÇ´Â ¼¿Ä¡
isSelected - ¼¿ÀÌ ·»´õ¸µÀÌ µÇ¾î ¼±Åúΰ¡ ÇÏÀ̶óÀÌÆ® µÇ°í ÀÖ´Â °æ¿ì´Â true
expanded - ³ëµå°¡ Àü°³µÇ°í ÀÖ´Â °æ¿ì´Â true
leaf - ³ëµå°¡ ÀÙ³ëµåÀÇ °æ¿ì´Â true
row - ÆíÁýÁßÀÇ ³ëµåÀÇ Çà À妽º
¹Ýȯ°ª:
ÆíÁýÀ» À§ÇÑ ÄÄÆÛ³ÍÆ®

JavaTM 2 Platform
Standard Ed. 5.0

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