Protege-2000 1.7

edu.stanford.smi.protege.util
Class SimpleListModel

java.lang.Object
  |
  +--javax.swing.AbstractListModel
        |
        +--edu.stanford.smi.protege.util.SimpleListModel
All Implemented Interfaces:
ListModel, Serializable

public class SimpleListModel
extends AbstractListModel

Description of the class

Author:
Ray Fergerson
See Also:
Serialized Form

Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
SimpleListModel()
           
SimpleListModel(Collection values)
           
 
Method Summary
 int addValue(Object o)
           
 void addValue(Object o, int index)
           
 int addValues(Collection values)
           
 void clear()
           
 boolean contains(Object o)
           
 Object getElementAt(int i)
           
 int getSize()
           
 List getValues()
           
 int indexOf(Object o)
           
 void moveValue(int start, int end)
           
 int removeValue(Object o)
           
 int removeValues(Collection values)
           
 void setValue(int index, Object o)
           
 void setValues(Collection values)
           
 String toString()
           
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleListModel

public SimpleListModel()

SimpleListModel

public SimpleListModel(Collection values)
Method Detail

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)
Overrides:
getElementAt in class AbstractListModel

getSize

public int getSize()
Overrides:
getSize in class AbstractListModel

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)

toString

public String toString()
Overrides:
toString in class Object

Protege-2000 1.7

Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.