|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.util.EventObject
javax.swing.event.ListSelectionEvent
public class ListSelectionEvent
ÇöÀçÀÇ ¼±Åà ¹üÀ§¿¡¼ÀÇ º¯°æÀ» ±â¼úÇÏ´Â À̺¥Æ®ÀÔ´Ï´Ù. º¯°æÀº Çà ±¸°£¿¡ Á¦Çѵ˴ϴÙ. ListSelectionListener´Â º¸Åë, À̺¥Æ®ÀÇ ¼Ò½º¿¡ ´ëÇØ¼ º¯°æµÈ °¡´É¼ºÀÌ ÀÖ´Â °¢°¢ÀÇ ÇàÀÇ »õ·Ó°Ô ¼±ÅÃµÈ »óŸ¦ ¹®ÀÇÇÕ´Ï´Ù.
°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ °´Ã¼´Â ÇâÈÄÀÇ Swing ¸±¸®Áî¿Í
ȣȯµÇÁö ¾ÊÀ» ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈÀÇ Áö¿øÀº
´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÀüÀÇ Swing¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. JDK ¹öÀü
1.4 ÀÌÈÄ, ¸ðµç JavaBeans™
Àå±â°£ÀÇ ¿î¿ë Áö¿øÀº
java.beans
ÆÐŰÁö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº XMLEncoder
¸¦
ÂüÁ¶ÇϽʽÿÀ.
ListSelectionModel
ÇÊµå °³¿ä |
---|
Ŭ·¡½º java.util. EventObject ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
---|
source |
»ý¼ºÀÚ °³¿ä | |
---|---|
ListSelectionEvent (Object source,
int firstIndex,
int lastIndex,
boolean isAdjusting)
firstIndex ·Î
ºÎÅÍ lastIndex ±îÁöÀÇ »çÀÌ¿¡¼ÀÇ ¼±Åà »óÅÂÀÇ º¯°æÀ» ³ªÅ¸³À´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
int |
getFirstIndex ()
¼±ÅÃÀÌ º¯°æµÈ °¡´É¼ºÀÌ ÀÖ´Â ÃÖÃÊÀÇ ÇàÀÇ À妽º¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
int |
getLastIndex ()
¼±ÅÃÀÌ º¯°æµÈ °¡´É¼ºÀÌ ÀÖ´Â ¸¶Áö¸· ÇàÀÇ À妽º¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
getValueIsAdjusting ()
ÀÌ À̺¥Æ®°¡ º¹¼öÀÇ º¯°æ À̺¥Æ® °¡¿îµ¥ 1°³ ÀÎ °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
String |
toString ()
ÀÌ °´Ã¼ÀÇ ÇÁ·ÎÆÛƼ¸¦ Ç¥½Ã ¹× ½Äº°Çϴ ij¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù. |
Ŭ·¡½º java.util. EventObject ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
getSource |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
»ý¼ºÀÚ »ó¼¼ |
---|
public ListSelectionEvent(Object source, int firstIndex, int lastIndex, boolean isAdjusting)
firstIndex
·Î
ºÎÅÍ lastIndex
±îÁöÀÇ »çÀÌ¿¡¼ÀÇ ¼±Åà »óÅÂÀÇ º¯°æÀ» ³ªÅ¸³À´Ï´Ù. firstIndex´Â lastIndex
ÀÌÇÏÀÏ Çʿ䰡 ÀÖ½À´Ï´Ù. ¹üÀ§³»¿¡¼ 1 Çà ÀÌ»óÀÌ º¯°æµÇ¾úÀ» °æ¿ì, ListSelectionModel
°¡ ¶Ù¾î³ ±¸Çö¿¡ÀÇÇØ ¹üÀ§´Â °¡´ÉÇÑ ÇÑ ÀÛ°Ô À¯ÁöµË´Ï´Ù.
firstIndex
- º¯°æÇÑ ÃÖÃÊÀÇ À妽ºlastIndex
- º¯°æÇÑ ¸¶Áö¸· À妽º. lastIndex >= firstIndexisAdjusting
- ÀÏ·ÃÀÇ ½Å¼ÓÇÑ À̺¥Æ®ÀÇ 1°³
ÀÎ °ÍÀ» ³ªÅ¸³½´Ù¸Þ¼µåÀÇ »ó¼¼ |
---|
public int getFirstIndex()
public int getLastIndex()
public boolean getValueIsAdjusting()
public String toString()
EventObject
³»ÀÇ toString
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.