JavaTM 2 Platform
Standard Ed. 5.0

javax.swing.tree
Ŭ·¡½º DefaultTreeSelectionModel

java.lang.Object 
  »óÀ§¸¦ È®Àå javax.swing.tree.DefaultTreeSelectionModel
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
Serializable, Cloneable, TreeSelectionModel
¾Ë·ÁÁø Á÷°è ¼­ºê Ŭ·¡½º:
JTree.EmptySelectionModel

public class DefaultTreeSelectionModel
extends Object
implements Cloneable, Serializable, TreeSelectionModel

TreeSelectionModel µðÆúÆ® ±¸ÇöÀÔ´Ï´Ù. ¸®½º³Ê´Â ÇàÀÌ º¯°æµÇ¾úÀ» ¶§´Â ¾Æ´Ï°Ô ¼±Åà ¹üÀ§ÀÇ Æнº°¡ º¯°æµÇ¾úÀ» ¶§¿¡ ÅëÁö¸¦ ¹Þ½À´Ï´Ù. ÇàÀÇ º¯°æÀ» ÃßÀûÇÒ ¼ö ÀÖµµ·Ï ÇÏ·Á¸é, Æ®¸®»ó¿¡¼­ Àü°³ À̺¥Æ®ÀÇ ¸®½º³Ê°¡ µÇ´Â °ÍÀ¸·Î ÇàÀÇ º¯°æÀ» ÆÇÁ¤ÇÕ´Ï´Ù.

resetRowSelection´Â ¼±ÅÃµÈ Æнº¸¦ °»½ÅÇÏ´Â ¸Þ¼­µå·ÎºÎÅÍ È£ÃâÇÕ´Ï´Ù. ¼±ÅÃÇÒ ¼ö ÀÖ´Â °ÍÀ» ÇÊÅ͸µ Çϱâ À§Çؼ­ ÀÌ·¯ÇÑ ¸Þ¼­µåÀÇ ¾î¶² °ÍÀÎÁö¸¦ »ó¼ÓÇÏ´Â °æ¿ì, ½´ÆÛ Å¬·¡½º¿¡ ¸Þ¼¼Áö¸¦ º¸³»Áö ¾ÊÀ¸¸é, ¹Ýµå½Ã resetRowSelection ¸Þ¼¼Áö¸¦ º¸³»µµ·Ï ÇÕ´Ï´Ù.

°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ­ µÈ °´Ã¼´Â ÇâÈÄÀÇ Swing ¸±¸®Áî¿Í ȣȯµÇÁö ¾ÊÀ» ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈ­ÀÇ Áö¿øÀº ´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÀüÀÇ Swing¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI¿¡ ÀûÀýÇÏ°í ÀÖ½À´Ï´Ù. JDK ¹öÀü 1.4 ÀÌÈÄ, ¸ðµç JavaBeans Àå±â°£ÀÇ ¿î¿ë Áö¿øÀº java.beans ÆÐÅ°Áö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº XMLEncoder¸¦ ÂüÁ¶ÇϽʽÿÀ.

°ü·Ã Ç׸ñ:
JTree

ÇÊµå °³¿ä
protected  SwingPropertyChangeSupport changeSupport
          ¸Þ¼¼Áö¸¦ º¸³»Áø µî·ÏÀÌ ³¡³­ ¸®½º³Ê¸¦ À§Çؼ­ »ç¿ëÇÕ´Ï´Ù.
protected  int leadIndex
          ¼±Åà ¹üÀ§ÀÇ ¸®µå ÆнºÀÇ À妽ºÀÔ´Ï´Ù.
protected  TreePath leadPath
          Ãß°¡µÈ ¸¶Áö¸· ÆнºÀÔ´Ï´Ù.
protected  int leadRow
          ¸®µåÇàÀÔ´Ï´Ù.
protected  EventListenerList listenerList
          À̺¥Æ® ¸®½º³Ê ¸®½ºÆ®ÀÔ´Ï´Ù.
protected  DefaultListSelectionModel listSelectionModel
          ¸®½ºÆ® ¼±Åà ¸ðµ¨ÀÇ °»½ÅÀ» ó¸®ÇÕ´Ï´Ù.
protected  RowMapper rowMapper
          ÁöÁ¤ÀÇ Æнº¿¡ ÇàÀ» Á¦°øÇÕ´Ï´Ù.
protected  TreePath [] selection
          ÇöÀç ¼±Åõǰí ÀÖ´Â ÆнºÀÔ´Ï´Ù.
static String SELECTION_MODE_PROPERTY
          selectionMode ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
protected  int selectionMode
          ¼±Åà ¸ðµå´Â SINGLE_TREE_SELECTION, CONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION ¾î¶² °ÍÀΰ¡°¡ µË´Ï´Ù.
 
ÀÎÅÍÆäÀ̽º javax.swing.tree. TreeSelectionModel ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå
CONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION, SINGLE_TREE_SELECTION
 
»ý¼ºÀÚ °³¿ä
DefaultTreeSelectionModel ()
          ºñ¾îÀÖ´Â »õ·Î¿î DefaultTreeSelectionMode ÀνºÅϽº¸¦ »ý¼ºÇÕ´Ï´Ù.
 
¸Þ¼­µå °³¿ä
 void addPropertyChangeListener (PropertyChangeListener  listener)
          PropertyChangeListener¸¦ ¸®½º³Ê ¸®½ºÆ®¿¡ Ãß°¡ÇÕ´Ï´Ù.
 void addSelectionPath (TreePath  path)
          ÇöÀçÀÇ ¼±Åà ¹üÀ§¿¡ Æнº¸¦ Ãß°¡ÇÕ´Ï´Ù.
 void addSelectionPaths (TreePath [] paths)
          ÇöÀçÀÇ ¼±Åà ¹üÀ§¿¡ Æнº¸¦ Ãß°¡ÇÕ´Ï´Ù.
 void addTreeSelectionListener (TreeSelectionListener  x)
          ¼±ÅÃµÈ TreePath ¼³Á¤ÀÌ º¯°æµÉ ¶§¸¶´Ù ÅëÁö¸¦ ¹Þ´Â ¸®½º³ÊÀÇ ¸®½ºÆ®¿¡ x¸¦ Ãß°¡ÇÕ´Ï´Ù.
