org.jacp.javafx2.rcp.componentLayout
Class FX2ComponentLayout

java.lang.Object
  extended by org.jacp.javafx2.rcp.componentLayout.FX2ComponentLayout
All Implemented Interfaces:
org.jacp.api.componentLayout.IBaseLayout<javafx.scene.Node>

public class FX2ComponentLayout
extends java.lang.Object
implements org.jacp.api.componentLayout.IBaseLayout<javafx.scene.Node>

A FX2ComponentLayout acts as an wrapper to the references of the main menu and the defined bar entries; The menu and the bars are defined in the workbench instance at application startup.

Author:
Andy Moncsek

Constructor Summary
FX2ComponentLayout(javafx.scene.control.MenuBar menu, java.util.Map<org.jacp.api.util.ToolbarPosition,javafx.scene.control.ToolBar> registeredToolBars)
           
 
Method Summary
 javafx.scene.control.MenuBar getMenu()
           
 javafx.scene.control.ToolBar getRegisteredToolBar(org.jacp.api.util.ToolbarPosition position)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FX2ComponentLayout

public FX2ComponentLayout(javafx.scene.control.MenuBar menu,
                          java.util.Map<org.jacp.api.util.ToolbarPosition,javafx.scene.control.ToolBar> registeredToolBars)
Method Detail

getRegisteredToolBar

public javafx.scene.control.ToolBar getRegisteredToolBar(org.jacp.api.util.ToolbarPosition position)
Specified by:
getRegisteredToolBar in interface org.jacp.api.componentLayout.IBaseLayout<javafx.scene.Node>

getMenu

public final javafx.scene.control.MenuBar getMenu()
Specified by:
getMenu in interface org.jacp.api.componentLayout.IBaseLayout<javafx.scene.Node>