Interface TabPaneListener

    • Method Detail

      • tabInserted

        default void tabInserted​(TabPane tabPane,
                                 int index)
        Called when a tab has been inserted into a tab pane's tab sequence.
        Parameters:
        tabPane - The source of this event.
        index - Where the newly inserted tab was placed.
      • previewRemoveTabs

        default Vote previewRemoveTabs​(TabPane tabPane,
                                       int index,
                                       int count)
        Called to preview a tab removal.
        Parameters:
        tabPane - The component that wants to change.
        index - The proposed starting index of the tab or tabs to be removed.
        count - The count of tabs to remove.
        Returns:
        Whether or not to accept this tab removal (or defer it).
      • removeTabsVetoed

        default void removeTabsVetoed​(TabPane tabPane,
                                      Vote reason)
        Called when a tab removal has been vetoed.
        Parameters:
        tabPane - The source of this event.
        reason - The vote result that vetoed the tab removal.
      • tabsRemoved

        default void tabsRemoved​(TabPane tabPane,
                                 int index,
                                 Sequence<Component> tabs)
        Called when a tab has been removed from a tab pane's tab sequence.
        Parameters:
        tabPane - The source of this event.
        index - The starting location of the tabs that were removed.
        tabs - The actual sequence of tab components that were removed.
      • cornerChanged

        default void cornerChanged​(TabPane tabPane,
                                   Component previousCorner)
        Called when a tab pane's corner component has changed.
        Parameters:
        tabPane - The component that changed.
        previousCorner - What the corner component used to be.
      • tabDataRendererChanged

        default void tabDataRendererChanged​(TabPane tabPane,
                                            Button.DataRenderer previousTabDataRenderer)
        Called when a tab pane's tab data renderer has changed.
        Parameters:
        tabPane - The source of this event.
        previousTabDataRenderer - The previous renderer for the tab data.
      • closeableChanged

        default void closeableChanged​(TabPane tabPane)
        Called when a tab pane's closeable property has changed.
        Parameters:
        tabPane - The component that changed.
      • collapsibleChanged

        default void collapsibleChanged​(TabPane tabPane)
        Called when a tab pane's collapsible property has changed.
        Parameters:
        tabPane - The source of this event.