org.apache.pivot.wtk
Interface ListButtonSelectionListener

All Known Implementing Classes:
ListButtonSelectionListener.Adapter, ListButtonSkin, TerraListButtonSkin

public interface ListButtonSelectionListener

List button selection listener interface.


Nested Class Summary
static class ListButtonSelectionListener.Adapter
          List button selection listener adapter.
 
Method Summary
 void selectedIndexChanged(ListButton listButton, int previousSelectedIndex)
          Called when a list button's selected index has changed.
 void selectedItemChanged(ListButton listButton, Object previousSelectedItem)
          Called when a list button's selected item has changed.
 

Method Detail

selectedIndexChanged

void selectedIndexChanged(ListButton listButton,
                          int previousSelectedIndex)
Called when a list button's selected index has changed.

Parameters:
listButton - The source of the event.
previousSelectedIndex - If the selection changed directly, contains the index that was previously selected. Otherwise, contains the current selection.

selectedItemChanged

void selectedItemChanged(ListButton listButton,
                         Object previousSelectedItem)
Called when a list button's selected item has changed.

Parameters:
listButton - The source of the event.
previousSelectedItem - The item that was previously selected, or null if the previous selection cannot be determined.