Interface EnhancedTabbedPane.TabStateListener

Enclosing class:
EnhancedTabbedPane

public static interface EnhancedTabbedPane.TabStateListener
Interface for listeners that are notified of tab state changes
  • Method Details

    • onTabMoved

      default void onTabMoved(int oldIndex, int tabIndex, Component component)
      Called after a tab has been moved
      Parameters:
      oldIndex - The original index of the tab that was moved
      tabIndex - The new index of the tab that was moved
      component - The component that was moved
    • onTabDetaching

      default boolean onTabDetaching(int tabIndex, Component component)
      Called before a tab is detached from the pane
      Parameters:
      tabIndex - The index of the tab being detached
      component - The component in the tab
    • onTabDetached

      default void onTabDetached(Window window, DetachedTabInfo tabInfo)
      Called after a tab has been detached and placed in a window
      Parameters:
      window - The window containing the detached tab
      tabInfo - Information about the detached tab
    • onTabReattaching

      default boolean onTabReattaching(DetachedTabInfo tabInfo)
      Called before a tab is reattached to the pane
      Parameters:
      tabInfo - Information about the tab being reattached
    • onTabReattached

      default void onTabReattached(int tabIndex, Component component)
      Called after a tab has been reattached to the pane
      Parameters:
      tabIndex - The index where the tab was inserted
      component - The component that was reattached
    • onTabCloseRequest

      default void onTabCloseRequest(int tabIndex, Component component, InputEvent event)
      Called when a tab wants to be closed
      Parameters:
      tabIndex - The index of the tab
      component - The component in the tab
      event - The event that triggered the close (maybe null)
    • onTabRemoved

      default void onTabRemoved(int tabIndex, Component component)
      Called after a tab has been removed
      Parameters:
      tabIndex - The index of the tab that was removed
      component - The component that was removed