net.sf.jpackit.ui.swing
Class ArrayListListModel
java.lang.Object
javax.swing.AbstractListModel
net.sf.jpackit.ui.swing.ArrayListListModel
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.ComboBoxModel, javax.swing.ListModel, javax.swing.MutableComboBoxModel
public class ArrayListListModel
- extends javax.swing.AbstractListModel
- implements javax.swing.MutableComboBoxModel
ListModel based on ArrayList
- Author:
- Kamil K. Shamgunov
- See Also:
- Serialized Form
Fields inherited from class javax.swing.AbstractListModel |
listenerList |
Constructor Summary |
ArrayListListModel(java.util.List list)
Creates a new instance of ArrayListListModel |
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 |
ArrayListListModel
public ArrayListListModel(java.util.List list)
- Creates a new instance of ArrayListListModel
getElementAt
public java.lang.Object getElementAt(int param)
- Specified by:
getElementAt
in interface javax.swing.ListModel
getSize
public int getSize()
- Specified by:
getSize
in interface javax.swing.ListModel
addElement
public void addElement(java.lang.Object obj)
- Specified by:
addElement
in interface javax.swing.MutableComboBoxModel
getSelectedItem
public java.lang.Object getSelectedItem()
- Specified by:
getSelectedItem
in interface javax.swing.ComboBoxModel
insertElementAt
public void insertElementAt(java.lang.Object obj,
int param)
- Specified by:
insertElementAt
in interface javax.swing.MutableComboBoxModel
removeElement
public void removeElement(java.lang.Object obj)
- Specified by:
removeElement
in interface javax.swing.MutableComboBoxModel
removeElementAt
public void removeElementAt(int param)
- Specified by:
removeElementAt
in interface javax.swing.MutableComboBoxModel
setSelectedItem
public void setSelectedItem(java.lang.Object obj)
- Specified by:
setSelectedItem
in interface javax.swing.ComboBoxModel
sort
public void sort()