Class
caplin.workbench.ui

Workbench

Represents a UI component for displaying workbenches. A workbench contains left and right caplin.workbench.ui.WorkbenchPanels to which caplin.workbench.ui.WorkbenchComponent components can be added.

Constructor Summary

Attributes Name and Description
caplin.workbench.ui.Workbench(int nLeftWidth, int nRightWidth)

Method Summary

Attributes Name and Description
void addToLeftWing(caplin.workbench.ui.WorkbenchComponent oWorkbenchComponent, String sTitle, boolean bCollapsed)

Adds a component to the left wing.

void addToRightWing(caplin.workbench.ui.WorkbenchComponent oWorkbenchComponent, String sTitle, boolean bCollapsed)

Adds a component to the right wing.

void center(DOMElement eElement)

Centers the specified element so that it is evenly spaced between the 2 side panels.

Constructor Detail

caplin.workbench.ui.Workbench(int nLeftWidth, int nRightWidth)

Parameters
int nLeftWidth The width of the left panel in pixels.
int nRightWidth The width of the right panel in pixels.

Method Detail

void addToLeftWing(caplin.workbench.ui.WorkbenchComponent oWorkbenchComponent, String sTitle, boolean bCollapsed)

Adds a component to the left wing.

Parameters
caplin.workbench.ui.WorkbenchComponent oWorkbenchComponent The component to add.
String sTitle The title to show for the component.
boolean bCollapsed If true, the component will be collapsed.

void addToRightWing(caplin.workbench.ui.WorkbenchComponent oWorkbenchComponent, String sTitle, boolean bCollapsed)

Adds a component to the right wing.

Parameters
caplin.workbench.ui.WorkbenchComponent oWorkbenchComponent The component to add.
String sTitle The title to show for the component.
boolean bCollapsed If true, the component will be collapsed.

void center(DOMElement eElement)

Centers the specified element so that it is evenly spaced between the 2 side panels.

Parameters
DOMElement eElement The element (usually the workbench component element) to center.