org.apache.pivot.wtk
Class CardPaneListener.Adapter

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

public static class CardPaneListener.Adapter
extends Object
implements CardPaneListener

Card pane listener adapter.


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

Constructor Detail

CardPaneListener.Adapter

public CardPaneListener.Adapter()
Method Detail

previewSelectedIndexChange

public Vote previewSelectedIndexChange(CardPane cardPane,
                                       int selectedIndex)
Description copied from interface: CardPaneListener
Called to preview a selected index change.

Specified by:
previewSelectedIndexChange in interface CardPaneListener
Parameters:
cardPane - The source of the event.
selectedIndex - The index that will be selected.

selectedIndexChangeVetoed

public void selectedIndexChangeVetoed(CardPane cardPane,
                                      Vote reason)
Description copied from interface: CardPaneListener
Called when a selected index change has been vetoed.

Specified by:
selectedIndexChangeVetoed in interface CardPaneListener
Parameters:
cardPane - The source of the event.
reason - The reason the event was vetoed.

selectedIndexChanged

public void selectedIndexChanged(CardPane cardPane,
                                 int previousSelectedIndex)
Description copied from interface: CardPaneListener
Called when a card pane's selected index has changed.

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