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 void
onTabCloseRequest
(int tabIndex, Component component, InputEvent event) Called when a tab wants to be closeddefault void
onTabDetached
(Window window, DetachedTabInfo tabInfo) Called after a tab has been detached and placed in a windowdefault boolean
onTabDetaching
(int tabIndex, Component component) Called before a tab is detached from the panedefault void
onTabMoved
(int oldIndex, int tabIndex, Component component) Called after a tab has been moveddefault void
onTabReattached
(int tabIndex, Component component) Called after a tab has been reattached to the panedefault boolean
onTabReattaching
(DetachedTabInfo tabInfo) Called before a tab is reattached to the panedefault void
onTabRemoved
(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
-