bibliothek.gui.dock.station.stack.tab
Class AbstractTabLayoutManager<I extends AbstractTabLayoutManagerPane>

java.lang.Object
  extended by bibliothek.gui.dock.station.stack.tab.AbstractTabLayoutManager<I>
Type Parameters:
I - how information about TabPanes gets represented
All Implemented Interfaces:
TabLayoutManager
Direct Known Subclasses:
MenuLineLayout

public abstract class AbstractTabLayoutManager<I extends AbstractTabLayoutManagerPane>
extends Object
implements TabLayoutManager

This layout manager creates a common interface to store information for each TabPane individually.

Author:
Benjamin Sigg

Constructor Summary
AbstractTabLayoutManager()
           
 
Method Summary
protected abstract  I createInfoFor(TabPane pane)
          Creates a new bag for information about pane.
protected abstract  void destroy(I info)
          Called when the information info is no longer required.
 I getInfo(TabPane pane)
          Gets all the information that is stored for pane.
 void install(TabPane pane)
          Informs this TabLayoutManager that from now on it will have to layout pane.
 void uninstall(TabPane pane)
          Informs this TabLayoutManager that it has no longer to look after pane.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface bibliothek.gui.dock.station.stack.tab.TabLayoutManager
getMinimumSize, getPreferredSize, layout
 

Constructor Detail

AbstractTabLayoutManager

public AbstractTabLayoutManager()
Method Detail

install

public void install(TabPane pane)
Description copied from interface: TabLayoutManager
Informs this TabLayoutManager that from now on it will have to layout pane.

Specified by:
install in interface TabLayoutManager
Parameters:
pane - a pane that will be given to TabLayoutManager.layout(TabPane)

uninstall

public void uninstall(TabPane pane)
Description copied from interface: TabLayoutManager
Informs this TabLayoutManager that it has no longer to look after pane.

Specified by:
uninstall in interface TabLayoutManager
Parameters:
pane - a TabPane that will no longer be given to TabLayoutManager.layout(TabPane)

createInfoFor

protected abstract I createInfoFor(TabPane pane)
Creates a new bag for information about pane.

Parameters:
pane - some panel
Returns:
the information for pane

destroy

protected abstract void destroy(I info)
Called when the information info is no longer required.

Parameters:
info - the information bag to delete

getInfo

public I getInfo(TabPane pane)
Gets all the information that is stored for pane.

Parameters:
pane - some panel
Returns:
information about pane or null