FileDocCategorySizeDatePackage
BaseListModel.javaAPI DocApache Lucene 1.91495Mon Feb 20 09:18:14 GMT 2006org.apache.lucene.swing.models

BaseListModel

public class BaseListModel extends AbstractListModel
author
Jonathan Simon - jonathan_s_simon@yahoo.com

Fields Summary
private ArrayList
data
Constructors Summary
public BaseListModel(Iterator iterator)


       
        while (iterator.hasNext()) {
            data.add(iterator.next());
        }
    
Methods Summary
public voidaddRow(java.lang.Object toAdd)

        data.add(toAdd);
        fireContentsChanged(this, 0, getSize());
    
public java.lang.ObjectgetElementAt(int index)

        return data.get(index);
    
public intgetSize()

        return data.size();
    
public voidremoveRow(java.lang.Object toRemove)

        data.remove(toRemove);
        fireContentsChanged(this, 0, getSize());