|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjavax.swing.AbstractListModel
javax.swing.DefaultComboBoxModel
public class DefaultComboBoxModel
comboboxÀÇ µðÆúÆ® ¸ðµ¨ÀÔ´Ï´Ù.
ÇÊµå °³¿ä |
---|
Ŭ·¡½º javax.swing. AbstractListModel ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
---|
listenerList |
»ý¼ºÀÚ °³¿ä | |
---|---|
DefaultComboBoxModel ()
ºñ¾îÀÖ´Â DefaultComboBoxModel °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
DefaultComboBoxModel (Object [] items)
°´Ã¼ÀÇ ¹è¿·Î ÃʱâÈµÈ DefaultComboBoxModel °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
DefaultComboBoxModel (Vector <? > v)
º¤ÅÍ·Î ÃʱâÈµÈ DefaultComboBoxModel °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
void |
addElement (Object anObject)
¸ðµ¨ÀÇ ¸»¹Ì¿¡ Ç׸ñÀ» Ãß°¡ÇÕ´Ï´Ù. |
Object |
getElementAt (int index)
ÁöÁ¤µÈ À妽º·Î ³ªÅ¸³ª´Â °ªÀ» ¸®ÅÏÇÕ´Ï´Ù. |
int |
getIndexOf (Object anObject)
ÁöÁ¤µÈ °´Ã¼ÀÇ ¸®½ºÆ®³»¿¡¼ÀÇ À妽º À§Ä¡¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
Object |
getSelectedItem ()
¼±Åà Ç׸ñÀ» ¸®ÅÏÇÕ´Ï´Ù. |
int |
getSize ()
¸®½ºÆ®ÀÇ ±æÀ̸¦ ¸®ÅÏÇÕ´Ï´Ù. |
void |
insertElementAt (Object anObject,
int index)
ƯÁ¤ÀÇ À妽º¿¡ Ç׸ñÀ» Ãß°¡ÇÕ´Ï´Ù. |
void |
removeAllElements ()
¸®½ºÆ®¸¦ ºñ¿ó´Ï´Ù. |
void |
removeElement (Object anObject)
¸ðµ¨·ÎºÎÅÍ Ç׸ñÀ» »èÁ¦ÇÕ´Ï´Ù. |
void |
removeElementAt (int index)
ƯÁ¤ÀÇ À妽º·ÎºÎÅÍ Ç׸ñÀ» »èÁ¦ÇÕ´Ï´Ù. |
void |
setSelectedItem (Object anObject)
¼±ÅÃµÈ Ç׸ñÀÇ °ªÀ» ¼³Á¤ÇÕ´Ï´Ù. |
Ŭ·¡½º javax.swing. AbstractListModel ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
addListDataListener,
fireContentsChanged,
fireIntervalAdded,
fireIntervalRemoved,
getListDataListeners,
getListeners,
removeListDataListener |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ÀÎÅÍÆäÀ̽º javax.swing. ListModel ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
addListDataListener,
removeListDataListener |
»ý¼ºÀÚ »ó¼¼ |
---|
public DefaultComboBoxModel()
public DefaultComboBoxModel(Object [] items)
items
- Object °´Ã¼ÀÇ ¹è¿public DefaultComboBoxModel(Vector <? > v)
v
- Vector °´Ã¼¸Þ¼µåÀÇ »ó¼¼ |
---|
public void setSelectedItem(Object anObject)
ComboBoxModel
³»ÀÇ setSelectedItem
anObject
- comboboxÀÇ °ª. ¼±ÅõǾî ÀÖÁö ¾ÊÀº °æ¿ì´Â nullpublic Object getSelectedItem()
ComboBoxModel
񃬣:
ComboBoxModel
³»ÀÇ getSelectedItem
null
public int getSize()
ListModel
񃬣:
ListModel
³»ÀÇ getSize
public Object getElementAt(int index)
ListModel
񃬣:
ListModel
³»ÀÇ getElementAt
index
- ¿ä±¸ÇÏ´Â À妽º
index
°ªpublic int getIndexOf(Object anObject)
anObject
- @return À妽º À§Ä¡¸¦ ³ªÅ¸³»´Â Á¤¼ö°ª
. 0 Àº ÃÖÃÊÀÇ À§Ä¡public void addElement(Object anObject)
MutableComboBoxModel
񃬣: ListDataListener
¿¡ Ç׸ñÀÇ Ãß°¡¸¦ ÅëÁöÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
MutableComboBoxModel
³»ÀÇ addElement
anObject
- Ãß°¡ÇÏ´Â Object
public void insertElementAt(Object anObject, int index)
MutableComboBoxModel
񃬣: ListDataListener
¿¡ Ç׸ñÀÇ Ãß°¡¸¦ ÅëÁöÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
MutableComboBoxModel
³»ÀÇ insertElementAt
anObject
- Ãß°¡ÇÏ´Â Object
index
- °´Ã¼¸¦ Ãß°¡ÇÏ´Â À§Ä¡public void removeElementAt(int index)
MutableComboBoxModel
񃬣: ListDataListener
¿¡ Ç׸ñÀÇ »èÁ¦¸¦ ÅëÁöÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
MutableComboBoxModel
³»ÀÇ removeElementAt
index
- »èÁ¦ÇÏ´Â °´Ã¼ÀÇ À§Ä¡public void removeElement(Object anObject)
MutableComboBoxModel
񃬣: ListDataListener
¿¡ Ç׸ñÀÇ »èÁ¦¸¦ ÅëÁöÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
MutableComboBoxModel
³»ÀÇ removeElement
anObject
- »èÁ¦ÇÏ´Â Object
public void removeAllElements()
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.