Class 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.
    • Constructor Detail

      • Adapter

        public Adapter()
        Deprecated.
    • 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 interface CardPaneListener
        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 interface CardPaneListener
        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 interface CardPaneListener
        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.