org.apache.pivot.wtk
Interface TabPaneSelectionListener

All Known Implementing Classes:
TabPaneSelectionListener.Adapter, TerraTabPaneSkin

public interface TabPaneSelectionListener

Tab pane selection listener interface.


Nested Class Summary
static class TabPaneSelectionListener.Adapter
          Tab pane selection listener 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.
 

Method Detail

previewSelectedIndexChange

Vote previewSelectedIndexChange(TabPane tabPane,
                                int selectedIndex)
Called to preview a selected index change.

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

selectedIndexChangeVetoed

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

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

selectedIndexChanged

void selectedIndexChanged(TabPane tabPane,
                          int previousSelectedIndex)
Called when a tab pane's selected index has changed.

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.