|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
°íÁ¤ÀÇ À妽º¸¦ °¡Áö´Â °ªÀÇ ¸®½ºÆ®¸¦ Ç¥½ÃÇÏ´Â ÄÄÆÛ³ÍÆ®ÀÇ, ÇöÀçÀÇ ¼±Åà »óŸ¦ ³ªÅ¸³À´Ï´Ù. ¼±Åà »óÅ´ ±¸°£¼¼Æ®·Î¼ ¸ðµ¨È µÇ¾î °¢ ±¸°£Àº ¼±ÅÃµÈ ¸®½ºÆ® ¿ä¼ÒÀÇ ¿¬¼Ó ¹üÀ§¸¦ ³ªÅ¸³À´Ï´Ù. ¼±ÅÃµÈ ±¸°£¼¼Æ®¸¦ º¯°æÇÏ´Â ¸Þ¼Òµå´Â ¸ðµÎ, ´ÝÀº ±¸°£À» ³ªÅ¸³»´Â index0 ¿Í index1 ¸¦ 1 Á¶¿Í ÇÏ´Â À妽º¸¦ ÃëÇÕ´Ï´Ù. Áï, ±¸°£¿¡´Â index0 ¿Í index1 ÀÇ ¾çÂÊ ¸ðµÎ°¡ Æ÷ÇԵ˴ϴÙ.
DefaultListSelectionModel
ÇʵåÀÇ °³¿ä | |
static int |
MULTIPLE_INTERVAL_SELECTION
selectionMode ÇÁ·ÎÆÛƼÀÇ °ªÀÔ´Ï´Ù. |
static int |
SINGLE_INTERVAL_SELECTION
selectionMode ÇÁ·ÎÆÛƼÀÇ °ªÀÔ´Ï´Ù. |
static int |
SINGLE_SELECTION
selectionMode ÇÁ·ÎÆÛƼÀÇ °ªÀÔ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
void |
addListSelectionListener (ListSelectionListener x)
¼±Åà ¹üÀ§ÀÇ º¯°æÀÌ ÅëÁöµÇ´Â ûÃëÀÚ¸¦ ¸®½ºÆ®¿¡ Ãß°¡ÇÕ´Ï´Ù. |
void |
addSelectionInterval (int index0,
int index1)
¼±Åà ¹üÀ§¸¦, ÇöÀçÀÇ ¼±Åà ¹üÀ§¿Í index0 ÀÌ»ó index1 ÀÌÇÏÀÇ À妽º°¡ °¡¸®Å°´Â ¹üÀ§¿ÍÀÇ ÈÁýÇÕÀ¸·Î º¯°æÇÕ´Ï´Ù. |
void |
clearSelection ()
¼±Åà ¹üÀ§¸¦ Çϴü¼Æ®·Î º¯°æÇÕ´Ï´Ù. |
int |
getAnchorSelectionIndex ()
setSelectionInterval(), addSelectionInterval(), ¶Ç´Â removeSelectionInterval()ÀÇ Á÷ÀüÀÇ È£Ãâ·ÎºÎÅÍ, ÃÖÃÊÀÇ À妽º Àμö¸¦ µ¹·ÁÁÝ´Ï´Ù. |
int |
getLeadSelectionIndex ()
setSelectionInterval(), addSelectionInterval(), ¶Ç´Â removeSelectionInterval()ÀÇ Á÷ÀüÀÇ È£Ãâ·ÎºÎÅÍ, 2 ¹øÂ°ÀÇ À妽º Àμö¸¦ µ¹·ÁÁÝ´Ï´Ù. |
int |
getMaxSelectionIndex ()
¸¶Áö¸·¿¡ ¼±ÅÃµÈ À妽º¸¦ µ¹·ÁÁÖ´ÂÁö ¼±Åà ¹üÀ§°¡ ºñ¾úÀ» °æ¿ì¿¡ -1 ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
int |
getMinSelectionIndex ()
ÃÖÃÊ·Î ¼±ÅÃµÈ À妽º¸¦ µ¹·ÁÁÖ´ÂÁö ¼±Åà ¹üÀ§°¡ ºñ¾úÀ» °æ¿ì¿¡ -1 ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
int |
getSelectionMode ()
ÇöÀçÀÇ ¼±Åà ¸ðµå¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
getValueIsAdjusting ()
°ªÀÌ ÀÏ·ÃÀÇ º¯°æÀ» ¹Þ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
void |
insertIndexInterval (int index,
int length,
boolean before)
index ÀÇ Àü/ÈĺÎÅÍ ½ÃÀ۵Ǵ length À妽º¸¦ »ðÀÔÇÕ´Ï´Ù. |
boolean |
isSelectedIndex (int index)
ÁöÁ¤ÀÇ À妽º°¡ ¼±Åõǰí ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
isSelectionEmpty ()
À妽º°¡ ¼±ÅõǾî ÀÖÁö ¾ÊÀº °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
void |
removeIndexInterval (int index0,
int index1)
¼±Åà ¸ðµ¨·ÎºÎÅÍ, index0 ¿Í index1 ¸¦ ¾ç´ÜÀ¸·Î¼ Æ÷ÇÔÇÑ ±¸°£ÀÇ À妽º¸¦ »èÁ¦ÇÕ´Ï´Ù. |
void |
removeListSelectionListener (ListSelectionListener x)
¼±Åà ¹üÀ§ÀÇ º¯°æÀÌ ÅëÁöµÇ´Â ûÃëÀÚ¸¦ ¸®½ºÆ®·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù. |
void |
removeSelectionInterval (int index0,
int index1)
¼±Åà ¹üÀ§¸¦, ÇöÀçÀÇ ¼±Åà ¹üÀ§¿Í index0 ÀÌ»ó index1 ÀÌÇÏÀÇ À妽º°¡ °¡¸®Å°´Â ¹üÀ§¿ÍÀÇ Â÷ÀÌ ÁýÇÕÀ¸·Î º¯°æÇÕ´Ï´Ù. |
void |
setAnchorSelectionIndex (int index)
¼±Åà ¹üÀ§ÀÇ ¿¨Ä¿ À妽º¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setLeadSelectionIndex (int index)
¼±Åà ¹üÀ§ÀÇ ¸®µå À妽º¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setSelectionInterval (int index0,
int index1)
¼±Åà ¹üÀ§¸¦ index0 ÀÌ»ó index1 ÀÌÇÏ·Î º¯°æÇÕ´Ï´Ù. |
void |
setSelectionMode (int selectionMode)
¼±Åà ¸ðµå¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setValueIsAdjusting (boolean valueIsAdjusting)
ÀÌ ÇÁ·ÎÆÛƼ´Â ¸ðµ¨ÀÇ °ª¿¡ Àû¿ëµÇ°í ÀÖ´Â º¯°æÀÌ ´ÜÀÏÀÇ À̺¥Æ®¶ó°í »ý°¢µÇ´Â °æ¿ì¿¡ true °¡ µË´Ï´Ù. |
ÇʵåÀÇ »ó¼¼ |
public static final int SINGLE_SELECTION
setSelectionMode(int)
,
Á¤¼ö ÇʵåÄ¡ public static final int SINGLE_INTERVAL_SELECTION
setSelectionMode(int)
,
Á¤¼ö ÇʵåÄ¡ public static final int MULTIPLE_INTERVAL_SELECTION
setSelectionMode(int)
,
Á¤¼ö ÇʵåÄ¡ ¸Þ¼ÒµåÀÇ »ó¼¼ |
public void setSelectionInterval(int index0, int index1)
index0
- ±¸°£ÀÇ ÇÑÆíÀÇ ±¸¼®ÀÇ °ªindex1
- ±¸°£ÀÇ ÇÑÆíÀÇ ±¸¼®ÀÇ °ªaddListSelectionListener(javax.swing.event.ListSelectionListener)
public void addSelectionInterval(int index0, int index1)
index0
- ±¸°£ÀÇ ÇÑÆíÀÇ ±¸¼®ÀÇ °ªindex1
- ±¸°£ÀÇ ÇÑÆíÀÇ ±¸¼®ÀÇ °ªaddListSelectionListener(javax.swing.event.ListSelectionListener)
public void removeSelectionInterval(int index0, int index1)
index0
- ±¸°£ÀÇ ÇÑÆíÀÇ ±¸¼®ÀÇ °ªindex1
- ±¸°£ÀÇ ÇÑÆíÀÇ ±¸¼®ÀÇ °ªaddListSelectionListener(javax.swing.event.ListSelectionListener)
public int getMinSelectionIndex()
public int getMaxSelectionIndex()
public boolean isSelectedIndex(int index)
public int getAnchorSelectionIndex()
getLeadSelectionIndex()
,
setSelectionInterval(int, int)
,
addSelectionInterval(int, int)
public void setAnchorSelectionIndex(int index)
getAnchorSelectionIndex()
public int getLeadSelectionIndex()
getAnchorSelectionIndex()
,
setSelectionInterval(int, int)
,
addSelectionInterval(int, int)
public void setLeadSelectionIndex(int index)
getLeadSelectionIndex()
public void clearSelection()
addListSelectionListener(javax.swing.event.ListSelectionListener)
public boolean isSelectionEmpty()
public void insertIndexInterval(int index, int length, boolean before)
public void removeIndexInterval(int index0, int index1)
public void setValueIsAdjusting(boolean valueIsAdjusting)
valueIsAdjusting
- ÇÁ·ÎÆÛƼÀÇ »õ·Î¿î °ªgetValueIsAdjusting()
public boolean getValueIsAdjusting()
setValueIsAdjusting(boolean)
public void setSelectionMode(int selectionMode)
SINGLE_SELECTION
¸®½ºÆ® À妽º¸¦ 1 ȸ¿¡ 1 °³¸¸ ¼±ÅÃÇÒ ¼ö ÀÖ´Ù. ÀÌ ¸ðµå¿¡¼´Â setSelectionInterval ¸Þ¼Òµå¿Í addSelectionInterval ¸Þ¼Òµå´Â µ¿µîÇØ, 2 ¹øÂ°ÀÇ À妽º Àμö ( ¡¸¸®µå À妽º¡¹)¸¸ÀÌ »ç¿ëµÈ´Ù.
SINGLE_INTERVAL_SELECTION
¿¬¼ÓÇÏ´Â À妽º ±¸°£À» 1 ȸ¿¡ 1 °³ ¼±ÅÃÇÒ ¼ö ÀÖ´Ù. ÀÌ ¸ðµå¿¡¼´Â setSelectionInterval ¸Þ¼Òµå¿Í addSelectionInterval ¸Þ¼Òµå´Â µ¿µî.
MULTIPLE_INTERVAL_SELECTION
ÀÌ ¸ðµå¿¡¼´Â ¼±Åà ´ë»óÀ¸·Î Á¦ÇÑÀº ¾ø´Ù.
getSelectionMode()
public int getSelectionMode()
setSelectionMode(int)
public void addListSelectionListener(ListSelectionListener x)
removeListSelectionListener(javax.swing.event.ListSelectionListener)
,
setSelectionInterval(int, int)
,
addSelectionInterval(int, int)
,
removeSelectionInterval(int, int)
,
clearSelection()
,
insertIndexInterval(int, int, boolean)
,
removeIndexInterval(int, int)
public void removeListSelectionListener(ListSelectionListener x)
addListSelectionListener(javax.swing.event.ListSelectionListener)
|
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.