Interface EnhancedTabbedPane.TabDetachmentHandler

Enclosing class:
EnhancedTabbedPane
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface EnhancedTabbedPane.TabDetachmentHandler
Interface for customizing tab detachment behavior
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    handleTabDetachment(EnhancedTabbedPane tabbedPane, int tabIndex, Component component, Point locationOnScreen)
    Handles custom tab detachment behavior
  • Method Details

    • handleTabDetachment

      boolean handleTabDetachment(EnhancedTabbedPane tabbedPane, int tabIndex, Component component, Point locationOnScreen)
      Handles custom tab detachment behavior
      Parameters:
      tabbedPane - The tabbedPane instance
      tabIndex - The index of the tab being detached
      component - The component in the tab
      locationOnScreen - The screen location where detachment occurred
      Returns:
      true if the detachment was handled by this handler, false to use default behavior