protected  boolean arePathsContiguous (TreePath [] paths)
          Æнº°¡ ¿¬¼ÓÇÏ°í ÀÖ´ÂÁö, ÀÌ °´Ã¼¿¡ RowMapper°¡ ¾ø´Â °æ¿ì, true¸¦ ¸®ÅÏÇÕ´Ï´Ù.
protected  boolean canPathsBeAdded (TreePath [] paths)
          TreePath ƯÁ¤ÀÇ ¼³Á¤À» Ãß°¡ÇÒ ¼ö ÀÖÀ»Áö ¾î¶³Áö ÆÇÁ¤Çϱâ À§Çؼ­ »ç¿ëÇÕ´Ï´Ù.
protected  boolean canPathsBeRemoved (TreePath [] paths)
          ¸ðµ¨ÀÇ ¿¬¼Ó¼ºÀ» ºÎ¼öÁö ¾Ê°í Æнº¸¦ »èÁ¦ÇÒ ¼ö ÀÖ´Â °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 void clearSelection ()
          ÇöÀçÀÇ ¼±Åà ¹üÀ§¸¦ ºñ¿ó´Ï´Ù.
 Object clone ()
          °°Àº ¼±Åà ¹üÀ§¸¦ °¡Áö´Â ÀÌ °´Ã¼ÀÇ º¹Á¦¸¦ ¸®ÅÏÇÕ´Ï´Ù.
protected  void fireValueChanged (TreeSelectionEvent  e)
          ÀÌ °´Ã¼ÀÇ Æ®¸® ¼±Åà À̺¥Æ®ÀÇ ´ë»óÀ¸·ÎÀÇÇØ µî·ÏÇÏ°í ÀÖ´Â ¸®½º³Ê ¸ðµÎ¿¡°Ô ÅëÁöÇÕ´Ï´Ù.
 TreePath getLeadSelectionPath ()
          Ãß°¡µÈ ¸¶Áö¸· Æнº¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 int getLeadSelectionRow ()
          ¼±Åà ¹üÀ§ÀÇ ¸®µå À妽º¸¦ ¸®ÅÏÇÕ´Ï´Ù.
<T extends EventListener >
T[]
getListeners (Class <T> listenerType)
          ÀÌ ¸ðµ¨¿¡ FooListener·Î ¼­ ÇöÀç µî·ÏµÇ¾î ¸ðµç °´Ã¼ÀÇ ¹è¿­À» ¸®ÅÏÇÕ´Ï´Ù.
 int getMaxSelectionRow ()
          ¼±ÅÃÇÑ ÇöÀçÀÇ TreePath ¼³Á¤ÀÇ RowMapper ·ÎºÎÅÍ ÃëµæÇÑ ÃÖ´ë°ªÀ» ¸®ÅÏÇÕ´Ï´Ù.
 int getMinSelectionRow ()
          ¼±ÅÃÇÑ ÇöÀçÀÇ TreePath ¼³Á¤ÀÇ RowMapper ·ÎºÎÅÍ ÃëµæÇÑ ÃÖ¼Ò°ªÀ» ¸®ÅÏÇÕ´Ï´Ù.
 PropertyChangeListener [] getPropertyChangeListeners ()
          ÀÌ DefaultTreeSelectionModel¿¡ µî·ÏµÈ, ¸ðµç ÇÁ·ÎÆÛƼ º¯°æ ¸®½º³Ê·ÎºÎÅÍ ¿Ï¼ºµÇ´Â ¹è¿­À» ¸®ÅÏÇÕ´Ï´Ù.
 RowMapper getRowMapper ()
          TreePath¸¦ Çà¿¡ ¸Ê ÇÒ ¼ö ÀÖ´Â RowMapper ÀνºÅϽº¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 int getSelectionCount ()
          ¼±Åõǰí ÀÖ´Â ÆнºÀÇ ¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 int getSelectionMode ()
          ÇöÀçÀÇ ¼±Åà ¸ðµå¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 TreePath getSelectionPath ()
          ¼±Åà ¹üÀ§ÀÇ ÃÖÃÊÀÇ Æнº¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 TreePath [] getSelectionPaths ()
          ¼±Åà ¹üÀ§ÀÇ Æнº¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 int[] getSelectionRows ()
          ÇöÀç ¼±Åà ¶°³¯ ¼ö ÀÖ¾î ¸ðµç ÇàÀ» ¸®ÅÏÇÕ´Ï´Ù.
 TreeSelectionListener [] getTreeSelectionListeners ()
          ÀÌ ¸ðµ¨¿¡ µî·ÏµÈ, ¸ðµç Æ®¸® ¼±Åà ¸®½º³Ê·ÎºÎÅÍ ¿Ï¼ºµÇ´Â ¹è¿­À» ¸®ÅÏÇÕ´Ï´Ù.
protected  void insureRowContinuity ()
          ÇöÀç ¼±Åõǰí ÀÖ´Â TreePath°¡ ÇöÀçÀÇ ¼±Åà ¸ðµå·Î À¯È¿ÇÑ°¡¸¦ È®ÀÎÇÕ´Ï´Ù.
protected  void insureUniqueness ()
          ÀÌ ¸Þ¼­µå´Â ÇöÀç »ç¿ëµÇ¾î ÀÖÁö ¾ÊÀº µ¥´Ù°¡ ±× ±¸ÇöÀº Á¶ÀÛ ºÒ°¡´ÉÀÔ´Ï´Ù.
 boolean isPathSelected (TreePath  path)
          Æнº path°¡ ÇöÀçÀÇ ¼±Åà ¹üÀ§¿¡ ÀÖ´Â °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 boolean isRowSelected (int row)
          row·Î ½Äº°µÇ´Â ÇàÀÌ ¼±Åõǰí ÀÖ´Â °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 boolean isSelectionEmpty ()
          ¼±Åà ¹üÀ§°¡ ÇöÀçºñ¾îÀÖ´Â °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.
