de.matthiasmann.twl.model
Interface ListModel.ChangeListener

Enclosing interface:
ListModel<T>

public static interface ListModel.ChangeListener


Method Summary
 void allChanged()
          The complete list was recreated.
 void entriesChanged(int first, int last)
          Entries in the range first to last (inclusive) have been changed.
 void entriesDeleted(int first, int last)
          Entries that were at the range first to last (inclusive) have been removed.
 void entriesInserted(int first, int last)
          New entries have been inserted.
 

Method Detail

entriesInserted

void entriesInserted(int first,
                     int last)
New entries have been inserted. The existing entries starting at first have been shifted. The range first-last (inclusive) are new.

Parameters:
first - the first new entry
last - the last new entry. Must be >= first.

entriesDeleted

void entriesDeleted(int first,
                    int last)
Entries that were at the range first to last (inclusive) have been removed. Entries that were following last (starting with last+1) have been shifted to first.

Parameters:
first - the first removed entry
last - the last removed entry. Must be >= first.

entriesChanged

void entriesChanged(int first,
                    int last)
Entries in the range first to last (inclusive) have been changed.

Parameters:
first - the first changed entry
last - the last changed entry. Must be >= first.

allChanged

void allChanged()
The complete list was recreated. There is no known relation between old and new entries. Also the number of entries has complete changed.