edu.stanford.smi.protege.util
Class SimpleListModel
java.lang.Object
javax.swing.AbstractListModel
edu.stanford.smi.protege.util.SimpleListModel
- All Implemented Interfaces:
- Serializable, ListModel
- Direct Known Subclasses:
- ConcurrentListModel
public class SimpleListModel
- extends AbstractListModel
A list model where elements are stored in a List
.
- Author:
- Ray Fergerson
- See Also:
- Serialized Form
SimpleListModel
public SimpleListModel()
SimpleListModel
public SimpleListModel(Collection values)
makeList
protected List makeList()
getList
protected List getList()
addValue
public int addValue(Object o)
addValue
public void addValue(Object o,
int index)
addValues
public int addValues(Collection values)
clear
public void clear()
contains
public boolean contains(Object o)
getElementAt
public Object getElementAt(int i)
getSize
public int getSize()
getValues
public List getValues()
indexOf
public int indexOf(Object o)
moveValue
public void moveValue(int start,
int end)
removeValue
public int removeValue(Object o)
removeValues
public int removeValues(Collection values)
setValue
public void setValue(int index,
Object o)
setValues
public void setValues(Collection values)
toList
public List toList()
toString
public String toString()
- Overrides:
toString
in class Object
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2011 Stanford University.