Specifications
Components 213
• "Event:SetCurSite" pops up a dialog box to set the current site.
• "Event:CreateSite" pops up a dialog box to create a new site.
• "Event:SetDocType" pops up a dialog box to change the document type of the user’s
document.
• "Event:CreateConnection" pops up a dialog box to create a new database connection.
• "Event:SetRDSPassword" pops up a dialog box to set the Remote Development Service
(RDS) user name and password (ColdFusion only).
• "Event:CreateCFDataSource" pops up the ColdFusion administrator in a browser.
setupStepsCompleted()
Availability
Dreamweaver MX
Description
Dreamweaver calls this function before the Components tab becomes visible. Dreamweaver then
calls
getSetupSteps() if this function returns zero or a positive integer.
Arguments
None.
Returns
Dreamweaver expects an integer that represents the number of setup steps the user has already
completed, as described in the following list:
• A value of either zero or a positive integer indicates the number of steps already completed.
• A value of -1 indicates that all the necessary setup steps have been completed, so the
instruction list does not appear.
handleDoubleClick()
Availability
Dreamweaver MX
Description
When the user double clicks the node in the tree, the event handler is called to allow editing. This
function is optional. The function can return
false, which indicates that the event handler is
not handled. In that event, double clicking causes the default behavior, which is expanding or
collapsing the tree nodes.
Arguments
componentRec
componentRec
is an object that contains the following properties:
• name Name of the tree node item.
• image Optional icon for the tree node item. If omitted, Dreamweaver uses a default icon.
• hasChildren A Boolean value that indicates whether the tree node item is expandable. If
true, Dreamweaver displays the plus (+) and minus (-) buttons for the tree node item.