Package org.apache.pivot.wtk
Interface ListViewItemListener
-
- All Known Implementing Classes:
ListViewItemListener.Adapter
,ListViewItemListener.Listeners
,TerraListViewSkin
public interface ListViewItemListener
List view item listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ListViewItemListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
ListViewItemListener.Listeners
List view item listeners.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
itemInserted(ListView listView, int index)
Called when an item has been inserted into the list view.default void
itemsCleared(ListView listView)
Called when the items in a list view have been cleared.default void
itemsRemoved(ListView listView, int index, int count)
Called when items have been removed from the list view.default void
itemsSorted(ListView listView)
Called when the items in a list view have been sorted.default void
itemUpdated(ListView listView, int index)
Called when an item in the list view has been updated.
-
-
-
Method Detail
-
itemInserted
default 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
default 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
default 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
default void itemsCleared(ListView listView)
Called when the items in a list view have been cleared.- Parameters:
listView
- The source of the event.
-
itemsSorted
default void itemsSorted(ListView listView)
Called when the items in a list view have been sorted.- Parameters:
listView
- The source of the event.
-
-