C - defines the base component where others extend frompublic interface WorkbenchLayout<C> extends BaseLayout<C>
| Modifier and Type | Method and Description |
|---|---|
<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 |
registerToolBars(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.
|
getGlassPane, getMenu, getRegisteredToolBar, getRegisteredToolBarsboolean isMenuEnabled()
void setMenuEnabled(boolean enabled)
enabled, - true if menu is enabledvoid setWorkbenchXYSize(int x,
int y)
x, - the initial X size of workbenchy, - the initial Y size of the workbenchTupel<java.lang.Integer,java.lang.Integer> getWorkbenchSize()
void registerToolBars(ToolbarPosition... positions)
All toolbars are added with the same priority, thus the priority is given by the order of registration.
positions - - NORTH, WEST, EAST, SOUTHvoid registerToolBar(ToolbarPosition position)
All toolbars are added with the same priority, thus the priority is given by the order of registration.
position - - NORTH, WEST, EAST, SOUTH<S extends java.lang.Enum> void setStyle(S style)
style - , the style of workbench, - the style is type of Enum<S extends java.lang.Enum> S getStyle()
, - the style is type of Enum