|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractListModel
com.eviware.soapui.support.swing.ExtendedComboBoxModel
public class ExtendedComboBoxModel
| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
ExtendedComboBoxModel()
Constructs an empty DefaultComboBoxModel object. |
|
ExtendedComboBoxModel(java.lang.Object[] items)
Constructs a DefaultComboBoxModel object initialized with an array of objects. |
|
ExtendedComboBoxModel(java.util.Vector<?> v)
Constructs a DefaultComboBoxModel object initialized with a vector. |
|
| 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 |
setElementAt(java.lang.Object obj,
int index)
|
void |
setSelectedItem(java.lang.Object anObject)
Set the value of the selected item. |
| 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 ExtendedComboBoxModel()
public ExtendedComboBoxModel(java.lang.Object[] items)
items - an array of Object objectspublic ExtendedComboBoxModel(java.util.Vector<?> v)
v - a Vector object ...| Method Detail |
|---|
public void setSelectedItem(java.lang.Object anObject)
setSelectedItem in interface javax.swing.ComboBoxModelanObject - The combo box value or null for no selection.public java.lang.Object getSelectedItem()
getSelectedItem in interface javax.swing.ComboBoxModelpublic int getSize()
getSize in interface javax.swing.ListModelpublic java.lang.Object getElementAt(int index)
getElementAt in interface javax.swing.ListModelpublic 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.MutableComboBoxModelpublic void removeElementAt(int index)
removeElementAt in interface javax.swing.MutableComboBoxModelpublic void removeElement(java.lang.Object anObject)
removeElement in interface javax.swing.MutableComboBoxModelpublic void removeAllElements()
public void setElementAt(java.lang.Object obj,
int index)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||