Package: | Ext.dd |
Defined In: | DDCore.js |
Class: | DragDropMgr |
Extends: | Object |
Property | Defined By | |
---|---|---|
INTERSECT : int In intersect mode, drag and drop interaction is defined by the
overlap of two or more drag and drop objects. | DragDropMgr | |
POINT : int In point mode, drag and drop interaction is defined by the
location of the cursor during the drag/drop | DragDropMgr | |
clickPixelThresh : int The number of pixels that the mouse needs to move after the
mousedown before the drag is initiated. Default=3; | DragDropMgr | |
clickTimeThresh : int The number of milliseconds after the mousedown event to initiate the
drag if we don't get a mouseup event. Default=35... The number of milliseconds after the mousedown event to initiate the
drag if we don't get a mouseup event. Default=350 | DragDropMgr | |
mode : int The current drag and drop mode. Default: POINT | DragDropMgr | |
preventDefault : boolean Flag to determine if we should prevent the default behavior of the
events we define. By default this is true, but thi... Flag to determine if we should prevent the default behavior of the
events we define. By default this is true, but this can be set to
false if you need the default behavior (not recommended) | DragDropMgr | |
stopPropagation : boolean Flag to determine if we should stop the propagation of the events
we generate. This is true by default but you may wa... Flag to determine if we should stop the propagation of the events
we generate. This is true by default but you may want to set it to
false if the html element contains other features that require the
mouse click. | DragDropMgr | |
useCache : boolean Set useCache to false if you want to force object the lookup of each
drag and drop linked element constantly during a... Set useCache to false if you want to force object the lookup of each
drag and drop linked element constantly during a drag. | DragDropMgr |
Method | Defined By | |
---|---|---|
getBestMatch( DragDrop[] dds )
:
DragDrop<static> Helper function for getting the best match from the list of drag
and drop objects returned by the drag and drop event... <static> Helper function for getting the best match from the list of drag
and drop objects returned by the drag and drop events when we are
in INTERSECT mode. It returns either the first object that the
cursor is over, or the object that has the greatest overlap with
the dragged element. Parameters:
| DragDropMgr | |
getCss( String id )
:
Object<static> Returns the style property for the DOM element (i.e.,
document.getElById(id).style) <static> Returns the style property for the DOM element (i.e.,
document.getElById(id).style) Parameters:
| DragDropMgr | |
getDDById( String id )
:
DragDrop<static> Returns the DragDrop instance for a given id <static> Returns the DragDrop instance for a given id Parameters:
| DragDropMgr | |
getElement( String id )
:
Object<static> Returns the actual DOM element <static> Returns the actual DOM element Parameters:
| DragDropMgr | |
getLocation( DragDrop oDD )
:
Ext.lib.Region<static> Returns a Region object containing the drag and drop element's position
and size, including the padding configured fo... <static> Returns a Region object containing the drag and drop element's position
and size, including the padding configured for it Parameters:
| DragDropMgr | |
getRelated( DragDrop p_oDD , boolean bTargetsOnly )
:
DragDrop[]<static> Returns the drag and drop instances that are in all groups the
passed in instance belongs to. <static> Returns the drag and drop instances that are in all groups the
passed in instance belongs to. Parameters:
| DragDropMgr | |
isDragDrop( String id )
:
boolean<static> Utility function to determine if a given element has been
registered as a drag drop item. <static> Utility function to determine if a given element has been
registered as a drag drop item. Parameters:
| DragDropMgr | |
isHandle( String id )
:
boolean<static> Utility function to determine if a given element has been
registered as a drag drop handle for the given Drag Drop ob... <static> Utility function to determine if a given element has been
registered as a drag drop handle for the given Drag Drop object. Parameters:
| DragDropMgr | |
isLegalTarget( DragDrop oDD , DragDrop oTargetDD )
:
boolean<static> Returns true if the specified dd target is a legal target for
the specifice drag obj <static> Returns true if the specified dd target is a legal target for
the specifice drag obj Parameters:
| DragDropMgr | |
isLocked()
:
boolean <static> Is drag and drop locked? <static> Is drag and drop locked? Parameters:
| DragDropMgr | |
isTypeOfDD( Object the )
:
boolean<static> My goal is to be able to transparently determine if an object is
typeof DragDrop, and the exact subclass of DragDrop.... <static> My goal is to be able to transparently determine if an object is
typeof DragDrop, and the exact subclass of DragDrop. typeof
returns "object", oDD.constructor.toString() always returns
"DragDrop" and not the name of the subclass. So for now it just
evaluates a well-known variable in DragDrop. Parameters:
| DragDropMgr | |
lock()
:
void <static> Lock all drag and drop functionality <static> Lock all drag and drop functionality Parameters:
| DragDropMgr | |
refreshCache( Object groups )
:
void<static> Refreshes the cache of the top-left and bottom-right points of the
drag and drop objects in the specified group(s). ... <static> Refreshes the cache of the top-left and bottom-right points of the
drag and drop objects in the specified group(s). This is in the
format that is stored in the drag and drop instance, so typical
usage is:
Ext.dd.DragDropMgr.refreshCache(ddinstance.groups);
Alternatively:
Ext.dd.DragDropMgr.refreshCache({group1:true, group2:true});
Parameters:
| DragDropMgr | |
regDragDrop( DragDrop oDD , String sGroup )
:
void<static> Each DragDrop instance must be registered with the DragDropMgr.
This is executed in DragDrop.init() <static> Each DragDrop instance must be registered with the DragDropMgr.
This is executed in DragDrop.init() Parameters:
| DragDropMgr | |
regHandle( String sDDId , String sHandleId )
:
void<static> Each DragDrop handle element must be registered. This is done
automatically when executing DragDrop.setHandleElId() <static> Each DragDrop handle element must be registered. This is done
automatically when executing DragDrop.setHandleElId() Parameters:
| DragDropMgr | |
startDrag( x {int} , y {int} )
:
void<static> Fired when either the drag pixel threshol or the mousedown hold
time threshold has been met. <static> Fired when either the drag pixel threshol or the mousedown hold
time threshold has been met. Parameters:
| DragDropMgr | |
stopEvent( Event e )
:
void<static> Utility to stop event propagation and event default, if these
features are turned on. <static> Utility to stop event propagation and event default, if these
features are turned on. Parameters:
| DragDropMgr | |
unlock()
:
void <static> Unlock all drag and drop functionality <static> Unlock all drag and drop functionality Parameters:
| DragDropMgr | |
verifyEl( HTMLElement el )
:
boolean<static> This checks to make sure an element exists and is in the DOM. The
main purpose is to handle cases where innerHTML is... <static> This checks to make sure an element exists and is in the DOM. The
main purpose is to handle cases where innerHTML is used to remove
drag and drop objects from the DOM. IE provides an 'unspecified
error' when trying to access the offsetParent of such an element Parameters:
| DragDropMgr |