Class Index | File Index

Classes


Class AC.tree.grid.DropZone


Extends AC.tree.ExplorerDropZone.
Overrides isValidDropPoint to implement specifics of ACTreeGrid
Defined in: ACTreeGridExtensions.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Default constructor.
Method Summary
Method Attributes Method Name and Description
<static>  
AC.tree.grid.DropZone.findDropEventInfo(n, e, data)
Identify the drop rules that apply to this drop event based on the drag source (whether within or without the component) and the drop type (whether with or without ctrl key pressed).
<static>  
AC.tree.grid.DropZone.getTargetFromEvent(e)
Returns a custom data object associated with the DOM node that is the target of the event.
<static>  
AC.tree.grid.DropZone.isValidDropPoint(n, pt, dd, e, data)
Checks if the drop point is valid.
<static>  
AC.tree.grid.DropZone.notifyDrop(source, e, data)
The function a Ext.dd.DragSource calls once to notify this drop zone that the dragged item has been dropped on it.
<static>  
AC.tree.grid.DropZone.showDropTargetLine(dropNodeEl, dropPoint, removeOnly)
showDropTargetLine This function display a thick line on the target node when the drag node is dragged over it
Class Detail
AC.tree.grid.DropZone()
Default constructor.
Method Detail
<static> AC.tree.grid.DropZone.findDropEventInfo(n, e, data)
Identify the drop rules that apply to this drop event based on the drag source (whether within or without the component) and the drop type (whether with or without ctrl key pressed).
Parameters:
n
the target node
e
the event object
data
the source data
Returns:
Object the object that contains all the drop rules

<static> {Object} AC.tree.grid.DropZone.getTargetFromEvent(e)
Returns a custom data object associated with the DOM node that is the target of the event. By default this looks up the event target in the Ext.dd.Registry, although you can override this method to provide your own custom lookup.
Parameters:
{Event} e
The event
Returns:
{Object} data The custom data

<static> AC.tree.grid.DropZone.isValidDropPoint(n, pt, dd, e, data)
Checks if the drop point is valid.
Parameters:
n
the n
pt
the drop point
dd
the dd
e
the event
data
the data
Returns:
true, if the drop point is valid

<static> {Boolean} AC.tree.grid.DropZone.notifyDrop(source, e, data)
The function a Ext.dd.DragSource calls once to notify this drop zone that the dragged item has been dropped on it. The drag zone will look up the target node based on the event passed in, and if there is a node registered for that event, it will delegate to #onNodeDrop for node-specific handling, otherwise it will call #onContainerDrop.
Parameters:
{Ext.dd.DragSource} source
The drag source that was dragged over this drop zone
{Event} e
The event
{Object} data
An object containing arbitrary data supplied by the drag source
Returns:
{Boolean} True if the drop was valid, else false

<static> AC.tree.grid.DropZone.showDropTargetLine(dropNodeEl, dropPoint, removeOnly)
showDropTargetLine This function display a thick line on the target node when the drag node is dragged over it
Parameters:
dropNodeEl
the dom element represent the drop node
dropPoint
the point on the drop node that the drag node is hanging over
removeOnly

Documentation generated by JsDoc Toolkit 2.0.0 on Sun Sep 23 2012 02:46:07 GMT-0500 (CDT)