de.matthiasmann.twl.model
Class AbstractListModel<T>

java.lang.Object
  extended by de.matthiasmann.twl.model.AbstractListModel<T>
Type Parameters:
T - the type of a list entry
All Implemented Interfaces:
ListModel<T>
Direct Known Subclasses:
ReorderListModel, SimpleListModel

public abstract class AbstractListModel<T>
extends java.lang.Object
implements ListModel<T>

Abstract base class to simplify implementating ListModels.


Nested Class Summary
 
Nested classes/interfaces inherited from interface de.matthiasmann.twl.model.ListModel
ListModel.ChangeListener
 
Constructor Summary
AbstractListModel()
           
 
Method Summary
 void addChangeListener(ListModel.ChangeListener listener)
           
protected  void fireAllChanged()
           
protected  void fireEntriesChanged(int first, int last)
           
protected  void fireEntriesDeleted(int first, int last)
           
protected  void fireEntriesInserted(int first, int last)
           
 void removeChangeListener(ListModel.ChangeListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.matthiasmann.twl.model.ListModel
getEntry, getEntryTooltip, getNumEntries, matchPrefix
 

Constructor Detail

AbstractListModel

public AbstractListModel()
Method Detail

addChangeListener

public void addChangeListener(ListModel.ChangeListener listener)
Specified by:
addChangeListener in interface ListModel<T>

removeChangeListener

public void removeChangeListener(ListModel.ChangeListener listener)
Specified by:
removeChangeListener in interface ListModel<T>

fireEntriesInserted

protected void fireEntriesInserted(int first,
                                   int last)

fireEntriesDeleted

protected void fireEntriesDeleted(int first,
                                  int last)

fireEntriesChanged

protected void fireEntriesChanged(int first,
                                  int last)

fireAllChanged

protected void fireAllChanged()