protected  void notifyPathChange (Vector <javax.swing.tree.PathPlaceHolder> changedPaths, TreePath  oldLeadSelection)
          path ³»ÀÇ º¯°æÀ» ¸®½º³Ê¿¡°Ô ÅëÁöÇÕ´Ï´Ù.
 void removePropertyChangeListener (PropertyChangeListener  listener)
          PropertyChangeListener¸¦ ¸®½º³Ê ¸®½ºÆ®·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù.
 void removeSelectionPath (TreePath  path)
          ¼±Åà ¹üÀ§·ÎºÎÅÍ Æнº¸¦ »èÁ¦ÇÕ´Ï´Ù.
 void removeSelectionPaths (TreePath [] paths)
          ¼±Åà ¹üÀ§·ÎºÎÅÍ Æнº¸¦ »èÁ¦ÇÕ´Ï´Ù.
 void removeTreeSelectionListener (TreeSelectionListener  x)
          ¼±ÅÃµÈ TreePath ¼³Á¤ÀÌ º¯°æµÉ ¶§¸¶´Ù ÅëÁö¸¦ ¹Þ´Â ¸®½º³ÊÀÇ ¸®½ºÆ®·ÎºÎÅÍ x¸¦ »èÁ¦ÇÕ´Ï´Ù.
 void resetRowSelection ()
          ÀÌ °´Ã¼ÀÇ TreePath ·ÎºÎÅÍ Çà¿¡ÀÇ ¸ÅÇÎÀ» °»½ÅÇÕ´Ï´Ù.
 void setRowMapper (RowMapper  newMapper)
          RowMapper ÀνºÅϽº¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void setSelectionMode (int mode)
          ¼±Åà ¸ðµ¨À» ¼³Á¤ÇÕ´Ï´Ù.
 void setSelectionPath (TreePath  path)
          ¼±Åà ¹üÀ§¸¦ Æнº·Î ¼³Á¤ÇÕ´Ï´Ù.
 void setSelectionPaths (TreePath [] pPaths)
          ¼±Åà ¹üÀ§¸¦ paths Æнº·Î ¼³Á¤ÇÕ´Ï´Ù.
 String toString ()
          ÀÌ °´Ã¼ÀÇ ÇÁ·ÎÆÛƼ¸¦ Ç¥½Ã ¹× ½Äº°Çϴ ij¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù.
protected  void updateLeadIndex ()
          leadIndex ÀνºÅϽº º¯¼ö¸¦ °»½ÅÇÕ´Ï´Ù.
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

ÇʵåÀÇ »ó¼¼

SELECTION_MODE_PROPERTY

public static final String  SELECTION_MODE_PROPERTY
selectionMode ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.

°ü·Ã Ç׸ñ:
Á¤¼ö Çʵ尪

changeSupport

protected SwingPropertyChangeSupport  changeSupport
¸Þ¼¼Áö¸¦ º¸³»Áø µî·ÏÀÌ ³¡³­ ¸®½º³Ê¸¦ À§Çؼ­ »ç¿ëÇÕ´Ï´Ù.


selection

protected TreePath [] selection
ÇöÀç ¼±Åõǰí ÀÖ´Â ÆнºÀÔ´Ï´Ù. ¼±Åõǰí ÀÖ´Â Æнº°¡ ¾ø´Â °æ¿ì´Â nullÀÌ µË´Ï´Ù.


listenerList

protected EventListenerList  listenerList
À̺¥Æ® ¸®½º³Ê ¸®½ºÆ®ÀÔ´Ï´Ù.


rowMapper

protected transient RowMapper  rowMapper
ÁöÁ¤ÀÇ Æнº¿¡ ÇàÀ» Á¦°øÇÕ´Ï´Ù.


listSelectionModel

protected DefaultListSelectionModel  listSelectionModel
¸®½ºÆ® ¼±Åà ¸ðµ¨ÀÇ °»½ÅÀ» ó¸®ÇÕ´Ï´Ù. RowMapper¸¦ »ç¿ëÇØ TreePath ·ÎºÎÅÍ ÀÓÀÇÀÇ Çà¿¡ ¸ÅÇÎ ÇÕ´Ï´Ù. ´ÙÀ½¿¡ ¸ÅÇÎ ¸ÕÀú °ªÀÌ ¹èÄ¡µË´Ï´Ù.


selectionMode

protected int selectionMode
¼±Åà ¸ðµå´Â SINGLE_TREE_SELECTION, CONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION ¾î¶² °ÍÀΰ¡°¡ µË´Ï´Ù.


leadPath

protected TreePath  leadPath
Ãß°¡µÈ ¸¶Áö¸· ÆнºÀÔ´Ï´Ù.


leadIndex

protected int leadIndex
¼±Åà ¹üÀ§ÀÇ ¸®µå ÆнºÀÇ À妽ºÀÔ´Ï´Ù.


leadRow

protected int leadRow
¸®µåÇàÀÔ´Ï´Ù.

»ý¼ºÀÚ »ó¼¼

DefaultTreeSelectionModel

public DefaultTreeSelectionModel()
ºñ¾îÀÖ´Â »õ·Î¿î DefaultTreeSelectionMode ÀνºÅϽº¸¦ »ý¼ºÇÕ´Ï´Ù. »ý¼ºµÈ ÀνºÅϽºÀÇ ¼±Åà ¸ðµå´Â DISCONTIGUOUS_TREE_SELECTION ÀÔ´Ï´Ù.

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

setRowMapper

