|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--java.util.EventObject | +--javax.swing.event.TreeSelectionEvent
ÇöÀçÀÇ ¼±Åà ¹üÀ§¿¡¼ÀÇ º¯°æÀ» ±â¼úÇÏ´Â À̺¥Æ®ÀÔ´Ï´Ù. º¯°æÀº ÆÐ½ºÀÇ ¼ö¿¡ ±Ù°ÅÇÕ´Ï´Ù. TreeSelectionListener ´Â Åë»ó, À̺¥Æ®ÀÇ ¼Ò½º¿¡ ´ëÇØ¼, º¯°æµÈ °¡´É¼ºÀÌ ÀÖ´Â °¢ ÇàÀÇ »õ·Ó°Ô ¼±ÅÃµÈ »óŸ¦ ¹®ÀÇÇÕ´Ï´Ù.
°æ°í:
ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ ¿ÀºêÁ§Æ®´Â ÇâÈÄÀÇ Swing ¸±¸®½º¿ÍÀÇ È£È¯¼ºÀÌ ¾ø¾îÁý´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈÀÇ ¼Æ÷Æ®´Â ´Ü±â ±â¾ïÀ̳ª, °°Àº ¹öÁ¯ÀÇ Swing ¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI ¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. JDK ¹öÁ¯ 1.4 ÀÌÈÄ, ¸ðµç JavaBeans ÀÇ Àå±â ±â¾ï¿ë ¼Æ÷Æ®´Â java.beans
ÆÐŰÁö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ °ÍÀº XMLEncoder
¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
TreeSelectionListener
,
TreeSelectionModel
ÇʵåÀÇ °³¿ä | |
protected boolean[] |
areNew
°¢ ÆÐ½º¿¡ ´ëÇØ, ±× ÆÐ½º°¡ ½ÇÁ¦·Î »õ·Î¿î ÆÐ½ºÀΰ¡ ¾î¶²°¡¸¦ ³ªÅ¸³À´Ï´Ù. |
protected TreePath |
newLeadSelectionPath
ÆÐ½º°¡ º¯°æµÈ µÚÀÇ leadSelectionPath ÀÔ´Ï´Ù. |
protected TreePath |
oldLeadSelectionPath
ÆÐ½º°¡ º¯°æµÇ±â ÀüÀÇ leadSelectionPath ÀÔ´Ï´Ù. |
protected TreePath [] |
paths
ÀÌ À̺¥Æ®°¡ ³ªÅ¸³»´Â ÆÐ½ºÀÔ´Ï´Ù. |
Ŭ·¡½º java.util. EventObject ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
source |
»ý¼ºÀÚÀÇ °³¿ä | |
TreeSelectionEvent (Object source,
TreePath [] paths,
boolean[] areNew,
TreePath oldLeadSelectionPath,
TreePath newLeadSelectionPath)
TreeSelectionModel ÀÇ ¼±Åà ¹üÀ§³»¿¡¼ÀÇ º¯°æÀ» ³ªÅ¸³À´Ï´Ù. |
|
TreeSelectionEvent (Object source,
TreePath path,
boolean isNew,
TreePath oldLeadSelectionPath,
TreePath newLeadSelectionPath)
TreeSelectionModel ÀÇ ¼±Åà ¹üÀ§³»¿¡¼ÀÇ º¯°æÀ» ³ªÅ¸³À´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
Object |
cloneWithSource (Object newSource)
¸®½Ã¹öÀÇ Ä«ÇǸ¦ µ¹·ÁÁÝ´Ï´Ù. |
TreePath |
getNewLeadSelectionPath ()
ÇöÀçÀÇ ¸®µå ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù. |
TreePath |
getOldLeadSelectionPath ()
ÀÌÀü¿¡ ¸®µå ÆÐ½º¿´´ø ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù. |
TreePath |
getPath ()
ÃÖÃÊÀÇ ÆÐ½º ¿ä¼Ò¸¦ µ¹·ÁÁÝ´Ï´Ù. |
TreePath [] |
getPaths ()
¼±Åà ¹üÀ§¿¡¼ Ãß°¡ ¶Ç´Â »èÁ¦µÈ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
isAddedPath ()
ÃÖÃÊÀÇ ÆÐ½º ¿ä¼Ò°¡ ¼±Åà ¹üÀ§¿¡ Ãß°¡µÇ¾úÀ» °æ¿ì´Â true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
isAddedPath (int index)
index ·Î ÁöÁ¤µÇ´Â ÆÐ½º°¡ ¼±Åà ¹üÀ§¿¡ Ãß°¡µÇ¾úÀ» °æ¿ì´Â true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
isAddedPath (TreePath path)
path ·Î ÁöÁ¤µÇ´Â ÆÐ½º°¡ ¼±Åà ¹üÀ§¿¡ Ãß°¡µÇ¾úÀ» °æ¿ì´Â true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
Ŭ·¡½º java.util. EventObject ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
getSource , toString |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
ÇʵåÀÇ »ó¼¼ |
protected TreePath [] paths
protected boolean[] areNew
protected TreePath oldLeadSelectionPath
protected TreePath newLeadSelectionPath
»ý¼ºÀÚÀÇ »ó¼¼ |
public TreeSelectionEvent(Object source, TreePath [] paths, boolean[] areNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath)
source
- À̺¥Æ®ÀÇ ¼Ò½ºpaths
- ¼±Åà ¹üÀ§¿¡¼ º¯°æµÈ ÆÐ½ºpublic TreeSelectionEvent(Object source, TreePath path, boolean isNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath)
source
- À̺¥Æ®ÀÇ ¼Ò½ºpath
- ¼±Åà ¹üÀ§¿¡¼ º¯°æµÈ ÆÐ½ºisNew
- ÆÐ½º°¡ ¼±Åà ¹üÀ§¿¡ ÀÖ¾î »õ·Î¿îÁö ¾î¶²Áö. ÆÐ½º°¡ ¼±Åà ¹üÀ§·ÎºÎÅÍ »èÁ¦µÇ¾úÀ» °æ¿ì´Â false¸Þ¼ÒµåÀÇ »ó¼¼ |
public TreePath [] getPaths()
public TreePath getPath()
public boolean isAddedPath()
public boolean isAddedPath(TreePath path)
public boolean isAddedPath(int index)
index
·Î ÁöÁ¤µÇ´Â ÆÐ½º°¡ ¼±Åà ¹üÀ§¿¡ Ãß°¡µÇ¾úÀ» °æ¿ì´Â true ¸¦ µ¹·ÁÁÝ´Ï´Ù. ¹Ýȯ°ª false ´Â ±× ÆÐ½º°¡ ÀÌÀü¿¡´Â ¼±Åà ¹üÀ§³»¿¡ ÀÖ¾úÁö¸¸, ÇöÀç´Â ¾ø´Â °ÍÀ» ÀǹÌÇÕ´Ï´Ù. ÀÌ À̺¥Æ®´Â index < 0 || >= getPaths
. length ÀÇ °æ¿ì¿¡ »ý¼ºµË´Ï´Ù.
public TreePath getOldLeadSelectionPath()
public TreePath getNewLeadSelectionPath()
public Object cloneWithSource(Object newSource)
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.