bibliothek.gui.dock.station.stack.tab
Class AbstractTabLayoutManager.PaneInfo

java.lang.Object
  extended by bibliothek.gui.dock.station.stack.tab.AbstractTabLayoutManager.PaneInfo
All Implemented Interfaces:
TabPaneListener
Direct Known Subclasses:
MenuLineLayout.Layout
Enclosing class:
AbstractTabLayoutManager<I extends AbstractTabLayoutManager.PaneInfo>

protected static class AbstractTabLayoutManager.PaneInfo
extends Object
implements TabPaneListener

Information about a TabPane that gets laid out by this AbstractTabLayoutManager. This class implements TabPaneListener, the listener is added and removed from the TabPane automatically.

Author:
Benjamin Sigg

Constructor Summary
AbstractTabLayoutManager.PaneInfo(TabPane pane)
          Creates a new info.
 
Method Summary
 void added(TabPane pane, Dockable dockable)
          Called after dockable has been added to pane.
 TabPane getPane()
          Gets the owner of this info.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTabLayoutManager.PaneInfo

public AbstractTabLayoutManager.PaneInfo(TabPane pane)
Creates a new info.

Parameters:
pane - the owner
Method Detail

getPane

public TabPane getPane()
Gets the owner of this info.

Returns:
the owner, not null

added

public void added(TabPane pane,
                  Dockable dockable)
Description copied from interface: TabPaneListener
Called after dockable has been added to pane.

Specified by:
added in interface TabPaneListener
Parameters:
pane - the parent
dockable - the new child

infoComponentChanged

public void infoComponentChanged(TabPane pane,
                                 LonelyTabPaneComponent oldInfo,
                                 LonelyTabPaneComponent newInfo)
Description copied from interface: TabPaneListener
Called if the TabPane.getInfoComponent() was replaced.

Specified by:
infoComponentChanged in interface TabPaneListener
Parameters:
pane - the source of this event
oldInfo - the old info component, may be null
newInfo - the new info component, may be null

removed

public void removed(TabPane pane,
                    Dockable dockable)
Description copied from interface: TabPaneListener
Called after dockable has been removed from pane.

Specified by:
removed in interface TabPaneListener
Parameters:
pane - the parent
dockable - the removed child

selectionChanged

public void selectionChanged(TabPane pane)
Description copied from interface: TabPaneListener
Called when the selection on pane has changed.

Specified by:
selectionChanged in interface TabPaneListener
Parameters:
pane - the TabPane whose selection changed