MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Especificaciones Pagina 419

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 504
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 418
Components panel API functions 419
Arguments
componentRec
The componentRec argument is an object that contains the following properties:
The name property is the name of the tree node item.
The image property is an optional icon for the tree node item. If this icon is omitted,
Dreamweaver uses a default icon.
The hasChildren property is 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; if
false, the item is not expandable.
The toolTipText property is an optional tooltip text for the tree node item.
The isCodeViewDraggable property is a Boolean value that indicates whether the
tree node item can be dragged and dropped into Code view.
The isDesignViewDraggable property is a Boolean value that indicates whether the
tree node item can be dragged and dropped into Design view.
Returns
Nothing.
Example
In the following example, the extension has a chance to handle a double-click on the tree node
item; if it returns the value
false, the default behavior is to expand/collapse the nodes.
function handleDoubleClick(componentRec)
{
var selectedObj = dw.serverComponentsPalette.getSelectedNode();
if(dwscripts.IS_WIN)
{
if (selectedObj && selectedObj.wsRec &&
selectedObj.wsRec[ProxyGeneratorNamePropName])
{
if (selectedObj.objectType == "Root")
{
editWebService();
return true;
}
else if (selectedObj.objectType == "MissingProxyGen")
{
displayMissingProxyGenMessage(componentRec);
editWebService();
return true;
}
}
}
return false;
}
Vista de pagina 418
1 2 ... 414 415 416 417 418 419 420 421 422 423 424 ... 503 504

Comentarios a estos manuales

Sin comentarios