Adobe Extending Dreamweaver CS4 Manual do Utilizador Página 318

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 387
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 317
312
EXTENDING DREAMWEAVER CS4
Components
For example, the following WebServicesClass node has web methods as its children:
this.name = "TrafficLocatorWebService";
this.image = "Components/Common/WebServices/WebServices.gif";
this.hasChildren = true;
this.toolTipText = "TrafficLocatorWebService";
this.isCodeViewDraggable = true;
// the following allows of enabling/disabling of the button that appears
// above the Component Tree
this.allowDelete = true;
this.isDesignViewDraggable = false;
Components panel API functions
This section describes the API functions for populating the Components panel.
getComponentChildren()
Availability
Dreamweaver MX.
Description
This function returns a list of child ComponentRec objects for the active parent ComponentRec object. To load the
root-level tree items, this function needs to read its metadata from its persistent store.
Arguments
{parentComponentRec}
The parentComponentRec argument is the componentRec object of the parent. If it is omitted, Dreamweaver expects
a list of
ComponentRec objects for the root node.
Returns
An array of ComponentRec objects.
Example
See function getComponentChildren(componentRec) in the WebServices.js file in the
Configuration/Components/Common/WebServices folder.
toolTipText Tooltip text of the tree node item Optional
isCodeViewDraggable Determines whether the item can be dragged and
dropped into the Code view.
Optional
isDesignViewDraggable Determines whether the item can be dragged and
dropped into the Design view.
Optional
Property name Description Required/Optional
Vista de página 317
1 2 ... 313 314 315 316 317 318 319 320 321 322 323 ... 386 387

Comentários a estes Manuais

Sem comentários