public void setRowMapper(RowMapper  newMapper)
RowMapper ÀνºÅϽº¸¦ ¼³Á¤ÇÕ´Ï´Ù. ÀÌ ÀνºÅϽº¸¦ »ç¿ëÇÏ´Â °Í¿¡ÀÇÇØ ¾î´À ÇàÀÌ ¾î´À TreePath¿¡ ´ëÀÀÇÏ´ÂÁö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ setRowMapper

getRowMapper

public RowMapper  getRowMapper()
TreePath¸¦ Çà¿¡ ¸Ê ÇÒ ¼ö ÀÖ´Â RowMapper ÀνºÅϽº¸¦ ¸®ÅÏÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ getRowMapper

setSelectionMode

public void setSelectionMode(int mode)
¼±Åà ¸ðµ¨À» ¼³Á¤ÇÕ´Ï´Ù. ÀÌ ¸ðµ¨Àº SINGLE_TREE_SELECTION, CONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION 1°³ ÀÏ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. ¸ðµå°¡ Á¤ÀÇµÈ °ªÀÌ ¾Æ´Ñ °æ¿ì´Â DISCONTIGUOUS_TREE_SELECTION ¸ðµ¨À̶ó°í º¸¿©Áý´Ï´Ù.

ÇöÀçÀÇ ¼±Åà ¹üÀ§°¡ »õ·Î¿î ¸ðµå¿¡ ´ëÇؼ­ À¯È¿ÇÏÁö ¾ÊÀº °æ¿ì´Â ¼±Åà ¹üÀ§¸¦ º¯°æÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¾î ¸ðµå°¡ SINGLE_TREE_SELECTION·Î º¯°æÇßÀ» ¶§¿¡ 3°³ÀÇ TreePath°¡ ¼±ÅõǾúÀ» °æ¿ì, 1°³ÀÇ TreePath ¸¸À» ¼±ÅÃÇÒ ¼ö ÀÖ½À´Ï´Ù. ¾î´À TreePath¸¦ ¼±ÅÃÇÒ±î´Â »ç¿ëÇϴ ƯÁ¤ÀÇ ±¸Çö¿¡ ÀÇÇØ Á¤ÇØÁý´Ï´Ù.

¸ðµå¸¦ Á¤ÀǵǾî ÀÖÁö ¾ÊÀº ŸÀÔÀ¸·Î ¼³Á¤Çϸé, ¸ðµå´Â DISCONTIGUOUS_TREE_SELECTION°¡ µË´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ setSelectionMode

getSelectionMode

public int getSelectionMode()
ÇöÀçÀÇ ¼±Åà ¸ðµå¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÀÌ ¸ðµå´Â SINGLE_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION, CONTIGUOUS_TREE_SELECTION ¾î¶² °ÍÀΰ¡°¡ µË´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ getSelectionMode

setSelectionPath

public void setSelectionPath(TreePath  path)
¼±Åà ¹üÀ§¸¦ Æнº·Î ¼³Á¤ÇÕ´Ï´Ù. ÀÌ°ÍÀÌ º¯°æÀ» ³ªÅ¸³»´Â °æ¿ì´Â TreeSelectionListeners°¡ ÅëÁö¸¦ ¹Þ½À´Ï´Ù. path°¡ nullÀÎ °æ¿ì´Â clearSelectionÀ» È£ÃâÇßÀ» °æ¿ì¿Í °°°Ô µË´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ setSelectionPath
ÆĶó¹ÌÅÍ:
path - ¼±ÅÃÇÏ´Â »õ·Î¿î Æнº

setSelectionPaths

public void setSelectionPaths(TreePath [] pPaths)
¼±Åà ¹üÀ§¸¦ paths Æнº·Î ¼³Á¤ÇÕ´Ï´Ù. ÀÌ°ÍÀÌ º¯°æÀ» ³ªÅ¸³»´Â °æ¿ì´Â TreeSelectionListeners°¡ ÅëÁö¸¦ ¹Þ½À´Ï´Ù. ÀáÀçÀûÀ¸·Î paths´Â °´Ã¼¿¡ ÀÇÇØ º¸°ü À¯ÁöµË´Ï´Ù. ±× ¶§¹®¿¡ ÇÑ ¹ø °Ç³×¹ÞÀº ¹è¿­³»ÀÇ °´Ã¼ÀÇ º¯°æÀº ¿ë¼­µÇÁö ¾Ê½À´Ï´Ù.

paths°¡ nullÀÎ °æ¿ì, ÀÌ°ÍÀº clearSelectionÀ» È£ÃâÇÏ´Â °Í°ú °°Àº È¿°ú°¡ ÀÖ½À´Ï´Ù.

¸®µå Æнº´Â pPaths ¸¶Áö¸· Æнº·Î ¼³Á¤µË´Ï´Ù.

¼±Åà ¸ðµå°¡ CONTIGUOUS_TREE_SELECTIONÀÎ °æ¿ì¿¡ »õ·Î¿î ÆнºÀÇ Ãß°¡¿¡ ÀÇÇØ ¼±Åà ¹üÀ§°¡ ºÒ¿¬¼ÓÀÌ µÇ¸é, ¼±Åà ¹üÀ§´Â paths ÃÖÃÊÀÇ TreePath¿¡ ¸®¼Â µË´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ setSelectionPaths
ÆĶó¹ÌÅÍ:
pPaths - »õ·Î¿î ¼±Åà ¹üÀ§

addSelectionPath

public void addSelectionPath(TreePath  path)
ÇöÀçÀÇ ¼±Åà ¹üÀ§¿¡ Æнº¸¦ Ãß°¡ÇÕ´Ï´Ù. ÇöÀç Æнº°¡ ¼±Åà ¹üÀ§¿¡ ¾ø´Â °æ¿ì´Â TreeSelectionListeners°¡ ÅëÁö¸¦ ¹Þ½À´Ï´Ù. path°¡ nullÀÎ °æ¿ì´Â ¿µÇâÀº ¾ø½À´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ addSelectionPath
ÆĶó¹ÌÅÍ:
path - ÇöÀçÀÇ ¼±Åà ¹üÀ§¿¡ Ãß°¡ÇÏ´Â »õ·Î¿î Æнº

