org.apache.pivot.wtk
Interface CardPaneListener

All Known Implementing Classes:
CardPaneListener.Adapter, CardPaneSkin

public interface CardPaneListener

Card pane listener interface.


Nested Class Summary
static class CardPaneListener.Adapter
          Card pane listener adapter.
 
Method Summary
 Vote previewSelectedIndexChange(CardPane cardPane, int selectedIndex)
          Called to preview a selected index change.
 void selectedIndexChanged(CardPane cardPane, int previousSelectedIndex)
          Called when a card pane's selected index has changed.
 void selectedIndexChangeVetoed(CardPane cardPane, Vote reason)
          Called when a selected index change has been vetoed.
 

Method Detail

previewSelectedIndexChange

Vote previewSelectedIndexChange(CardPane cardPane,
                                int selectedIndex)
Called to preview a selected index change.

Parameters:
cardPane - The source of the event.
selectedIndex - The index that will be selected.

selectedIndexChangeVetoed

void selectedIndexChangeVetoed(CardPane cardPane,
                               Vote reason)
Called when a selected index change has been vetoed.

Parameters:
cardPane - The source of the event.
reason - The reason the event was vetoed.

selectedIndexChanged

void selectedIndexChanged(CardPane cardPane,
                          int previousSelectedIndex)
Called when a card pane's selected index has changed.

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