public class DefaultMenuLineLayoutFactory extends java.lang.Object implements MenuLineLayoutFactory
MenuLineLayoutFactory
.Constructor and Description |
---|
DefaultMenuLineLayoutFactory() |
Modifier and Type | Method and Description |
---|---|
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
LayoutBlock s should be presented. |
TabsLayoutBlock |
createTabs(MenuLineLayout layout,
TabPane pane)
Creates a new
LayoutBlock representing the tabs of pane . |
public LayoutBlock createInfo(MenuLineLayout layout, TabPane pane)
MenuLineLayoutFactory
LayoutBlock
for the info component of pane
. This method
should just call TabPane.getInfoComponent()
and LonelyTabPaneComponent.toLayoutBlock()
.createInfo
in interface MenuLineLayoutFactory
layout
- the layout requesting the blockpane
- the panel on which the component will be shownnull
public MenuLayoutBlock createMenu(MenuLineLayout layout, TabPane pane)
MenuLineLayoutFactory
LayoutBlock
representing the menu of pane
. This method
must call MenuLayoutBlock.setMenu(TabMenu)
with an appropriate menu.createMenu
in interface MenuLineLayoutFactory
layout
- the layout requesting the blockpane
- the panel on which the menu will be shownnull
public TabsLayoutBlock createTabs(MenuLineLayout layout, TabPane pane)
MenuLineLayoutFactory
LayoutBlock
representing the tabs of pane
. This method
may call AbstractTabsLayoutBlock.setPane(TabPane)
with pane
.createTabs
in interface MenuLineLayoutFactory
layout
- the layout requesting the blockpane
- the panel on which the tabs will be shownnull
public MenuLineLayoutOrder createOrder(MenuLineLayout layout, TabPane pane)
MenuLineLayoutFactory
LayoutBlock
s should be presented.createOrder
in interface MenuLineLayoutFactory
layout
- the layout requesting the orderpane
- the panel on which the components will be shownnull