addSelectionPaths

public void addSelectionPaths(TreePath [] paths)
ÇöÀçÀÇ ¼±Åà ¹üÀ§¿¡ Æнº¸¦ Ãß°¡ÇÕ´Ï´Ù. ÇöÀç Æнº°¡ ¼±Åà ¹üÀ§¿¡ ¾ø´Â °æ¿ì´Â TreeSelectionListeners°¡ ÅëÁö¸¦ ¹Þ½À´Ï´Ù. path°¡ nullÀÎ °æ¿ì´Â ¿µÇâÀº ¾ø½À´Ï´Ù.

¸®µå Æнº´Â paths ¸¶Áö¸· Æнº·Î ¼³Á¤µË´Ï´Ù.

¼±Åà ¸ðµå°¡ CONTIGUOUS_TREE_SELECTIONÀÎ °æ¿ì, Æнº¸¦ »õ·Ó°Ô Ãß°¡ÇÏ¸é ¼±Åà ¹üÀ§°¡ ºÒ¿¬¼ÓÀÌ µË´Ï´Ù. Áï, ¼±Åà ¹üÀ§°¡ 2°³°¡ µË´Ï´Ù. paths TreePath°¡ ¿¬¼ÓÇÏ°í ÀÖ´Â °æ¿ì´Â ¼±Åà ¹üÀ§´Â ÀÌ·¯ÇÑ TreePath°¡ µË´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì´Â TreePath°¡ ¿¬¼ÓÇÏÁö ¾Ê±â ¶§¹®¿¡ ¼±Åà ¹üÀ§´Â paths ÃÖÃÊÀÇ TreePath°¡ µË´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ addSelectionPaths
ÆĶó¹ÌÅÍ:
paths - ÇöÀçÀÇ ¼±Åà ¹üÀ§¿¡ Ãß°¡ÇÏ´Â »õ·Î¿î Æнº

removeSelectionPath

public void removeSelectionPath(TreePath  path)
¼±Åà ¹üÀ§·ÎºÎÅÍ Æнº¸¦ »èÁ¦ÇÕ´Ï´Ù. Æнº°¡ ¼±Åà ¹üÀ§¿¡ ÀÖ´Â °æ¿ì´Â TreeSelectionListeners°¡ ÅëÁö¸¦ ¹Þ½À´Ï´Ù. path°¡ nullÀÎ °æ¿ì´Â ¿µÇâÀº ¾ø½À´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ removeSelectionPath
ÆĶó¹ÌÅÍ:
path - ¼±Åà ¹üÀ§·ÎºÎÅÍ »èÁ¦ÇÏ´Â Æнº

removeSelectionPaths

public void removeSelectionPaths(TreePath [] paths)
¼±Åà ¹üÀ§·ÎºÎÅÍ Æнº¸¦ »èÁ¦ÇÕ´Ï´Ù. Æнº°¡ ¼±Åà ¹üÀ§¿¡ ÀÖ´Â °æ¿ì´Â TreeSelectionListeners°¡ ÅëÁö¸¦ ¹Þ½À´Ï´Ù. paths°¡ nullÀÎ °æ¿ì´Â ¿µÇâÀº ¾ø½À´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ removeSelectionPaths
ÆĶó¹ÌÅÍ:
paths - ¼±Åà ¹üÀ§·ÎºÎÅÍ »èÁ¦ÇÏ´Â Æнº

getSelectionPath

public TreePath  getSelectionPath()
¼±Åà ¹üÀ§ÀÇ ÃÖÃÊÀÇ Æнº¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÇöÀç ¼±Åõǰí ÀÖ´Â Ç׸ñÀÌ 1°³ ¸¸ÀÇ °æ¿ì¿¡ Æí¸®ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ getSelectionPath

getSelectionPaths

public TreePath [] getSelectionPaths()
¼±Åà ¹üÀ§ÀÇ Æнº¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÇöÀç ¾Æ¹«°Íµµ ¼±ÅõǾî ÀÖÁö ¾ÊÀº °æ¿ì´Â null ¶Ç´Â ºñ¾îÀÖ´Â ¹è¿­À» ¸®ÅÏÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ getSelectionPaths

getSelectionCount

public int getSelectionCount()
¼±Åõǰí ÀÖ´Â ÆнºÀÇ ¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ getSelectionCount

isPathSelected

public boolean isPathSelected(TreePath  path)
Æнº path°¡ ÇöÀçÀÇ ¼±Åà ¹üÀ§¿¡ ÀÖ´Â °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ isPathSelected

isSelectionEmpty

public boolean isSelectionEmpty()
¼±Åà ¹üÀ§°¡ ÇöÀçºñ¾îÀÖ´Â °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ isSelectionEmpty

clearSelection

public void clearSelection()
ÇöÀçÀÇ ¼±Åà ¹üÀ§¸¦ ºñ¿ó´Ï´Ù. ÀÌ°ÍÀÌ ÇöÀçÀÇ ¼±Åà ¹üÀ§ÀÇ º¯°æÀ» ³ªÅ¸³»´Â °æ¿ì´Â ¼±Åà ¸®½º³Ê°¡ ÅëÁö¸¦ ¹Þ½À´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ clearSelection

addTreeSelectionListener

public void addTreeSelectionListener(TreeSelectionListener  x)
¼±ÅÃµÈ TreePath ¼³Á¤ÀÌ º¯°æµÉ ¶§¸¶´Ù ÅëÁö¸¦ ¹Þ´Â ¸®½º³ÊÀÇ ¸®½ºÆ®¿¡ x¸¦ Ãß°¡ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ addTreeSelectionListener
ÆĶó¹ÌÅÍ:
x - Ãß°¡µÇ´Â »õ·Î¿î ¸®½º³Ê

removeTreeSelectionListener

