org.apache.pivot.wtk
Class TabPaneSelectionListener.Adapter

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

public static class TabPaneSelectionListener.Adapter
extends Object
implements TabPaneSelectionListener

Tab pane selection listener adapter.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TabPaneSelectionListener
TabPaneSelectionListener.Adapter
 
Constructor Summary
TabPaneSelectionListener.Adapter()
           
 
Method Summary
 Vote previewSelectedIndexChange(TabPane tabPane, int selectedIndex)
          Called to preview a selected index change.
 void selectedIndexChanged(TabPane tabPane, int previousSelectedIndex)
          Called when a tab pane's selected index has changed.
 void selectedIndexChangeVetoed(TabPane tabPane, 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

TabPaneSelectionListener.Adapter

public TabPaneSelectionListener.Adapter()
Method Detail

previewSelectedIndexChange

public Vote previewSelectedIndexChange(TabPane tabPane,
                                       int selectedIndex)
Description copied from interface: TabPaneSelectionListener
Called to preview a selected index change.

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

selectedIndexChangeVetoed

public void selectedIndexChangeVetoed(TabPane tabPane,
                                      Vote reason)
Description copied from interface: TabPaneSelectionListener
Called when a selected index change has been vetoed.

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

selectedIndexChanged

public void selectedIndexChanged(TabPane tabPane,
                                 int previousSelectedIndex)
Description copied from interface: TabPaneSelectionListener
Called when a tab pane's selected index has changed.

Specified by:
selectedIndexChanged in interface TabPaneSelectionListener
Parameters:
tabPane - The source of the event.
previousSelectedIndex - If the selection changed directly, contains the index that was previously selected. Otherwise, contains the current selection.