org.apache.pivot.wtk
Interface ListViewItemListener

All Known Implementing Classes:
ListViewItemListener.Adapter, TerraListViewSkin

public interface ListViewItemListener

List view item listener interface.


Nested Class Summary
static class ListViewItemListener.Adapter
          List view item listener adapter.
 
Method Summary
 void itemInserted(ListView listView, int index)
          Called when an item has been inserted into the list view.
 void itemsCleared(ListView listView)
          Called when the items in a list view have been cleared.
 void itemsRemoved(ListView listView, int index, int count)
          Called when items have been removed from the list view.
 void itemsSorted(ListView listView)
          Called when the items in a list view have been sorted.
 void itemUpdated(ListView listView, int index)
          Called when an item in the list view has been updated.
 

Method Detail

itemInserted

void itemInserted(ListView listView,
                  int index)
Called when an item has been inserted into the list view.

Parameters:
listView - The source of the event.
index - The index of the item that was inserted.

itemsRemoved

void itemsRemoved(ListView listView,
                  int index,
                  int count)
Called when items have been removed from the list view.

Parameters:
listView - The source of the event.
index - The first index affected by the event.
count - The number of items that were removed, or -1 if all items were removed.

itemUpdated

void itemUpdated(ListView listView,
                 int index)
Called when an item in the list view has been updated.

Parameters:
listView - The source of the event.
index - The first index affected by the event.

itemsCleared

void itemsCleared(ListView listView)
Called when the items in a list view have been cleared.

Parameters:
listView -

itemsSorted

void itemsSorted(ListView listView)
Called when the items in a list view have been sorted.

Parameters:
listView - The source of the event.