Interface TabPaneSelectionListener

    • Method Detail

      • previewSelectedIndexChange

        default Vote previewSelectedIndexChange​(TabPane tabPane,
                                                int selectedIndex)
        Called to preview a selected index change.
        Parameters:
        tabPane - The source of the event.
        selectedIndex - The index that will be selected.
        Returns:
        The vote result as to whether to accept this selected index change.
      • selectedIndexChangeVetoed

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

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