Constructor
new module:br/workbench/ui/Workbench(nLeftWidth, nRightWidth)
Parameters:
| Name | Type | Description |
|---|---|---|
nLeftWidth |
int | The width of the left panel in pixels. |
nRightWidth |
int | The width of the right panel in pixels. |
Methods
-
addToLeftWing(oWorkbenchComponent, sTitle, bCollapsed)
-
Adds a component to the left wing.
Parameters:
Name Type Description oWorkbenchComponentWorkbenchComponent The component to add. sTitleString The title to show for the component. bCollapsedboolean If true, the component will be collapsed. -
addToRightWing(oWorkbenchComponent, sTitle, bCollapsed)
-
Adds a component to the right wing.
Parameters:
Name Type Description oWorkbenchComponentWorkbenchComponent The component to add. sTitleString The title to show for the component. bCollapsedboolean If true, the component will be collapsed. -
center(eElement)
-
Centers the specified element so that it is evenly spaced between the 2 side panels.
Parameters:
Name Type Description eElementDOMElement The element (usually the workbench component element) to center.