org.apache.pivot.wtk
Class ListButtonSelectionListener.Adapter

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

public static class ListButtonSelectionListener.Adapter
extends Object
implements ListButtonSelectionListener

List button selection listener adapter.


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

Constructor Detail

ListButtonSelectionListener.Adapter

public ListButtonSelectionListener.Adapter()
Method Detail

selectedIndexChanged

public void selectedIndexChanged(ListButton listButton,
                                 int previousSelectedIndex)
Description copied from interface: ListButtonSelectionListener
Called when a list button's selected index has changed.

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

public void selectedItemChanged(ListButton listButton,
                                Object previousSelectedItem)
Description copied from interface: ListButtonSelectionListener
Called when a list button's selected item has changed.

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