|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
java.lang.Objectjavax.swing.DefaultListSelectionModel
public class DefaultListSelectionModel
¸®½ºÆ® ¼±ÅÃÀÇ µðÆúÆ® µ¥ÀÌÅÍ ¸ðµ¨ÀÔ´Ï´Ù.
°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ °´Ã¼´Â ÇâÈÄÀÇ Swing ¸±¸®Áî¿Í
ȣȯµÇÁö ¾ÊÀ» ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈÀÇ Áö¿øÀº
´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÀüÀÇ Swing¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. JDK ¹öÀü
1.4 ÀÌÈÄ, ¸ðµç JavaBeans™
Àå±â°£ÀÇ ¿î¿ë Áö¿øÀº
java.beans ÆÐŰÁö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº XMLEncoder¸¦
ÂüÁ¶ÇϽʽÿÀ.
ListSelectionModel | ÇÊµå °³¿ä | |
|---|---|
protected boolean |
leadAnchorNotificationEnabled
|
protected EventListenerList |
listenerList
|
| ÀÎÅÍÆäÀ̽º javax.swing. ListSelectionModel ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
|---|
MULTIPLE_INTERVAL_SELECTION,
SINGLE_INTERVAL_SELECTION,
SINGLE_SELECTION |
| »ý¼ºÀÚ °³¿ä | |
|---|---|
DefaultListSelectionModel ()
|
|
| ¸Þ¼µå °³¿ä | ||
|---|---|---|
void |
addListSelectionListener (ListSelectionListener l)
¼±Åà ¹üÀ§ÀÇ º¯°æÀÌ ÅëÁöµÇ´Â ¸®½º³Ê¸¦ ¸®½ºÆ®¿¡ Ãß°¡ÇÕ´Ï´Ù. |
|
void |
addSelectionInterval (int index0,
int index1)
¼±Åà ¹üÀ§¸¦, ÇöÀçÀÇ ¼±Åà ¹üÀ§¿Í index0 ÀÌ»ó index1 ¾Æ·¡ÀÇ À妽º°¡ °¡¸®Å°´Â ¹üÀ§¿ÍÀÇ ÈÁýÇÕÀ¸·Î º¯°æÇÕ´Ï´Ù. |
|
void |
clearSelection ()
¼±Åà ¹üÀ§¸¦ ºó¼¼Æ®·Î º¯°æÇÕ´Ï´Ù. |
|
Object |
clone ()
ÀÌ ¼±Åà ¸ðµ¨ÀÇ º¹Á¦¸¦, °°Àº ¼±Åà »óÅ·Π¸®ÅÏÇÕ´Ï´Ù. |
|
protected void |
fireValueChanged (boolean isAdjusting)
ÀÏ·ÃÀÇ Á¶Á¤ÀÌ Á¾·áÇÑ °ÍÀ» ¸®½º³Ê¿¡°Ô ÅëÁöÇÕ´Ï´Ù. |
|
protected void |
fireValueChanged (int firstIndex,
int lastIndex)
firstIndex, lastIndex °£¿¡ ¼±ÅÃÀÇ °ªÀÌ º¯°æµÈ °ÍÀ» ListSelectionListeners¿¡ ÅëÁöÇÕ´Ï´Ù. |
|
protected void |
fireValueChanged (int firstIndex,
int lastIndex,
boolean isAdjusting)
|
|
int |
getAnchorSelectionIndex ()
setSelectionInterval(), addSelectionInterval(), ¶Ç´Â removeSelectionInterval()ÀÇ Á÷ÀüÀÇ È£Ãâ·ÎºÎÅÍ, ÃÖÃÊÀÇ À妽º Àμö¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
|
int |
getLeadSelectionIndex ()
setSelectionInterval(), addSelectionInterval(), ¶Ç´Â removeSelectionInterval()ÀÇ Á÷ÀüÀÇ È£Ãâ·ÎºÎÅÍ, 2¹øÂ°ÀÇ À妽º Àμö¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
|
|
getListeners (Class <T> listenerType)
ÀÌ ¸ðµ¨¿¡ FooListener·Î
¼ ÇöÀç µî·ÏµÇ¾î ¸ðµç °´Ã¼ÀÇ ¹è¿À» ¸®ÅÏÇÕ´Ï´Ù. |
|
ListSelectionListener [] |
getListSelectionListeners ()
ÀÌ DefaultListSelectionModel¿¡ µî·ÏµÇ¾î ¸ðµç ¸®½ºÆ® ¼±Åà ¸®½º³ÊÀÇ ¹è¿À» ¸®ÅÏÇÕ´Ï´Ù. |
|
int |
getMaxSelectionIndex ()
¸¶Áö¸·¿¡ ¼±ÅÃµÈ À妽º¸¦ µ¹·ÁÁÖ´ÂÁö, ¼±Åà ¹üÀ§°¡ ºñ¾îÀÖ´Â °æ¿ì¿¡ -1¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
|
int |
getMinSelectionIndex ()
ÃÖÃÊ·Î ¼±ÅÃµÈ À妽º¸¦ µ¹·ÁÁÖ´ÂÁö, ¼±Åà ¹üÀ§°¡ ºñ¾îÀÖ´Â °æ¿ì¿¡ -1¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
|
int |
getSelectionMode ()
¼±Åà ¸ðµå¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
|
boolean |
getValueIsAdjusting ()
°ªÀÌ ÀÏ·ÃÀÇ º¯°æÀ» ¹Þ°í ÀÖ´Â °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
|
void |
insertIndexInterval (int index,
int length,
boolean before)
À妽ºÀÇ Àü ¶Ç´Â ´ÙÀ½¿¡ ½ÃÀ۵Ǵ length À妽º¸¦ »ðÀÔÇÕ´Ï´Ù. |
|
boolean |
isLeadAnchorNotificationEnabled ()
leadAnchorNotificationEnabled Ç÷¡±×ÀÇ °ªÀ» ¸®ÅÏÇÕ´Ï´Ù. |
|
boolean |
isSelectedIndex (int index)
ÁöÁ¤ÀÇ À妽º°¡ ¼±Åõǰí ÀÖ´Â °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
|
boolean |
isSelectionEmpty ()
À妽º°¡ ¼±ÅõǾî ÀÖÁö ¾ÊÀº °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
|
void |
moveLeadSelectionIndex (int leadIndex)
¼±µÎÀÇ ¼±Åà À妽º¸¦ ¼³Á¤ÇØ, ¸ðµç ¼±ÅÃÄ¡¸¦ ¹Ìº¯°æ´ë·Î ÇÕ´Ï´Ù. |
|
void |
removeIndexInterval (int index0,
int index1)
index0¿Í index1 »çÀÌ (ÀÌ·¯ÇÑ °ªÀ» Æ÷ÇÔÇÑ´Ù)ÀÇ À妽º¸¦ ¼±Åà ¸ðµ¨·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù. |
|
void |
removeListSelectionListener (ListSelectionListener l)
¼±Åà ¹üÀ§ÀÇ º¯°æÀÌ ÅëÁöµÇ´Â ¸®½º³Ê¸¦ ¸®½ºÆ®·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù. |
|
void |
removeSelectionInterval (int index0,
int index1)
¼±Åà ¹üÀ§¸¦, ÇöÀçÀÇ ¼±Åà ¹üÀ§¿Í index0 ÀÌ»ó index1 ¾Æ·¡ÀÇ À妽º°¡ °¡¸®Å°´Â ¹üÀ§¿ÍÀÇ Â÷ÀÌ ÁýÇÕÀ¸·Î º¯°æÇÕ´Ï´Ù. |
|
void |
setAnchorSelectionIndex (int anchorIndex)
¿¨Ä¿ ¼±Åà À妽º¸¦ ¼³Á¤ÇØ, ¸ðµç ¼±ÅÃÄ¡¸¦ º¯°æÇÏÁö ¾Ê´Â ä·Î ÇÕ´Ï´Ù. |
|
void |
setLeadAnchorNotificationEnabled (boolean flag)
leadAnchorNotificationEnabled Ç÷¡±×ÀÇ °ªÀ» ¼³Á¤ÇÕ´Ï´Ù. |
|
void |
setLeadSelectionIndex (int leadIndex)
¼±µÎÀÇ ¼±Åà À妽º¸¦ ¼³Á¤ÇØ, ¿¨Ä¿¿Í »õ·Î¿î ¼±µÎÀÇ »çÀÌÀÇ °ªÀÌ, ¸ðµÎ ¼±Åà ¶Ç´Â ¸ðµÎ ¼±ÅÃ ÇØÁ¦ÀÇ ¾î´À ÂÊÀÎÁöÀÎ °ÍÀ» º¸ÁõÇÕ´Ï´Ù. |
|
void |
setSelectionInterval (int index0,
int index1)
¼±Åà ¹üÀ§¸¦ index0 ÀÌ»ó index1 ÀÌÇÏ·Î º¯°æÇÕ´Ï´Ù. |
|
void |
setSelectionMode (int selectionMode)
¼±Åà ¸ðµå¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
|
void |
setValueIsAdjusting (boolean isAdjusting)
ÀÌ ÇÁ·ÎÆÛƼ´Â ¸ðµ¨ÀÇ °ª¿¡ Àû¿ëµÇ°í ÀÖ´Â º¯°æÀÌ ´ÜÀÏÀÇ À̺¥Æ®¶ó°í »ý°¢µÇ´Â °æ¿ì¿¡ true°¡ µË´Ï´Ù. |
|
String |
toString ()
ÀÌ °´Ã¼ÀÇ ÇÁ·ÎÆÛƼ¸¦ Ç¥½Ã ¹× ½Äº°Çϴ ij¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù. |
|
| Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| ÇʵåÀÇ »ó¼¼ |
|---|
protected EventListenerList listenerList
protected boolean leadAnchorNotificationEnabled
| »ý¼ºÀÚ »ó¼¼ |
|---|
public DefaultListSelectionModel()
| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
public int getMinSelectionIndex()
ListSelectionModel
񃬣:
ListSelectionModel ³»ÀÇ getMinSelectionIndex public int getMaxSelectionIndex()
ListSelectionModel
񃬣:
ListSelectionModel ³»ÀÇ getMaxSelectionIndex public boolean getValueIsAdjusting()
ListSelectionModel
񃬣:
ListSelectionModel ³»ÀÇ getValueIsAdjusting ListSelectionModel.setValueIsAdjusting(boolean) public int getSelectionMode()
ListSelectionModel ³»ÀÇ getSelectionMode getSelectionMode() public void setSelectionMode(int selectionMode)
ListSelectionModel ³»ÀÇ setSelectionMode selectionMode - ´ÙÀ½ÀÇ 3°³ÀÇ °ªÀÇ ¾î¶² °ÍÀΰ¡IllegalArgumentException - selectionMode°¡ »ó±âÀÇ Á¤´çÇÑ °ªÀÇ ¸®½ºÆ®¿¡ ¾ø´Â °æ¿ìsetSelectionMode(int) public boolean isSelectedIndex(int index)
ListSelectionModel
񃬣:
ListSelectionModel ³»ÀÇ isSelectedIndex public boolean isSelectionEmpty()
ListSelectionModel
񃬣:
ListSelectionModel ³»ÀÇ isSelectionEmpty public void addListSelectionListener(ListSelectionListener l)
ListSelectionModel
񃬣:
ListSelectionModel ³»ÀÇ addListSelectionListener l - ListSelectionListenerListSelectionModel.removeListSelectionListener(javax.swing.event.ListSelectionListener),
ListSelectionModel.setSelectionInterval(int, int),
ListSelectionModel.addSelectionInterval(int, int),
ListSelectionModel.removeSelectionInterval(int, int),
ListSelectionModel.clearSelection(),
ListSelectionModel.insertIndexInterval(int, int, boolean),
ListSelectionModel.removeIndexInterval(int, int) public void removeListSelectionListener(ListSelectionListener l)
ListSelectionModel
񃬣:
ListSelectionModel ³»ÀÇ removeListSelectionListener l - ListSelectionListenerListSelectionModel.addListSelectionListener(javax.swing.event.ListSelectionListener) public ListSelectionListener [] getListSelectionListeners()
DefaultListSelectionModel¿¡ µî·ÏµÇ¾î ¸ðµç ¸®½ºÆ® ¼±Åà ¸®½º³ÊÀÇ ¹è¿À» ¸®ÅÏÇÕ´Ï´Ù.
ListSelectionListener. ¸®½ºÆ® ¼±Åà ¸®½º³Ê°¡ ÇöÀç µî·ÏµÇÁö ¾ÊÀº °æ¿ì´Â ºñ¾îÀÖ´Â ¹è¿À» µ¹·ÁÁÖ´ÂaddListSelectionListener(javax.swing.event.ListSelectionListener),
removeListSelectionListener(javax.swing.event.ListSelectionListener) protected void fireValueChanged(boolean isAdjusting)
protected void fireValueChanged(int firstIndex,
int lastIndex)
firstIndex, lastIndex °£¿¡ ¼±ÅÃÀÇ °ªÀÌ º¯°æµÈ °ÍÀ» ListSelectionListeners¿¡ ÅëÁöÇÕ´Ï´Ù.
protected void fireValueChanged(int firstIndex,
int lastIndex,
boolean isAdjusting)
firstIndex - ¹üÀ§ÀÇ ¼±µÎÀÇ À妽ºlastIndex - ¹üÀ§ÀÇ ¸¶Áö¸· À妽ºisAdjusting - ÀÏ·ÃÀÇ Á¶Á¤ÀÇ ¸¶Áö¸· º¯°æÀÎ °æ¿ì´Â trueEventListenerList public <T extends EventListener > T[] getListeners(Class <T> listenerType)
FooListener·Î
¼ ÇöÀç µî·ÏµÇ¾î ¸ðµç °´Ã¼ÀÇ ¹è¿À» ¸®ÅÏÇÕ´Ï´Ù. ÀÌ FooListener´Â addFooListener ¸Þ¼µå·Î µî·ÏµÈ °ÍÀÔ´Ï´Ù.
listenerTypeÀμö´Â FooListener.class¿Í
°°Àº Ŭ·¡½º ¸®ÅÍ·²·Î ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¾îÀÌ ¸®½ºÆ® ¼±Åà ¸®½º³Ê¿¡ ´ëÇÑ DefaultListSelectionModelÀνºÅϽº m
Á¶È¸´Â ´ÙÀ½ÀÇ ÄÚµå·Î ½Ç½ÃÇÕ´Ï´Ù.
ListSelectionListener[] lsls = (ListSelectionListener[])(m.getListeners(ListSelectionListener.class));ÀÌ·¯ÇÑ ¸®½º³Ê°¡ ¾ø´Â °æ¿ì´Â ºñ¾îÀÖ´Â ¹è¿À» ¸®ÅÏÇÕ´Ï´Ù.
listenerType - ¿ä±¸µÇ´Â ¸®½º³ÊÀÇ ÇüÅÂ. java.util.EventListener
ÇÏÀ§ ÀÎÅÍÆäÀ̽º¸¦ ÁöÁ¤
FooListener·Î
¼ µî·ÏµÇ¾î ¸ðµç °´Ã¼ÀÇ ¹è¿. ¸®½º³Ê°¡ µî·ÏµÇÁö ¾ÊÀº °æ¿ì´Â ºñ¾îÀÖ´Â ¹è¿À» µ¹·ÁÁØ´Ù
ClassCastException - listenerType°¡ java.util.EventListener¸¦ ±¸ÇöÇϴ Ŭ·¡½º ¶Ç´Â ÀÎÅÍÆäÀ̽º¸¦ ÁöÁ¤ÇÏÁö ¾Ê´Â °æ¿ìgetListSelectionListeners() public void setLeadAnchorNotificationEnabled(boolean flag)
isLeadAnchorNotificationEnabled() public boolean isLeadAnchorNotificationEnabled()
leadAnchorNotificationEnabled Ç÷¡±×ÀÇ °ªÀ» ¸®ÅÏÇÕ´Ï´Ù. leadAnchorNotificationEnabled°¡ trueÀÎ °æ¿ì, ¼±Åà ¿µ¿ªÀÇ ¸ðµç º¯°æ¿¡ °¡¼¼ÇØ, ¼±µÎ À妽º¿Í ¿¨Ä¿ À妽º¿¡ÀÇ º¯°æÀ» Ä¿¹öÇÏ´Â °æ°è¸¦ »ç¿ëÇØ, ¸ðµ¨Àº ÅëÁö À̺¥Æ®¸¦ »ý¼ºÇÕ´Ï´Ù. Ç÷¡±×¸¦ false ·Î ¼³Á¤Çϸé, ¸¶Áö¸· º¯°æ ÈÄ¿¡ ¼±Åà ¶Ç´Â ¼±ÅÃ ÇØÁ¦µÈ ¿ä¼Ò¸¸À» Æ÷ÇÔÇϵµ·Ï, À̺¥Æ®ÀÇ °æ°è¸¦ ÇÑÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¾î´À ¹æ¹ý¿¡¼µµ, ¸ðµ¨Àº ¼±µÎ º¯¼ö¿Í ¿¨Ä¿ º¯¼ö¸¦ ³»ºÎÀûÀ¸·Î °è¼Ó °ü¸®ÇÕ´Ï´Ù. µðÆúÆ®´Â true ÀÔ´Ï´Ù.
ÁÖ: ¼±µÎ ¶Ç´Â ¿¨Ä¿´Â ¼±Åà ¿µ¿ªÀ¸·Î º¯°æÀ» ´õÇÏÁö ¾Ê¾Æµµ º¯°æÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ·¯ÇÑ º¯°æÀÇ ÅëÁö´Â ºä³»¿¡¼ »õ·Î¿î ¼±µÎ³ª ¿¨Ä¿¸¦ °»½ÅÇÒ Çʿ䰡 ÀÖ´Â °æ¿ì µî¿¡ Áß¿äÇÕ´Ï´Ù. µû¶ó¼, ±âº»°ªÀ» º¯°æÇÒ ¶§´Â Àß ÁÖÀÇÇØ ÁÖ¼¼¿ä.
leadAnchorNotificationEnabled Ç÷¡±×ÀÇ °ªsetLeadAnchorNotificationEnabled(boolean) public void clearSelection()
ListSelectionModel
񃬣:
ListSelectionModel ³»ÀÇ clearSelection ListSelectionModel.addListSelectionListener(javax.swing.event.ListSelectionListener)
public void setSelectionInterval(int index0,
int index1)
ListSelectionModel
񃬣:
ListSelectionModel ³»ÀÇ setSelectionInterval index0 - ±¸°£ÀÇ ÇÑÆíÀÇ ±¸¼®ÀÇ °ªindex1 - ±¸°£ÀÇ ÇÑÆíÀÇ ±¸¼®ÀÇ °ªListSelectionModel.addListSelectionListener(javax.swing.event.ListSelectionListener)
public void addSelectionInterval(int index0,
int index1)
ListSelectionModel
񃬣:
ListSelectionModel ³»ÀÇ addSelectionInterval index0 - ±¸°£ÀÇ ÇÑÆíÀÇ ±¸¼®ÀÇ °ªindex1 - ±¸°£ÀÇ ÇÑÆíÀÇ ±¸¼®ÀÇ °ªListSelectionModel.addListSelectionListener(javax.swing.event.ListSelectionListener)
public void removeSelectionInterval(int index0,
int index1)
ListSelectionModel
񃬣:
ListSelectionModel ³»ÀÇ removeSelectionInterval index0 - ±¸°£ÀÇ ÇÑÆíÀÇ ±¸¼®ÀÇ °ªindex1 - ±¸°£ÀÇ ÇÑÆíÀÇ ±¸¼®ÀÇ °ªListSelectionModel.addListSelectionListener(javax.swing.event.ListSelectionListener)
public void insertIndexInterval(int index,
int length,
boolean before)
ListSelectionModel ³»ÀÇ insertIndexInterval
public void removeIndexInterval(int index0,
int index1)
ListSelectionModel ³»ÀÇ removeIndexInterval public void setValueIsAdjusting(boolean isAdjusting)
ListSelectionModel
񃬣:
ListSelectionModel ³»ÀÇ setValueIsAdjusting isAdjusting - ÇÁ·ÎÆÛƼÀÇ »õ·Î¿î °ªListSelectionModel.getValueIsAdjusting() public String toString()
Object ³»ÀÇ toString String Ç¥Çö
public Object clone()
throws CloneNotSupportedException
listenerList´Â º¹Á¦µÇÁö ¾Ê½À´Ï´Ù.
Object ³»ÀÇ clone CloneNotSupportedException - ¼±Åà ¸ðµ¨ÀÌ, (a) Cloneable ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÏÁö ¾Ê°í, ¶Ç (b) clone ¸Þ¼µå¸¦ Á¤ÀÇÇÏÁö ¾Ê´Â °æ¿ìCloneable public int getAnchorSelectionIndex()
ListSelectionModel
񃬣:
ListSelectionModel ³»ÀÇ getAnchorSelectionIndex ListSelectionModel.getLeadSelectionIndex(),
ListSelectionModel.setSelectionInterval(int, int),
ListSelectionModel.addSelectionInterval(int, int) public int getLeadSelectionIndex()
ListSelectionModel
񃬣:
ListSelectionModel ³»ÀÇ getLeadSelectionIndex ListSelectionModel.getAnchorSelectionIndex(),
ListSelectionModel.setSelectionInterval(int, int),
ListSelectionModel.addSelectionInterval(int, int) public void setAnchorSelectionIndex(int anchorIndex)
ListSelectionModel ³»ÀÇ setAnchorSelectionIndex getAnchorSelectionIndex(),
setLeadSelectionIndex(int) public void moveLeadSelectionIndex(int leadIndex)
leadIndex - »õ·Î¿î ¼±µÎÀÇ ¼±Åà À妽ºsetAnchorSelectionIndex(int),
setLeadSelectionIndex(int),
getLeadSelectionIndex() public void setLeadSelectionIndex(int leadIndex)
¿¨Ä¿ À妽ºÀÇ °ªÀÌ ¼±ÅõǾî ÀÖÁö ¾ÊÀº °æ¿ì, °°Àº °ÍÀ» ¹Ý´ë·Î ½Ç½ÃÇÕ´Ï´Ù. Áï ³°Àº ¹üÀ§ÀÇ °ªÀ» ¼±ÅÃÇÏ°í ³ª¼ »õ·Î¿î ¹üÀ§ÀÇ °ªÀ» ¼±ÅÃ ÇØÁ¦ÇÕ´Ï´Ù.
ÀÌ º¯°æÀÇ À̺¥Æ®¸¦ 1°³ »ý¼ºÇØ, ¸ðµç ¸®½º³Ê¿¡°Ô ÅëÁöÇÕ´Ï´Ù. ÀÌ À̺¥Æ®³»¿¡¼ ÃÖ¼ÒÇÑÀÇ °æ°è¸¦ »ý¼ºÇϱâ À§ÇØ, 1ȸ ÀÇ ÆÐ½º·Î Á¶ÀÛÀ» ½Ç½ÃÇÕ´Ï´Ù. ÀÌ ¹æ¹ý¿¡¼´Â ºê·Îµåij½ºÆ® µÈ ListSelectionEvent ³»ÀÇ ¼±µÎ¿Í ¸»¹ÌÀÇ À妽º´Â ÀÌ ¸Þ¼µå¿¡ ÀÇÇØ ½ÇÁ¦·Î °ªÀÌ º¯°æµÈ ¼¿À» ÂüÁ¶ÇÕ´Ï´Ù. ÀÌ Á¶ÀÛÀ» 2ȸÀÇ ½ºÅÜ¿¡¼ ó¸®Çϸé, ¼±Åà »óÅÂÀÇ È¿°ú´Â °°¾Æµµ, 2°³ÀÇ À̺¥Æ®°¡ »ý¼ºµÇ¾î ¹ö¸³´Ï´Ù. °Ô´Ù°¡ ´ÙÀ½¿¡ ¼³Á¤µÇ±â ¶§¹®¿¡ÀÎ ¸¸Å Ŭ¸®¾î µÇ´Â ¼¿ÀÌ ¹ß»ýÇØ ¹ö·Á, º¯°æ ´ë»óÀÇ °ª¿¡ °ü·ÃÇØ Á¶À۵Ǵ ¿µ¿ªÀÌ ³Ð¾îÁý´Ï´Ù.
ÀÌ ¸Þ¼µå¸¦ UI Ŭ·¡½ºÀÇ mouseDragged ¸Þ¼µå·Î »ç¿ëÇϸé, ¼±ÅÃÀ» È®ÀåÇÒ ¼ö ÀÖ½À´Ï´Ù.
ListSelectionModel ³»ÀÇ setLeadSelectionIndex getLeadSelectionIndex(),
setAnchorSelectionIndex(int)
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.