org.homeunix.thecave.moss.swing.model
Class DefaultGenericListModel<T>
java.lang.Object
javax.swing.AbstractListModel
org.homeunix.thecave.moss.swing.model.DefaultGenericListModel<T>
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.ListModel
public class DefaultGenericListModel<T>
- extends javax.swing.AbstractListModel
- See Also:
- Serialized Form
| Fields inherited from class javax.swing.AbstractListModel |
listenerList |
| 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 |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
DefaultGenericListModel
public DefaultGenericListModel()
addElement
public void addElement(T value)
addAllElements
public void addAllElements(java.util.Collection<T> values)
removeElement
public boolean removeElement(T value)
removeAllElements
public boolean removeAllElements(java.util.Collection<T> values)
retainAllElements
public boolean retainAllElements(java.util.Collection<T> values)
clear
public void clear()
getElementAt
public T getElementAt(int index)
getSize
public int getSize()
getList
public java.util.List<T> getList()
- Get an unmodifiable link to the backing list. This allows you to access
the list in a foreach loop, among other List-only functions.
- Returns: