portal.comp.list
Interface ListDataModelListener

All Superinterfaces:
java.io.Serializable

public interface ListDataModelListener
extends java.io.Serializable

Author:
bderidder A listener that can be registered to a ListDataModel to be notified when new items are inserted or existing items removed.

Method Summary
 void itemInserted(StringModel newValue, int newIndex)
          Is called after an items has been inserted.
 void itemRemoved(StringModel oldValue, int oldIndex)
          Is called after an item has been removed.
 void listCleared()
          Is called after the ListDataModel is cleared.
 

Method Detail

itemRemoved

public void itemRemoved(StringModel oldValue,
                        int oldIndex)
Is called after an item has been removed. The corresponding ListDataModel has already been updated.

Parameters:
oldValue - the value of the item that has been removed
oldIndex - the index of the item that has been removed

itemInserted

public void itemInserted(StringModel newValue,
                         int newIndex)
Is called after an items has been inserted. The corresponding ListDataModel has already been updated.

Parameters:
newValue - the value of the item that has been inserted
newIndex - the new index of the item that has been inserted

listCleared

public void listCleared()
Is called after the ListDataModel is cleared. The corresponding ListDataModel has already been updated.