Interface AccordionSelectionListener

    • Method Detail

      • previewSelectedIndexChange

        default Vote previewSelectedIndexChange​(Accordion accordion,
                                                int selectedIndex)
        Called to preview a selected index change.
        Parameters:
        accordion - The source of the event.
        selectedIndex - The index that will be selected.
        Returns:
        The consensus vote as to whether to allow the selected index change.
      • selectedIndexChangeVetoed

        default void selectedIndexChangeVetoed​(Accordion accordion,
                                               Vote reason)
        Called when a selected index change has been vetoed.
        Parameters:
        accordion - The source of the event.
        reason - The reason the event was vetoed.
      • selectedIndexChanged

        default void selectedIndexChanged​(Accordion accordion,
                                          int previousSelectedIndex)
        Called when an accordion's selected index has changed.
        Parameters:
        accordion - The source of the event.
        previousSelectedIndex - If the selection changed directly, contains the index that was previously selected. Otherwise, contains the current selection.