Package org.apache.pivot.wtk
Interface TabPaneSelectionListener
-
- All Known Implementing Classes:
TabPaneSelectionListener.Adapter
,TabPaneSelectionListener.Listeners
,TerraTabPaneSkin
public interface TabPaneSelectionListener
Tab pane selection listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TabPaneSelectionListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
TabPaneSelectionListener.Listeners
Tab pane selection listeners.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Vote
previewSelectedIndexChange(TabPane tabPane, int selectedIndex)
Called to preview a selected index change.default void
selectedIndexChanged(TabPane tabPane, int previousSelectedIndex)
Called when a tab pane's selected index has changed.default void
selectedIndexChangeVetoed(TabPane tabPane, Vote reason)
Called when a selected index change has been vetoed.
-
-
-
Method Detail
-
previewSelectedIndexChange
default 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.- Returns:
- The vote result as to whether to accept this selected index change.
-
selectedIndexChangeVetoed
default 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
default 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.
-
-