Class ecm.widget.listView.gridModules.DndFromDesktopAddDoc


Extends ecm.widget.listView.gridModules.DndFromDesktop.
This module controls the drag-and-drop from the desktop to the grid. This module overrides the DndFromDesktop module, adding the capability to check if the row item has privilege, and when dropping, calls the Add Document dialog.
Defined in: <ecm\widget\listView\gridModules\DndFromDesktopAddDoc.js>.

Constructor Summary

Constructor Attributes Constructor Name and Description
 

Method Summary

Method Attributes Method Name and Description
 
canDropOnRow(row, evt)
Determines if a document from the desktop can be added to repository in the specified location.
 
 
displayDialog(files, targetItem, teamspace, defaultClass)
Displays the add document dialog.
 
onDrop(row, files, evt)
Handles a drop event from the desktop on the grid area.
 
Methods borrowed from class ecm.widget.listView.gridModules.DndFromDesktop:
getAPIPath, onExternalDragExit, onExternalDragOver, onExternalDrop

Constructor Detail

ecm.widget.listView.gridModules.DndFromDesktopAddDoc()

Method Detail

canDropOnRow(row, evt)

Determines if a document from the desktop can be added to repository in the specified location.
Parameters:
row
The row to be dropped on.
evt
The event.
Returns:
Returns {boolean} true if the document can be added and false if it cannot.

destroy()


displayDialog(files, targetItem, teamspace, defaultClass)

Displays the add document dialog.
Parameters:
files
The list of files that were dropped.
targetItem
The item that the dropped files will be added to.
teamspace
If not null, then the teamspace that the files were dropped on.
defaultClass
If not null, the default class selected in the add dialog.
Since:
2.0.2

onDrop(row, files, evt)

Handles a drop event from the desktop on the grid area.
Parameters:
row
The row that is dropped on.
files
Array of files to add.
evt
The event.

preload()