Package megamek.common.ui
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.
Interface for customizing tab detachment behavior
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhandleTabDetachment(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 instancetabIndex- The index of the tab being detachedcomponent- The component in the tablocationOnScreen- The screen location where detachment occurred- Returns:
- true if the detachment was handled by this handler, false to use default behavior
-