Configuring Dock Bars
The configuration content for dock bars must be placed within the <dockbar>...</dockbar> tags.
<dockbars>
<dockbar title="output window" id="outputFrame" visible="true" dockDirection="bottom" dockState="minimized"
component="com.supermap.desktop.controls.ui.output.OutputFrame"/>
<dockbar title="workspace manager" id="workspaceComponentManager" visible="true" dockDirection="leftTop"
dockState="normal" component="com.supermap.desktop.controls.ui.WorkspaceComponentManager"/>
<dockbar title="layer manager" id="layersComponentManager" visible="true" dockDirection="leftBottom" dockState="normal"
component="com.supermap.desktop.controls.ui.LayersComponentManager"/>
<dockbar title="Properties" id="dataPropertyContainer" visible="false" dockDirection="right" dockState="normal"
component="com.supermap.desktop.controls.property.DataPropertyContainer"/>
</dockbars>
Each dock bar corresponds to a <dockbar>…</dockbar> tag in the config file. To add a dock bar to the interface, you simply need to add the <dockbar>…</dockbar> tag and set its attributes accordingly. To add multiple dock bars, add multiple <dockbar>…</dockbar> tags correspondingly. The following details the meaning and function of each attribute of the <dockbar>…</dockbar> tag:
- title: The title of the dock bar.
- dockState: Specifies the docking mode of the dock bar. The value of this attribute has four options: normal, minimized, maximized, float. Default is normal.
- dockDirection: Specifies the docking position of the dock bar when docked, i.e., its position relative to the main window. The value of this attribute has four options: left, right, bottom, top, representing the left, right, bottom, and top positions relative to the main window, respectively.
- visible: Specifies whether the dock bar is visible. When the value of this attribute is true, it indicates visible; false indicates not visible.
- component: The control class embedded in the dock bar, i.e., the name of the program file where the class bound to the dockBar is located. This attribute value must be set correctly.