util
Class ArrayListComboBoxModel
java.lang.Object
javax.swing.AbstractListModel
util.ArrayListComboBoxModel
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.ComboBoxModel, javax.swing.ListModel
public class ArrayListComboBoxModel
- extends javax.swing.AbstractListModel
- implements javax.swing.ComboBoxModel
- Author:
- Antec
- See Also:
- Serialized Form
Methods inherited from class javax.swing.AbstractListModel |
addListDataListener, getListDataListeners, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.ListModel |
addListDataListener, removeListDataListener |
ArrayListComboBoxModel
public ArrayListComboBoxModel(java.util.ArrayList<java.lang.Object> arrayList)
- Parameters:
arrayList
-
getElementAt
public java.lang.Object getElementAt(int i)
- Specified by:
getElementAt
in interface javax.swing.ListModel
getSize
public int getSize()
- Specified by:
getSize
in interface javax.swing.ListModel
getSelectedItem
public java.lang.Object getSelectedItem()
- Specified by:
getSelectedItem
in interface javax.swing.ComboBoxModel
setSelectedItem
public void setSelectedItem(java.lang.Object newValue)
- Specified by:
setSelectedItem
in interface javax.swing.ComboBoxModel