public class FXWorkbenchLayout extends java.lang.Object implements IWorkbenchLayout<javafx.scene.Node>
Constructor and Description |
---|
FXWorkbenchLayout() |
Modifier and Type | Method and Description |
---|---|
javafx.scene.layout.Pane |
getGlassPane()
Gets the glass pane.
|
JACPMenuBar |
getMenu()
Returns the application menu instance.
|
JACPToolBar |
getRegisteredToolBar(ToolbarPosition position)
Gets the registered tool bar.
|
java.util.Map<ToolbarPosition,JACPToolBar> |
getRegisteredToolbars()
Gets the registered toolbars.
|
<S extends java.lang.Enum> |
getStyle()
Returns the workbench style.
|
Tupel<java.lang.Integer,java.lang.Integer> |
getWorkbenchSize()
Returns a tuple defining the workbench size.
|
boolean |
isMenuEnabled()
Check if menus are enabled.
|
void |
registerToolBar(ToolbarPosition position)
Register a toolbar for the workbench
All toolbars are added with the same priority, thus the priority is given
by the order of registration.
|
void |
setMenuEnabled(boolean enabled)
Set menus to enabled state.
|
<S extends java.lang.Enum> |
setStyle(S style)
Set the workbench style.
|
void |
setWorkbenchXYSize(int x,
int y)
Set the size of the workbench.
|
public boolean isMenuEnabled()
IWorkbenchLayout
isMenuEnabled
in interface IWorkbenchLayout<javafx.scene.Node>
public void setMenuEnabled(boolean enabled)
IWorkbenchLayout
setMenuEnabled
in interface IWorkbenchLayout<javafx.scene.Node>
public void setWorkbenchXYSize(int x, int y)
IWorkbenchLayout
setWorkbenchXYSize
in interface IWorkbenchLayout<javafx.scene.Node>
public Tupel<java.lang.Integer,java.lang.Integer> getWorkbenchSize()
IWorkbenchLayout
getWorkbenchSize
in interface IWorkbenchLayout<javafx.scene.Node>
public void registerToolBar(ToolbarPosition position)
IWorkbenchLayout
registerToolBar
in interface IWorkbenchLayout<javafx.scene.Node>
position
- - NORTH, WEST, EAST, SOUTHpublic <S extends java.lang.Enum> void setStyle(S style)
IWorkbenchLayout
setStyle
in interface IWorkbenchLayout<javafx.scene.Node>
style
- , the style of workbenchpublic <S extends java.lang.Enum> S getStyle()
IWorkbenchLayout
getStyle
in interface IWorkbenchLayout<javafx.scene.Node>
public JACPMenuBar getMenu()
IBaseLayout
getMenu
in interface IBaseLayout<javafx.scene.Node>
public java.util.Map<ToolbarPosition,JACPToolBar> getRegisteredToolbars()
public JACPToolBar getRegisteredToolBar(ToolbarPosition position)
IBaseLayout
getRegisteredToolBar
in interface IBaseLayout<javafx.scene.Node>
position
- the positionpublic javafx.scene.layout.Pane getGlassPane()
IBaseLayout
getGlassPane
in interface IBaseLayout<javafx.scene.Node>