User Guide

376 Appendix A: The Shared Folder
The Common folder
The Common folder has shared scripts and classes for use in third-party extensions.
CodeBehindMgr.js Contains functions for creating a code-behind document. A
code-behind document lets you create distinct pages that
separate the code for user interface (UI) logic from the code for a
UI design. The methods of
JSCodeBehindMgr defined in this file
can create new code-behind documents and manage the link to
design documents,
ColumnValueNodeClass.js Contains functions for mapping database columns to values. The
methods of
ColumnValueNode defined in this file let you get and set
various values and properties of a database column.
Dreamweaver uses this storage class when applying and
inspecting edit operations objects (insert and update record
objects) and working with the SQLStatement class.
CompilerClass.js Contains functions for a base class used by
CompilerASPNetCSharp and CompilerASPNVBNet but could be
extended to support other compilers.
DataSourceClass.js Contains functions that define the return structure for
findDynamicSources().
DBTreeControlClass.js Contains functions that build a database tree control. This class is
used to create and interact with a database tree control. To
create a database tree control, such as the one in the advanced
recordset server behaviors, create a special
<select> list with
type="mmdatabasetree" in your HTML file. Attach a
CBTreeControl class to the HTML control by passing the
<select> list name to the class constructor. Then use the
DBTreeControl functions to manipulate the control.
dotNetUtils.js Contains functions to facilitate working with object property
inspectors, and server behaviors for ASP .NET form controls,
which are translated.
dwscripts.js Look in the main file to find useful functions for all Dreamweaver
extensions. It includes functions for working with strings, files,
design notes, and so on.
dwscriptsExtData.js This file is an extension of the dwscripts.js file. This file facilitates
working with server behaviors, particularly with server behavior
EDML files. Used extensively in Dreamweaver’s implementation
of server behaviors.
dwscriptsServer.js This file is an extension of the dwscripts.js file. It contains
functions that are specific to server models. Many of these
functions are used when working with server behaviors.
GridControlClass.js Use this class to create and manipulate an editable grid. You add
a special select list in your HTML, and attach this class to it in
JavaScript to manipulate the grid.
ImageButtonClass.js This class makes it easy to control the Pressed/Mouse-over-
while-pressed/Mouse-over/Disabled-while-pressed look of
a button.