org.tbee.swing.list
Class ArrayListComboBoxModel<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
org.tbee.swing.list.ArrayListModel<T>
org.tbee.swing.list.ArrayListComboBoxModel<T>
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, RandomAccess, ComboBoxModel, ListModel
public class ArrayListComboBoxModel<T>
- extends ArrayListModel<T>
- implements ComboBoxModel
This class extends ArrayListModel to support a collection as a model for a JComboBox
- See Also:
- Serialized Form
| Methods inherited from class org.tbee.swing.list.ArrayListModel |
add, add, addAll, addListDataListener, clear, fireIntervalAdded, fireIntervalRemoved, fireIntervalUpdated, getElementAt, getSelectedValues, getSelectedValues, getSize, remove, remove, removeAll, removeListDataListener, removeRange, retainAll, set |
| Methods inherited from class java.util.ArrayList |
addAll, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, size, toArray, toArray, trimToSize |
ArrayListComboBoxModel
public ArrayListComboBoxModel()
ArrayListComboBoxModel
public ArrayListComboBoxModel(Collection<T> c)
ArrayListComboBoxModel
public ArrayListComboBoxModel(int initialCapacity)
getSelectedItem
public T getSelectedItem()
- Implements the method in the ComboBoxModel interface
- Specified by:
getSelectedItem in interface ComboBoxModel
- Returns:
- Object
- See Also:
ComboBoxModel.getSelectedItem()
setSelectedItem
public void setSelectedItem(Object item)
- Implements the method in the ComboBoxModel interface
- Specified by:
setSelectedItem in interface ComboBoxModel
- See Also:
ComboBoxModel.setSelectedItem(java.lang.Object)
Copyright © 2011 KnowledgePlaza. All Rights Reserved.