org.apache.pivot.wtk
Class SpinnerSelectionListener.Adapter

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

public static class SpinnerSelectionListener.Adapter
extends Object
implements SpinnerSelectionListener

Spinner selection listener adapter.


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

Constructor Detail

SpinnerSelectionListener.Adapter

public SpinnerSelectionListener.Adapter()
Method Detail

selectedIndexChanged

public void selectedIndexChanged(Spinner spinner,
                                 int previousSelectedIndex)
Description copied from interface: SpinnerSelectionListener
Called when a spinner's selected index has changed.

Specified by:
selectedIndexChanged in interface SpinnerSelectionListener
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

public void selectedItemChanged(Spinner spinner,
                                Object previousSelectedItem)
Description copied from interface: SpinnerSelectionListener
Called when a spinners's selected item has changed.

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