public class ArrayListComboBoxModel<E>
extends javax.swing.AbstractListModel<E>
implements javax.swing.ComboBoxModel<E>
ArrayList.| Constructor and Description |
|---|
ArrayListComboBoxModel(java.util.ArrayList<E> arrayList) |
ArrayListComboBoxModel(java.util.ArrayList<E> arrayList,
boolean sort) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addValue(E val) |
void |
clear()
Same as
removeAll() |
E |
getElementAt(int index) |
java.lang.Object |
getSelectedItem() |
int |
getSize() |
E |
getValue(int index) |
void |
removeAll()
Same as
clear() |
boolean |
removeValue(E val) |
void |
setSelectedItem(java.lang.Object anItem) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerpublic ArrayListComboBoxModel(java.util.ArrayList<E> arrayList)
public ArrayListComboBoxModel(java.util.ArrayList<E> arrayList, boolean sort)
public int getSize()
getSize in interface javax.swing.ListModel<E>public E getElementAt(int index)
getElementAt in interface javax.swing.ListModel<E>public void setSelectedItem(java.lang.Object anItem)
setSelectedItem in interface javax.swing.ComboBoxModel<E>public java.lang.Object getSelectedItem()
getSelectedItem in interface javax.swing.ComboBoxModel<E>public boolean addValue(E val)
public boolean removeValue(E val)
public E getValue(int index)
public void removeAll()
clear()public void clear()
removeAll()Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.