info.joseluismartin.gui.list
Class ListListModel
java.lang.Object
javax.swing.AbstractListModel
info.joseluismartin.gui.list.ListListModel
- All Implemented Interfaces:
- Serializable, ListModel
- Direct Known Subclasses:
- ListComboBoxModel
public class ListListModel
- extends AbstractListModel
A ListModel that uses a List as Container
- Author:
- Jose Luis Martin - (jlm@joseluismartin.info)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListListModel
public ListListModel()
ListListModel
public ListListModel(List<?> list)
getElementAt
public Object getElementAt(int index)
getSize
public int getSize()
getList
public List getList()
- Returns:
- the list
setList
public void setList(List list)
- Parameters:
list
- the list to set
removeAll
public void removeAll(Collection c)
- Parameters:
c
- collection with objects to remove
addAll
public void addAll(Collection c)
- Parameters:
c
- collection with objets to add
clear
public void clear()
Copyright © 2013 JDAL. All Rights Reserved.