public void removeTreeSelectionListener(TreeSelectionListener  x)
¼±ÅÃµÈ TreePath ¼³Á¤ÀÌ º¯°æµÉ ¶§¸¶´Ù ÅëÁö¸¦ ¹Þ´Â ¸®½º³ÊÀÇ ¸®½ºÆ®·ÎºÎÅÍ x¸¦ »èÁ¦ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ removeTreeSelectionListener
ÆĶó¹ÌÅÍ:
x - »èÁ¦ÇÏ´Â ¸®½º³Ê

getTreeSelectionListeners

public TreeSelectionListener [] getTreeSelectionListeners()
ÀÌ ¸ðµ¨¿¡ µî·ÏµÈ, ¸ðµç Æ®¸® ¼±Åà ¸®½º³Ê·ÎºÎÅÍ ¿Ï¼ºµÇ´Â ¹è¿­À» ¸®ÅÏÇÕ´Ï´Ù.

¹Ýȯ°ª:
ÀÌ ¸ðµ¨ÀÇ Àü TreeSelectionListener. Æ®¸® ¼±Åà ¸®½º³Ê°¡ µî·ÏµÇÁö ¾ÊÀº °æ¿ì´Â ºñ¾îÀÖ´Â ¹è¿­
µµÀÔµÈ ¹öÀü :
1.4
°ü·Ã Ç׸ñ:
addTreeSelectionListener(javax.swing.event.TreeSelectionListener), removeTreeSelectionListener(javax.swing.event.TreeSelectionListener)

fireValueChanged

protected void fireValueChanged(TreeSelectionEvent  e)
ÀÌ °´Ã¼ÀÇ Æ®¸® ¼±Åà À̺¥Æ®ÀÇ ´ë»óÀ¸·ÎÀÇÇØ µî·ÏÇÏ°í ÀÖ´Â ¸®½º³Ê ¸ðµÎ¿¡°Ô ÅëÁöÇÕ´Ï´Ù.

°ü·Ã Ç׸ñ:
addTreeSelectionListener(javax.swing.event.TreeSelectionListener), EventListenerList

getListeners

public <T extends EventListener > T[] getListeners(Class <T> listenerType)
ÀÌ ¸ðµ¨¿¡ FooListener·Î ¼­ ÇöÀç µî·ÏµÇ¾î ¸ðµç °´Ã¼ÀÇ ¹è¿­À» ¸®ÅÏÇÕ´Ï´Ù. ÀÌ FooListener´Â addFooListener ¸Þ¼­µå·Î µî·ÏµÈ °ÍÀÔ´Ï´Ù.

FooListener.class ¶ó°í Çϴ Ŭ·¡½º ¸®ÅÍ·²À» »ç¿ëÇØ, listenerTypeÀμö¸¦ ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¾î ´ÙÀ½ÀÇ Äڵ带 »ç¿ëÇØ, DefaultTreeSelectionModel m¸¦ ±× Æ®¸® ¼±Åà ¸®½º³Ê¿¡°Ô Á¶È¸ÇÒ ¼ö ÀÖ½À´Ï´Ù.

TreeSelectionListener[] tsls = (TreeSelectionListener[])(m.getListeners(TreeSelectionListener.class));
ÀÌ·¯ÇÑ ¸®½º³Ê°¡ ¾ø´Â °æ¿ì´Â ºñ¾îÀÖ´Â ¹è¿­À» ¸®ÅÏÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
listenerType - ¿ä±¸µÇ´Â ¸®½º³ÊÀÇ ÇüÅÂ. java.util.EventListener ÇÏÀ§ ÀÎÅÍÆäÀ̽º¸¦ ÁöÁ¤
¹Ýȯ°ª:
ÀÌ ÄÄÆÛ³ÍÆ®¿¡ FooListener·Î ¼­ µî·ÏµÇ¾î ¸ðµç °´Ã¼ÀÇ ¹è¿­. ¸®½º³Ê°¡ µî·ÏµÇÁö ¾ÊÀº °æ¿ì´Â ºñ¾îÀÖ´Â ¹è¿­À» µ¹·ÁÁØ´Ù
¿¹¿Ü:
ClassCastException - listenerType°¡ java.util.EventListener¸¦ ±¸ÇöÇϴ Ŭ·¡½º ¶Ç´Â ÀÎÅÍÆäÀ̽º¸¦ ÁöÁ¤ÇÏÁö ¾Ê´Â °æ¿ì
µµÀÔµÈ ¹öÀü :
1.3
°ü·Ã Ç׸ñ:
getTreeSelectionListeners(), getPropertyChangeListeners()

getSelectionRows

public int[] getSelectionRows()
ÇöÀç ¼±Åà ¶°³¯ ¼ö ÀÖ¾î ¸ðµç ÇàÀ» ¸®ÅÏÇÕ´Ï´Ù. ¼±ÅÃµÈ TreePath°¡ ¾ø´Â °æ¿ì, ¶Ç´Â RowMapper°¡ ¼³Á¤µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì´Â null ¶Ç´Â ºñ¾îÀÖ´Â ¹è¿­À» ¸®ÅÏÇÕ´Ï´Ù. ÀϺÎÀÇ ÇàÀÌ °¡½Ã°¡ ¾Æ´Ñ °æ¿ì (Áï TreePath¿¡ ´ëÀÀÇÏ´Â Çà¿¡ RowMapper°¡ -1¸¦ µ¹·ÁÁÖ´Â °æ¿ì)¿¡ ¼±ÅÃµÈ TreePaths º¸´Ù ªÀº ¹è¿­À» µ¹·ÁÁÖ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ getSelectionRows

getMinSelectionRow

