WorkbenchPanel
is the main container for displaying components
within a workbench. Workbench panels can be added to a caplin.workbench.ui.Workbench,
either to the left or right side of the screen.
Attributes | Name and Description |
---|---|
|
caplin.workbench.ui.WorkbenchPanel( String, int, boolean)
|
Attributes | Name and Description |
---|---|
|
void
add(caplin.workbench.ui.WorkbenchComponent oWorkbenchComponent, String sTitle, boolean bCollapsed)
Adds a caplin.workbench.ui.WorkbenchComponent to this panel. |
|
String
getComponentContainerId()
Returns the id of the element that represents the container which components
will be added to within this |
|
int
getHeightOffset()
Returns the offset height of this panel |
|
int
getOuterWidth()
Returns the outer width of this workbench panel. |
|
int
getWidth()
Returns the width of this panel. |
|
void
setWidth(int nWidth)
Sets the width of this panel. |
►
caplin.workbench.ui.WorkbenchPanel( String, int, boolean)
String | sOrientation Either "left" or "right" | |
int | nWidth The width of the WorkbenchPanel in Pixels | |
boolean | bXResizable If True, the panel will be resizable. |
►
void
add(caplin.workbench.ui.WorkbenchComponent oWorkbenchComponent, String sTitle, boolean bCollapsed)
Adds a caplin.workbench.ui.WorkbenchComponent to this panel.
caplin.workbench.ui.WorkbenchComponent | oWorkbenchComponent | The component to add. |
String | sTitle | The title to display for the component. |
boolean | bCollapsed | if True, the initial state of the component will be collapsed. |
►
String
getComponentContainerId()
Returns the id of the element that represents the container which components
will be added to within this WorkbenchPanel
►
int
getHeightOffset()
Returns the offset height of this panel
►
int
getOuterWidth()
Returns the outer width of this workbench panel.
►
int
getWidth()
Returns the width of this panel.
►
void
setWidth(int nWidth)
Sets the width of this panel.
int | nWidth | The width of the WorkbenchPanel in Pixels |