org.apache.pivot.wtk
Interface SpinnerSelectionListener

All Known Implementing Classes:
SpinnerSelectionListener.Adapter, TerraSpinnerSkin

public interface SpinnerSelectionListener

Spinner selection listener interface.


Nested Class Summary
static class SpinnerSelectionListener.Adapter
          Spinner selection listener adapter.
 
Method Summary
 void selectedIndexChanged(Spinner spinner, int previousSelectedIndex)
          Called when a spinner's selected index has changed.
 void selectedItemChanged(Spinner spinner, Object previousSelectedItem)
          Called when a spinners's selected item has changed.
 

Method Detail

selectedIndexChanged

void selectedIndexChanged(Spinner spinner,
                          int previousSelectedIndex)
Called when a spinner's selected index has changed.

Parameters:
spinner - 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(Spinner spinner,
                         Object previousSelectedItem)
Called when a spinners's selected item has changed.

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