Class DockManager

Dock manager manages all the dock panels in a hierarchy, similar to Visual Studio. It owns an HTMLDivElement inside which all panels are docked. Initially the document manager takes up the central space and acts as the root node.

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(element: HTMLDivElement): DockManager

Parameters

  • element: HTMLDivElement

Returns

DockManager

Properties

public context: DockManagerContext

Methods

public dockDialogDown(referenceNode: DockNode, dialog: Dialog): DockNode

Dock the [dialog] below the [referenceNode] node

Parameters

Returns

DockNode

public dockDialogFill(referenceNode: DockNode, container: PanelContainer): DockNode

Dock the [dialog] as a tab inside the [referenceNode] node

Parameters

Returns

DockNode

public dockDialogLeft(referenceNode: DockNode, dialog: Dialog): DockNode

Dock the [dialog] to the left of the [referenceNode] node

Parameters

Returns

DockNode

public dockDialogRight(referenceNode: DockNode, dialog: Dialog): DockNode

Dock the [dialog] to the right of the [referenceNode] node

Parameters

Returns

DockNode

public dockDialogUp(referenceNode: DockNode, dialog: Dialog): DockNode

Dock the [dialog] above the [referenceNode] node

Parameters

Returns

DockNode

public dockDown(referenceNode: DockNode, container: PanelContainer, ratio: number): DockNode

Dock the [container] below the [referenceNode] node

Parameters

Returns

DockNode

public dockFill(referenceNode: DockNode, container: PanelContainer): DockNode

Dock the [container] as a tab inside the [referenceNode] node

Parameters

Returns

DockNode

public dockLeft(referenceNode: DockNode, container: PanelContainer, ratio: number): DockNode

Dock the [container] to the left of the [referenceNode] node

Parameters

Returns

DockNode

public dockRight(referenceNode: DockNode, container: PanelContainer, ratio: number): DockNode

Dock the [container] to the right of the [referenceNode] node

Parameters

Returns

DockNode

public dockUp(referenceNode: DockNode, container: PanelContainer, ratio: number): DockNode

Dock the [container] above the [referenceNode] node

Parameters

Returns

DockNode

public initialize()

public invalidate()

public loadState(state: string)

Parameters

  • state: string

public rebuildLayout(node: DockNode)

Parameters

public resize(width: number, height: number)

Parameters

  • width: number
  • height: number

public resumeLayout()

public saveState(): string

Returns

string

public setModel(model: DockModel)

Reset the dock model. This happens when state is loaded from JSON.

Parameters

public setRootNode(node: DockNode)

Parameters

public suspendLayout()