public int getMinSelectionRow()
¼±ÅÃÇÑ ÇöÀçÀÇ TreePath ¼³Á¤ÀÇ RowMapper ·ÎºÎÅÍ ÃëµæÇÑ ÃÖ¼Ò°ªÀ» ¸®ÅÏÇÕ´Ï´Ù. ¾Æ¹«°Íµµ ¼±ÅõǾî ÀÖÁö ¾ÊÀº °æ¿ì, ¶Ç´Â RowMapper°¡ ¾ø´Â °æ¿ì´Â -1À» ¸®ÅÏÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ getMinSelectionRow

getMaxSelectionRow

public int getMaxSelectionRow()
¼±ÅÃÇÑ ÇöÀçÀÇ TreePath ¼³Á¤ÀÇ RowMapper ·ÎºÎÅÍ ÃëµæÇÑ ÃÖ´ë°ªÀ» ¸®ÅÏÇÕ´Ï´Ù. ¾Æ¹«°Íµµ ¼±ÅõǾî ÀÖÁö ¾ÊÀº °æ¿ì, ¶Ç´Â RowMapper°¡ ¾ø´Â °æ¿ì´Â -1À» ¸®ÅÏÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ getMaxSelectionRow

isRowSelected

public boolean isRowSelected(int row)
row·Î ½Äº°µÇ´Â ÇàÀÌ ¼±Åõǰí ÀÖ´Â °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ isRowSelected

resetRowSelection

public void resetRowSelection()
ÀÌ °´Ã¼ÀÇ TreePath ·ÎºÎÅÍ Çà¿¡ÀÇ ¸ÅÇÎÀ» °»½ÅÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â ¿¹¸¦ µé¾î ³ëµå°¡ È®ÀåµÇ¾úÀ» °æ¿ì¿Í °°ÀÌ TreePath ·ÎºÎÅÍ Á¤¼ö¿¡ÀÇ ¸ÅÇÎÀÌ º¯°æµÇ¾úÀ» ¶§¿¡ È£ÃâÇÕ´Ï´Ù.

ÀϹÝÀûÀ¸·Î È£ÃâÇÒ ÇÊ¿ä´Â ¾ø½À´Ï´Ù. JTree¿Í °Å±â¿¡ °ü·ÃµÈ Listeners°¡ È£ÃâµË´Ï´Ù. µ¶ÀÚÀûÀÎ View Ŭ·¡½º¸¦ ±¸ÇöÁßÀÇ °æ¿ì´Â ½º½º·Î È£ÃâÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.

insureRowContinuity¸¦ È£ÃâÇØ, ÇöÀç ¼±Åõǰí ÀÖ´Â TreePaths°¡ ¾ÆÁ÷ ¼±Åà ¸ðµå·Î À¯È¿ÇÑ °ÍÀ» È®ÀÎÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ resetRowSelection

getLeadSelectionRow

public int getLeadSelectionRow()
¼±Åà ¹üÀ§ÀÇ ¸®µå À妽º¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÀÌ°ÍÀº ¸¶Áö¸·¿¡ Ãß°¡µÈ À妽ºÀÔ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ getLeadSelectionRow

getLeadSelectionPath

public TreePath  getLeadSelectionPath()
Ãß°¡µÈ ¸¶Áö¸· Æнº¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÀÌ Æнº´Â JTree°¡ º¸°ü À¯ÁöÇÏ°í ÀÖ´Â leadSelectionPath ÇÁ·ÎÆÛƼ¿Í´Â ´Ù¸¥ °æ¿ì°¡ ÀÖ½À´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ getLeadSelectionPath

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener  listener)
PropertyChangeListener¸¦ ¸®½º³Ê ¸®½ºÆ®¿¡ Ãß°¡ÇÕ´Ï´Ù. ¸®½º³Ê´Â ¸ðµç ÇÁ·ÎÆÛƼ¿¡ ´ëÇؼ­ µî·ÏµË´Ï´Ù.

PropertyChangeEvent´Â ¼±Åà ¹üÀ§ ¸ðµå°¡ º¯°æµÇ¸é Æ®¸®°Å µË´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ addPropertyChangeListener
ÆĶó¹ÌÅÍ:
listener - Ãß°¡ÇÏ´Â PropertyChangeListener

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener  listener)
PropertyChangeListener¸¦ ¸®½º³Ê ¸®½ºÆ®·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù. ¸ðµç ÇÁ·ÎÆÛƼ¿¡ ´ëÇؼ­ µî·ÏµÈ PropertyChangeListener¸¦ »èÁ¦ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeSelectionModel ³»ÀÇ removePropertyChangeListener
ÆĶó¹ÌÅÍ:
listener - »èÁ¦ÇÏ´Â PropertyChangeListener

getPropertyChangeListeners

public PropertyChangeListener [] getPropertyChangeListeners()
ÀÌ DefaultTreeSelectionModel¿¡ µî·ÏµÈ, ¸ðµç ÇÁ·ÎÆÛƼ º¯°æ ¸®½º³Ê·ÎºÎÅÍ ¿Ï¼ºµÇ´Â ¹è¿­À» ¸®ÅÏÇÕ´Ï´Ù.

¹Ýȯ°ª:
ÀÌ ¸ðµ¨ÀÇ ¸ðµç PropertyChangeListener. ÇÁ·ÎÆÛƼ º¯°æ ¸®½º³Ê°¡ µî·ÏµÇÁö ¾ÊÀº °æ¿ì´Â ºñ¾îÀÖ´Â ¹è¿­
µµÀÔµÈ ¹öÀü :
1.4
°ü·Ã Ç׸ñ:
addPropertyChangeListener(java.beans.PropertyChangeListener), removePropertyChangeListener(java.beans.PropertyChangeListener)

insureRowContinuity

