Package org.apache.pivot.wtk
Class TabPaneSelectionListener.Adapter
- java.lang.Object
-
- org.apache.pivot.wtk.TabPaneSelectionListener.Adapter
-
- All Implemented Interfaces:
TabPaneSelectionListener
- Enclosing interface:
- TabPaneSelectionListener
@Deprecated public static class TabPaneSelectionListener.Adapter extends java.lang.Object implements TabPaneSelectionListener
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.Tab pane selection listener adapter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TabPaneSelectionListener
TabPaneSelectionListener.Adapter, TabPaneSelectionListener.Listeners
-
-
Constructor Summary
Constructors Constructor Description Adapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Vote
previewSelectedIndexChange(TabPane tabPane, int selectedIndex)
Deprecated.Called to preview a selected index change.void
selectedIndexChanged(TabPane tabPane, int previousSelectedIndex)
Deprecated.Called when a tab pane's selected index has changed.void
selectedIndexChangeVetoed(TabPane tabPane, Vote reason)
Deprecated.Called when a selected index change has been vetoed.
-
-
-
Method Detail
-
previewSelectedIndexChange
public Vote previewSelectedIndexChange(TabPane tabPane, int selectedIndex)
Deprecated.Description copied from interface:TabPaneSelectionListener
Called to preview a selected index change.- Specified by:
previewSelectedIndexChange
in interfaceTabPaneSelectionListener
- 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
public void selectedIndexChangeVetoed(TabPane tabPane, Vote reason)
Deprecated.Description copied from interface:TabPaneSelectionListener
Called when a selected index change has been vetoed.- Specified by:
selectedIndexChangeVetoed
in interfaceTabPaneSelectionListener
- Parameters:
tabPane
- The source of the event.reason
- The reason the event was vetoed.
-
selectedIndexChanged
public void selectedIndexChanged(TabPane tabPane, int previousSelectedIndex)
Deprecated.Description copied from interface:TabPaneSelectionListener
Called when a tab pane's selected index has changed.- Specified by:
selectedIndexChanged
in interfaceTabPaneSelectionListener
- 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.
-
-