Interface CardPaneListener

    • 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.