|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.util.EventObject
javax.swing.event.TreeSelectionEvent
public class 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 Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.