bibliothek.gui.dock.station.stack.tab
Class DefaultMenuLineLayoutFactory

java.lang.Object
  extended by bibliothek.gui.dock.station.stack.tab.DefaultMenuLineLayoutFactory
All Implemented Interfaces:
MenuLineLayoutFactory

public class DefaultMenuLineLayoutFactory
extends Object
implements MenuLineLayoutFactory

Default implementation of MenuLineLayoutFactory.

Author:
Benjamin Sigg

Constructor Summary
DefaultMenuLineLayoutFactory()
           
 
Method Summary
 LayoutBlock createInfo(MenuLineLayout layout, TabPane pane)
          Creates the LayoutBlock for the info component of pane.
 MenuLayoutBlock createMenu(MenuLineLayout layout, TabPane pane)
          Creates a new LayoutBlock representing the menu of pane.
 MenuLineLayoutOrder createOrder(MenuLineLayout layout, TabPane pane)
          Creates the order in which the LayoutBlocks should be presented.
 TabsLayoutBlock createTabs(MenuLineLayout layout, TabPane pane)
          Creates a new LayoutBlock representing the tabs of pane.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMenuLineLayoutFactory

public DefaultMenuLineLayoutFactory()
Method Detail

createInfo

public LayoutBlock createInfo(MenuLineLayout layout,
                              TabPane pane)
Description copied from interface: MenuLineLayoutFactory
Creates the LayoutBlock for the info component of pane. This method should just call TabPane.getInfoComponent() adnd LonelyTabPaneComponent.toLayoutBlock().

Specified by:
createInfo in interface MenuLineLayoutFactory
Parameters:
layout - the layout requesting the block
pane - the panel on which the component will be shown
Returns:
the info block or null

createMenu

public MenuLayoutBlock createMenu(MenuLineLayout layout,
                                  TabPane pane)
Description copied from interface: MenuLineLayoutFactory
Creates a new LayoutBlock representing the menu of pane. This method must call MenuLayoutBlock.setMenu(TabMenu) with an appropriate menu.

Specified by:
createMenu in interface MenuLineLayoutFactory
Parameters:
layout - the layout requesting the block
pane - the panel on which the menu will be shown
Returns:
the menu, not null

createTabs

public TabsLayoutBlock createTabs(MenuLineLayout layout,
                                  TabPane pane)
Description copied from interface: MenuLineLayoutFactory
Creates a new LayoutBlock representing the tabs of pane. This method may call AbstractTabsLayoutBlock.setPane(TabPane) with pane.

Specified by:
createTabs in interface MenuLineLayoutFactory
Parameters:
layout - the layout requesting the block
pane - the panel on which the tabs will be shown
Returns:
the tabs, not null

createOrder

public MenuLineLayoutOrder createOrder(MenuLineLayout layout,
                                       TabPane pane)
Description copied from interface: MenuLineLayoutFactory
Creates the order in which the LayoutBlocks should be presented.

Specified by:
createOrder in interface MenuLineLayoutFactory
Parameters:
layout - the layout requesting the order
pane - the panel on which the components will be shown
Returns:
the order, not null