protected void insureRowContinuity()
ÇöÀç ¼±Åõǰí ÀÖ´Â TreePath°¡ ÇöÀçÀÇ ¼±Åà ¸ðµå·Î À¯È¿ÇÑ°¡¸¦ È®ÀÎÇÕ´Ï´Ù. ¼±Åà ¸ðµå°¡ CONTIGUOUS_TREE_SELECTION ¶§¿¡ RowMapper°¡ Á¸ÀçÇÏ°í ÀÖ´Â °æ¿ì, ÀÌ ¸Þ¼­µå´Â ¸ðµç ÇàÀÌ ¿¬¼ÓÇÏ°í ÀÖ´ÂÁö (¼ÒÆ® ÇßÀ» ¶§¿¡ ¸ðµç ÇàÀÌ °£°ÝÀ» ºñ¿ìÁö ¾Ê°í ¼ø¼­ ÀÚÁÖ ÁÙÁö¾î ÀÖ´ÂÁö)¸¦ È®ÀÎÇÕ´Ï´Ù. ¼±Åà ¹üÀ§°¡ ¿¬¼ÓÇÏÁö ¾ÊÀº °æ¿ì´Â ¼ÒÆ® ÇßÀ» ¶§¿¡ ¿¬¼ÓÇÑ ÇàÀÇ ÃÖÃʼ¼Æ®°¡ Æ÷ÇԵǵµ·Ï ¸®¼Â µË´Ï´Ù.

¼±Åà ¸ðµå°¡ SINGLE_TREE_SELECTIONÀÎ °æ¿ì¿¡ º¹¼öÀÇ TreePath°¡ ¼±ÅõǸé, ¼±Åà ¹üÀ§´Â ÇöÀç ¼±Åõǰí ÀÖ´Â ÃÖÃÊÀÇ Æнº¸¦ Æ÷ÇÔÇϵµ·Ï ¸®¼Â µË´Ï´Ù.


arePathsContiguous

protected boolean arePathsContiguous(TreePath [] paths)
Æнº°¡ ¿¬¼ÓÇÏ°í ÀÖ´ÂÁö, ÀÌ °´Ã¼¿¡ RowMapper°¡ ¾ø´Â °æ¿ì, true¸¦ ¸®ÅÏÇÕ´Ï´Ù.


canPathsBeAdded

protected boolean canPathsBeAdded(TreePath [] paths)
TreePath ƯÁ¤ÀÇ ¼³Á¤À» Ãß°¡ÇÒ ¼ö ÀÖÀ»Áö ¾î¶³Áö ÆÇÁ¤Çϱâ À§Çؼ­ »ç¿ëÇÕ´Ï´Ù. paths°¡ null (¶Ç´Â °ø¹é)ÀÇ °æ¿ì, ÀÌ °´Ã¼°¡ RowMapper¸¦ °¡ÁöÁö ¾Ê´Â °æ¿ì, ÇöÀç ¼±ÅõǾî ÀÖÁö ¾ÊÀº °æ¿ì, ¼±Åà ¸ðµå°¡ DISCONTIGUOUS_TREE_SELECTIONÀÎ °æ¿ì, ¶Ç´Â ÇöÀçÀÇ ¼±Åà ¹üÀ§¿¡ Æнº¸¦ Ãß°¡Çصµ, TreePath°¡ ¿¬¼Ó ¼³Á¤ÀÎ °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.


canPathsBeRemoved

protected boolean canPathsBeRemoved(TreePath [] paths)
¸ðµ¨ÀÇ ¿¬¼Ó¼ºÀ» ºÎ¼öÁö ¾Ê°í Æнº¸¦ »èÁ¦ÇÒ ¼ö ÀÖ´Â °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÀÌ°Í¿¡´Â ²Ï Å« ºÎÇÏ°¡ °É¸³´Ï´Ù.


notifyPathChange

protected void notifyPathChange(Vector <javax.swing.tree.PathPlaceHolder> changedPaths,
                                TreePath  oldLeadSelection)
path ³»ÀÇ º¯°æÀ» ¸®½º³Ê¿¡°Ô ÅëÁöÇÕ´Ï´Ù. changePaths´Â PathPlaceHolder ÀνºÅϽº¸¦ º¸°ü À¯ÁöÇÕ´Ï´Ù.


updateLeadIndex

protected void updateLeadIndex()
leadIndex ÀνºÅϽº º¯¼ö¸¦ °»½ÅÇÕ´Ï´Ù.


insureUniqueness

protected void insureUniqueness()
ÀÌ ¸Þ¼­µå´Â ÇöÀç »ç¿ëµÇ¾î ÀÖÁö ¾ÊÀº µ¥´Ù°¡ ±× ±¸ÇöÀº Á¶ÀÛ ºÒ°¡´ÉÀÔ´Ï´Ù. setSelectionPaths ³ª addSelectionPaths¿¡ ÀÇÇØ ¾ÆÁ÷ È£ÃâÇÕ´Ï´Ù ¸¸, ÇÏÀ§ ȣȯ¼ºÀÇ °æ¿ì¿¡ ÇÑÁ¤µË´Ï´Ù.


toString

public String  toString()
ÀÌ °´Ã¼ÀÇ ÇÁ·ÎÆÛƼ¸¦ Ç¥½Ã ¹× ½Äº°Çϴ ij¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Object ³»ÀÇ toString
¹Ýȯ°ª:
ÀÌ °´Ã¼ÀÇ Ä³¸¯ÅÍ ¶óÀΠǥÇö

clone

public Object  clone()
             throws CloneNotSupportedException 
°°Àº ¼±Åà ¹üÀ§¸¦ °¡Áö´Â ÀÌ °´Ã¼ÀÇ º¹Á¦¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â ¼±Åà ¸®½º³Ê¿Í ÇÁ·ÎÆÛƼ ¸®½º³Ê¸¦ º¹Á¦ÇÏÁö ¾Ê½À´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Object ³»ÀÇ clone
¹Ýȯ°ª:
ÀÌ ÀνºÅϽºÀÇ º¹Á¦
¿¹¿Ü:
CloneNotSupportedException - ÀÌ Å¬·¡½ºÀÇ ÀνºÅϽº·Î Throw µÇÁö ¾Ê´Â
°ü·Ã Ç׸ñ:
Cloneable

JavaTM 2 Platform
Standard Ed. 5.0

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