bibliothek.gui.dock.station.stack.tab
Interface TabPaneListener

All Known Implementing Classes:
AbstractTabLayoutManager.PaneInfo, MenuLineLayout.Layout

public interface TabPaneListener

An observer added to a TabPane. This listener is informed when elements are added and removed from the TabPane, and also when the selection changes.

Author:
Benjamin Sigg

Method Summary
 void added(TabPane pane, Dockable dockable)
          Called after dockable has been added to pane.
 void infoComponentChanged(TabPane pane, LonelyTabPaneComponent oldInfo, LonelyTabPaneComponent newInfo)
          Called if the TabPane.getInfoComponent() was replaced.
 void removed(TabPane pane, Dockable dockable)
          Called after dockable has been removed from pane.
 void selectionChanged(TabPane pane)
          Called when the selection on pane has changed.
 

Method Detail

added

void added(TabPane pane,
           Dockable dockable)
Called after dockable has been added to pane.

Parameters:
pane - the parent
dockable - the new child

removed

void removed(TabPane pane,
             Dockable dockable)
Called after dockable has been removed from pane.

Parameters:
pane - the parent
dockable - the removed child

selectionChanged

void selectionChanged(TabPane pane)
Called when the selection on pane has changed.

Parameters:
pane - the TabPane whose selection changed

infoComponentChanged

void infoComponentChanged(TabPane pane,
                          LonelyTabPaneComponent oldInfo,
                          LonelyTabPaneComponent newInfo)
Called if the TabPane.getInfoComponent() was replaced.

Parameters:
pane - the source of this event
oldInfo - the old info component, may be null
newInfo - the new info component, may be null