de.matthiasmann.twl.model
Interface ListModel<T>

Type Parameters:
T - The type of a list entry
All Known Subinterfaces:
MRUListModel<T>
All Known Implementing Classes:
AbstractListModel, CombinedListModel, EnumListModel, PersistentMRUListModel, ReorderListModel, SimpleChangableListModel, SimpleListModel, SimpleMRUListModel

public interface ListModel<T>


Nested Class Summary
static interface ListModel.ChangeListener
           
 
Method Summary
 void addChangeListener(ListModel.ChangeListener listener)
           
 T getEntry(int index)
           
 java.lang.Object getEntryTooltip(int index)
           
 int getNumEntries()
           
 boolean matchPrefix(int index, java.lang.String prefix)
           
 void removeChangeListener(ListModel.ChangeListener listener)
           
 

Method Detail

getNumEntries

int getNumEntries()

getEntry

T getEntry(int index)

getEntryTooltip

java.lang.Object getEntryTooltip(int index)

matchPrefix

boolean matchPrefix(int index,
                    java.lang.String prefix)

addChangeListener

void addChangeListener(ListModel.ChangeListener listener)

removeChangeListener

void removeChangeListener(ListModel.ChangeListener listener)