Package org.apache.pivot.wtk
Interface CardPaneListener
-
- All Known Implementing Classes:
CardPaneListener.Adapter
,CardPaneListener.Listeners
,CardPaneSkin
public interface CardPaneListener
Card pane listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
CardPaneListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
CardPaneListener.Listeners
Card pane listeners.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Vote
previewSelectedIndexChange(CardPane cardPane, int selectedIndex)
Called to preview a selected index change.default void
selectedIndexChanged(CardPane cardPane, int previousSelectedIndex)
Called when a card pane's selected index has changed.default void
selectedIndexChangeVetoed(CardPane cardPane, Vote reason)
Called when a selected index change has been vetoed.
-
-
-
Method Detail
-
previewSelectedIndexChange
default Vote previewSelectedIndexChange(CardPane cardPane, int selectedIndex)
Called to preview a selected index change.- 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
default void selectedIndexChangeVetoed(CardPane cardPane, Vote reason)
Called when a selected index change has been vetoed.- Parameters:
cardPane
- The source of the event.reason
- The reason the event was vetoed.
-
selectedIndexChanged
default void selectedIndexChanged(CardPane cardPane, int previousSelectedIndex)
Called when a card pane's selected index has changed.- 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.
-
-