org.apache.pivot.wtk
Class ListViewItemListener.Adapter

java.lang.Object
  extended by org.apache.pivot.wtk.ListViewItemListener.Adapter
All Implemented Interfaces:
ListViewItemListener
Enclosing interface:
ListViewItemListener

public static class ListViewItemListener.Adapter
extends Object
implements ListViewItemListener

List view item listener adapter.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ListViewItemListener
ListViewItemListener.Adapter
 
Constructor Summary
ListViewItemListener.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListViewItemListener.Adapter

public ListViewItemListener.Adapter()
Method Detail

itemInserted

public void itemInserted(ListView listView,
                         int index)
Description copied from interface: ListViewItemListener
Called when an item has been inserted into the list view.

Specified by:
itemInserted in interface ListViewItemListener
Parameters:
listView - The source of the event.
index - The index of the item that was inserted.

itemsRemoved

public void itemsRemoved(ListView listView,
                         int index,
                         int count)
Description copied from interface: ListViewItemListener
Called when items have been removed from the list view.

Specified by:
itemsRemoved in interface ListViewItemListener
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

public void itemUpdated(ListView listView,
                        int index)
Description copied from interface: ListViewItemListener
Called when an item in the list view has been updated.

Specified by:
itemUpdated in interface ListViewItemListener
Parameters:
listView - The source of the event.
index - The first index affected by the event.

itemsCleared

public void itemsCleared(ListView listView)
Description copied from interface: ListViewItemListener
Called when the items in a list view have been cleared.

Specified by:
itemsCleared in interface ListViewItemListener

itemsSorted

public void itemsSorted(ListView listView)
Description copied from interface: ListViewItemListener
Called when the items in a list view have been sorted.

Specified by:
itemsSorted in interface ListViewItemListener
Parameters:
listView - The source of the event.