Package megamek.common.ui
Interface EnhancedTabbedPane.TabStateListener
- Enclosing class:
- EnhancedTabbedPane
public static interface EnhancedTabbedPane.TabStateListener
Interface for listeners that are notified of tab state changes
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonTabCloseRequest(int tabIndex, Component component, InputEvent event) Called when a tab wants to be closeddefault voidonTabDetached(Window window, DetachedTabInfo tabInfo) Called after a tab has been detached and placed in a windowdefault booleanonTabDetaching(int tabIndex, Component component) Called before a tab is detached from the panedefault voidonTabMoved(int oldIndex, int tabIndex, Component component) Called after a tab has been moveddefault voidonTabReattached(int tabIndex, Component component) Called after a tab has been reattached to the panedefault booleanonTabReattaching(DetachedTabInfo tabInfo) Called before a tab is reattached to the panedefault voidonTabRemoved(int tabIndex, Component component) Called after a tab has been removed
-
Method Details
-
onTabMoved
Called after a tab has been moved- Parameters:
oldIndex- The original index of the tab that was movedtabIndex- The new index of the tab that was movedcomponent- The component that was moved
-
onTabDetaching
Called before a tab is detached from the pane- Parameters:
tabIndex- The index of the tab being detachedcomponent- The component in the tab
-
onTabDetached
Called after a tab has been detached and placed in a window- Parameters:
window- The window containing the detached tabtabInfo- Information about the detached tab
-
onTabReattaching
Called before a tab is reattached to the pane- Parameters:
tabInfo- Information about the tab being reattached
-
onTabReattached
Called after a tab has been reattached to the pane- Parameters:
tabIndex- The index where the tab was insertedcomponent- The component that was reattached
-
onTabCloseRequest
Called when a tab wants to be closed- Parameters:
tabIndex- The index of the tabcomponent- The component in the tabevent- The event that triggered the close (maybe null)
-
onTabRemoved
Called after a tab has been removed- Parameters:
tabIndex- The index of the tab that was removedcomponent- The component that was removed
-