|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractListModel oracle.ide.controls.DefaultListComboBoxModel
The default model for combo boxes.
Field Summary |
Fields inherited from class javax.swing.AbstractListModel |
listenerList |
Constructor Summary | |
DefaultListComboBoxModel()
Constructs an empty DefaultComboBoxModel object. |
|
DefaultListComboBoxModel(java.util.List v)
Constructs a DefaultComboBoxModel object initialized with a list. |
|
DefaultListComboBoxModel(java.lang.Object[] items)
Constructs a DefaultComboBoxModel object initialized with an array of objects. |
Method Summary | |
void |
addElement(java.lang.Object anObject)
|
java.lang.Object |
getElementAt(int index)
|
int |
getIndexOf(java.lang.Object anObject)
Returns the index-position of the specified object in the list. |
java.lang.Object |
getSelectedItem()
|
int |
getSize()
|
void |
insertElementAt(java.lang.Object anObject,
int index)
|
void |
removeAllElements()
Empties the list. |
void |
removeElement(java.lang.Object anObject)
|
void |
removeElementAt(int index)
|
void |
setSelectedItem(java.lang.Object anObject)
|
Methods inherited from class javax.swing.AbstractListModel |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.ListModel |
addListDataListener, removeListDataListener |
Constructor Detail |
public DefaultListComboBoxModel()
public DefaultListComboBoxModel(java.lang.Object[] items)
items
- an array of Object objectspublic DefaultListComboBoxModel(java.util.List v)
v
- a List object ...Method Detail |
public void setSelectedItem(java.lang.Object anObject)
setSelectedItem
in interface javax.swing.ComboBoxModel
public java.lang.Object getSelectedItem()
getSelectedItem
in interface javax.swing.ComboBoxModel
public int getSize()
getSize
in interface javax.swing.ListModel
public java.lang.Object getElementAt(int index)
getElementAt
in interface javax.swing.ListModel
public int getIndexOf(java.lang.Object anObject)
anObject
-
public void addElement(java.lang.Object anObject)
addElement
in interface javax.swing.MutableComboBoxModel
public void insertElementAt(java.lang.Object anObject, int index)
insertElementAt
in interface javax.swing.MutableComboBoxModel
public void removeElementAt(int index)
removeElementAt
in interface javax.swing.MutableComboBoxModel
public void removeElement(java.lang.Object anObject)
removeElement
in interface javax.swing.MutableComboBoxModel
public void removeAllElements()
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.