Package org.apache.pivot.wtk
Class CardPaneListener.Adapter
- java.lang.Object
-
- org.apache.pivot.wtk.CardPaneListener.Adapter
-
- All Implemented Interfaces:
CardPaneListener
- Enclosing interface:
- CardPaneListener
@Deprecated public static class CardPaneListener.Adapter extends java.lang.Object implements CardPaneListener
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.Card pane listener adapter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.CardPaneListener
CardPaneListener.Adapter, CardPaneListener.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(CardPane cardPane, int selectedIndex)
Deprecated.Called to preview a selected index change.void
selectedIndexChanged(CardPane cardPane, int previousSelectedIndex)
Deprecated.Called when a card pane's selected index has changed.void
selectedIndexChangeVetoed(CardPane cardPane, Vote reason)
Deprecated.Called when a selected index change has been vetoed.
-
-
-
Method Detail
-
previewSelectedIndexChange
public Vote previewSelectedIndexChange(CardPane cardPane, int selectedIndex)
Deprecated.Description copied from interface:CardPaneListener
Called to preview a selected index change.- Specified by:
previewSelectedIndexChange
in interfaceCardPaneListener
- Parameters:
cardPane
- The source of the event.selectedIndex
- The index that will be selected.- Returns:
- The consensus vote as to whether to allow this change.
-
selectedIndexChangeVetoed
public void selectedIndexChangeVetoed(CardPane cardPane, Vote reason)
Deprecated.Description copied from interface:CardPaneListener
Called when a selected index change has been vetoed.- Specified by:
selectedIndexChangeVetoed
in interfaceCardPaneListener
- Parameters:
cardPane
- The source of the event.reason
- The reason the event was vetoed.
-
selectedIndexChanged
public void selectedIndexChanged(CardPane cardPane, int previousSelectedIndex)
Deprecated.Description copied from interface:CardPaneListener
Called when a card pane's selected index has changed.- Specified by:
selectedIndexChanged
in interfaceCardPaneListener
- 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.
-
-