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 SummaryModifier 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- 
onTabMovedCalled 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
 
- 
onTabDetachingCalled before a tab is detached from the pane- Parameters:
- tabIndex- The index of the tab being detached
- component- The component in the tab
 
- 
onTabDetachedCalled 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
 
- 
onTabReattachingCalled before a tab is reattached to the pane- Parameters:
- tabInfo- Information about the tab being reattached
 
- 
onTabReattachedCalled after a tab has been reattached to the pane- Parameters:
- tabIndex- The index where the tab was inserted
- component- The component that was reattached
 
- 
onTabCloseRequestCalled 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)
 
- 
onTabRemovedCalled after a tab has been removed- Parameters:
- tabIndex- The index of the tab that was removed
- component- The component that was removed
 
 
-