org.xith3d.ui.hud.listeners
Interface ListSelectionListener

All Known Implementing Classes:
WidgetEventsReceiverAdapter

public interface ListSelectionListener

A ListSelectionListener is notified of any selection change of a List Widget.


Method Summary
 void onListItemClicked(AbstractList list, java.lang.Object item, int itemIndex)
          This event is fired, when a List Item is clicked.
 void onListSelectionChanged(AbstractList list, java.lang.Object oldSelectedItem, java.lang.Object newSelectedItem, int oldSelectedIndex, int newSelectedIndex)
          This event is fired, when the List's selection has changed.
 

Method Detail

onListSelectionChanged

void onListSelectionChanged(AbstractList list,
                            java.lang.Object oldSelectedItem,
                            java.lang.Object newSelectedItem,
                            int oldSelectedIndex,
                            int newSelectedIndex)
This event is fired, when the List's selection has changed.

Parameters:
list - the list, that fired this event
oldSelectedItem - the pre-event selected Item
newSelectedItem - the new current selected Item
oldSelectedIndex - the pre-event selected index
newSelectedIndex - the new current selected index

onListItemClicked

void onListItemClicked(AbstractList list,
                       java.lang.Object item,
                       int itemIndex)
This event is fired, when a List Item is clicked.

Parameters:
list - the list, that fired this event
item - the clicked Item
itemIndex -