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

All Known Implementing Classes:
DefaultMenuLineLayoutFactory

public interface MenuLineLayoutFactory

A factory creating various LayoutBlocks that are required by the MenuLineLayout. These objects are responsible for layouting a subset of components, clients may replace this factory and return blocks that behave different that the original blocks.

Author:
Benjamin Sigg

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.
 

Method Detail

createMenu

MenuLayoutBlock createMenu(MenuLineLayout layout,
                           TabPane pane)
Creates a new LayoutBlock representing the menu of pane. This method must call MenuLayoutBlock.setMenu(TabMenu) with an appropriate menu.

Parameters:
layout - the layout requesting the block
pane - the panel on which the menu will be shown
Returns:
the menu, not null

createTabs

TabsLayoutBlock createTabs(MenuLineLayout layout,
                           TabPane pane)
Creates a new LayoutBlock representing the tabs of pane. This method may call AbstractTabsLayoutBlock.setPane(TabPane) with pane.

Parameters:
layout - the layout requesting the block
pane - the panel on which the tabs will be shown
Returns:
the tabs, not null

createInfo

LayoutBlock createInfo(MenuLineLayout layout,
                       TabPane pane)
Creates the LayoutBlock for the info component of pane. This method should just call TabPane.getInfoComponent() adnd LonelyTabPaneComponent.toLayoutBlock().

Parameters:
layout - the layout requesting the block
pane - the panel on which the component will be shown
Returns:
the info block or null

createOrder

MenuLineLayoutOrder createOrder(MenuLineLayout layout,
                                TabPane pane)
Creates the order in which the LayoutBlocks should be presented.

Parameters:
layout - the layout requesting the order
pane - the panel on which the components will be shown
Returns:
the order, not null