public class FXWorkbenchLayout
extends java.lang.Object
implements org.jacpfx.api.componentLayout.WorkbenchLayout<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(org.jacpfx.api.util.ToolbarPosition position)
Gets the registered tool bar.
|
java.util.Map<org.jacpfx.api.util.ToolbarPosition,JACPToolBar> |
getRegisteredToolBars()
Gets all registered tool bars.
|
<S extends java.lang.Enum> |
getStyle()
Returns the workbench style.
|
org.jacpfx.api.util.Tupel<java.lang.Integer,java.lang.Integer> |
getWorkbenchSize()
Returns a tuple defining the workbench size.
|
boolean |
isMenuEnabled()
Check if menus are enabled.
|
void |
registerToolBar(org.jacpfx.api.util.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 |
registerToolBars(org.jacpfx.api.util.ToolbarPosition... positions)
Register multiple toolbars 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()
org.jacpfx.api.componentLayout.WorkbenchLayoutisMenuEnabled in interface org.jacpfx.api.componentLayout.WorkbenchLayout<javafx.scene.Node>public void setMenuEnabled(boolean enabled)
org.jacpfx.api.componentLayout.WorkbenchLayoutsetMenuEnabled in interface org.jacpfx.api.componentLayout.WorkbenchLayout<javafx.scene.Node>public void setWorkbenchXYSize(int x,
int y)
org.jacpfx.api.componentLayout.WorkbenchLayoutsetWorkbenchXYSize in interface org.jacpfx.api.componentLayout.WorkbenchLayout<javafx.scene.Node>public org.jacpfx.api.util.Tupel<java.lang.Integer,java.lang.Integer> getWorkbenchSize()
org.jacpfx.api.componentLayout.WorkbenchLayoutgetWorkbenchSize in interface org.jacpfx.api.componentLayout.WorkbenchLayout<javafx.scene.Node>public void registerToolBars(org.jacpfx.api.util.ToolbarPosition... positions)
org.jacpfx.api.componentLayout.WorkbenchLayoutAll toolbars are added with the same priority, thus the priority is given by the order of registration.
registerToolBars in interface org.jacpfx.api.componentLayout.WorkbenchLayout<javafx.scene.Node>positions - - NORTH, WEST, EAST, SOUTHpublic void registerToolBar(org.jacpfx.api.util.ToolbarPosition position)
org.jacpfx.api.componentLayout.WorkbenchLayoutAll toolbars are added with the same priority, thus the priority is given by the order of registration.
registerToolBar in interface org.jacpfx.api.componentLayout.WorkbenchLayout<javafx.scene.Node>position - - NORTH, WEST, EAST, SOUTHpublic <S extends java.lang.Enum> S getStyle()
org.jacpfx.api.componentLayout.WorkbenchLayoutgetStyle in interface org.jacpfx.api.componentLayout.WorkbenchLayout<javafx.scene.Node>public <S extends java.lang.Enum> void setStyle(S style)
org.jacpfx.api.componentLayout.WorkbenchLayoutsetStyle in interface org.jacpfx.api.componentLayout.WorkbenchLayout<javafx.scene.Node>style - , the style of workbenchpublic JACPMenuBar getMenu()
org.jacpfx.api.componentLayout.BaseLayoutgetMenu in interface org.jacpfx.api.componentLayout.BaseLayout<javafx.scene.Node>public JACPToolBar getRegisteredToolBar(org.jacpfx.api.util.ToolbarPosition position)
org.jacpfx.api.componentLayout.BaseLayoutgetRegisteredToolBar in interface org.jacpfx.api.componentLayout.BaseLayout<javafx.scene.Node>position - the positionpublic java.util.Map<org.jacpfx.api.util.ToolbarPosition,JACPToolBar> getRegisteredToolBars()
org.jacpfx.api.componentLayout.BaseLayoutgetRegisteredToolBars in interface org.jacpfx.api.componentLayout.BaseLayout<javafx.scene.Node>public javafx.scene.layout.Pane getGlassPane()
org.jacpfx.api.componentLayout.BaseLayoutgetGlassPane in interface org.jacpfx.api.componentLayout.BaseLayout<javafx.scene.Node>