|
| 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:
-
- Returns:
-
- DragDrop The best single match
-
-
-
-
- |
- DragDropMgr |
-
-
- |
-
-
- getCss( String id ) : Object
- Deprecated. <static> Returns the style property for the DOM element (i.e.,
-document.getElById(id).style)
-
- Deprecated. <static> Returns the style property for the DOM element (i.e.,
-document.getElById(id).style)
- Parameters:
-
- Returns:
-
-
-
-
- |
- DragDropMgr |
-
-
- |
-
-
- getDDById( String id ) : DragDrop
- <static> Returns the DragDrop instance for a given id
-
- <static> Returns the DragDrop instance for a given id
- Parameters:
-
- Returns:
-
-
-
-
- |
- DragDropMgr |
-
-
- |
-
-
- getElement( String id ) : Object
- Deprecated. <static> Returns the actual DOM element
-
- Deprecated. <static> Returns the actual DOM element
- Parameters:
-
- Returns:
-
-
-
-
- |
- DragDropMgr |
-
-
- |
-
-
- getLocation( DragDrop oDD ) : Ext.lib.Region
- <static> Returns a Region object containing the drag and drop element's position
-and size, including the paddin...
-
- <static> Returns a Region object containing the drag and drop element's position
-and size, including the padding configured for it
- Parameters:
-
- Returns:
-
-
-
-
- |
- DragDropMgr |
-
-
- |
-
-
- getPosX( el the ) : int
- Deprecated. <static> Returns the X position of an html element
-
- Deprecated. <static> Returns the X position of an html element
- Parameters:
-
- Returns:
-
-
-
-
- |
- DragDropMgr |
-
-
- |
-
-
- getPosY( el the ) : int
- Deprecated. <static> Returns the Y position of an html element
-
- Deprecated. <static> Returns the Y position of an html element
- Parameters:
-
- Returns:
-
-
-
-
- |
- 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:
-
- Returns:
-
- DragDrop[] the related instances
-
-
-
-
- |
- DragDropMgr |
-
-
- |
-
-
- getScrollLeft() : int
- <static> Gets the scrollLeft
-
- <static> Gets the scrollLeft
- Parameters:
-
- Returns:
-
- int the document's scrollTop
-
-
-
-
- |
- DragDropMgr |
-
-
- |
-
-
- getScrollTop() : int
- <static> Gets the scrollTop
-
- <static> Gets the scrollTop
- Parameters:
-
- Returns:
-
- int the document's scrollTop
-
-
-
-
- |
- DragDropMgr |
-
-
- |
-
-
- getStyle( HTMLElement el , string styleProp ) : string
- Deprecated. <static> Returns the specified element style property
-
- Deprecated. <static> Returns the specified element style property
- Parameters:
- el : HTMLElementthe element styleProp : stringthe style property
- Returns:
-
-
-
-
- |
- DragDropMgr |
-
-
- |
-
-
- handleWasClicked( node the ) : void
- <static> Recursively searches the immediate parent and all child nodes for
-the handle element in order to deter...
-
- <static> Recursively searches the immediate parent and all child nodes for
-the handle element in order to determine wheter or not it was
-clicked.
- Parameters:
- the : nodehtml element to inspect
- Returns:
-
-
-
-
- |
- 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:
- id : Stringthe element id to check
- Returns:
-
-
-
-
- |
- DragDropMgr |
-
-
- |
-
-
- isHandle( String id ) : boolean
- <static> Utility function to determine if a given element has been
-registered as a drag drop handle for the giv...
-
- <static> Utility function to determine if a given element has been
-registered as a drag drop handle for the given Drag Drop object.
- Parameters:
- id : Stringthe element id to check
- Returns:
-
-
-
-
- |
- DragDropMgr |
-
-
- |
-
-
- isLegalTarget( DragDrop the , DragDrop the ) : 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:
- the : DragDropdrag obj the : DragDroptarget
- Returns:
-
-
-
-
- |
- DragDropMgr |
-
-
- |
-
-
- isLocked() : boolean
- <static> Is drag and drop locked?
-
- <static> Is drag and drop locked?
- Parameters:
-
- Returns:
-
-
-
-
- |
- DragDropMgr |
-
-
- |
-
-
- isTypeOfDD( Object the ) : boolean
- <static> My goal is to be able to transparently determine if an object is
-typeof DragDrop, and the exact subcla...
-
- <static> My goal is to be able to transparently determine if an object is
+the dragged element. Parameters:Returns:DragDrop The best single match
| 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) | DragDropMgr |
| getDDById( String id )
+ :
+ DragDrop<static> Returns the DragDrop instance for a given id <static> Returns the DragDrop instance for a given id | DragDropMgr |
| getElement( String id )
+ :
+ Object<static> Returns the actual DOM element <static> Returns the actual DOM element | 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 | 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:Returns:DragDrop[] the related instances
| 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:id : Stringthe element id to check Returns: | 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:id : Stringthe element id to check Returns: | 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:oDD : DragDropthe drag obj oTargetDD : DragDropthe target Returns: | DragDropMgr |
| isLocked()
+ :
+ boolean<static> Is drag and drop locked? <static> Is drag and drop locked? | 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:
- the : Objectobject to evaluate
- Returns:
-
-
-
-
- |
- DragDropMgr |
-
-
- |
-
-
- lock() : void
- <static> Lock all drag and drop functionality
-
- <static> Lock all drag and drop functionality
- Parameters:
-
- Returns:
-
-
-
-
- |
- DragDropMgr |
-
-
- |
-
-
- moveToEl( HTMLElement moveEl , HTMLElement targetEl ) : void
- <static> Sets the x/y position of an element to the location of the
-target element.
-
- <static> Sets the x/y position of an element to the location of the
-target element.
- Parameters:
-
- Returns:
-
-
-
-
- |
- DragDropMgr |
-
-
- |
-
-
- numericSort() : void
- <static> Numeric array sort function
-
- <static> Numeric array sort function
- Parameters:
-
- Returns:
-
-
-
-
- |
- 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 specif...
-
- <static> Refreshes the cache of the top-left and bottom-right points of the
+evaluates a well-known variable in DragDrop. Parameters:the : Objectobject to evaluate Returns: | DragDropMgr |
| lock()
+ :
+ void<static> Lock all drag and drop functionality <static> Lock all drag and drop functionality | 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);
-
+ Ext.dd.DragDropMgr.refreshCache(ddinstance.groups);
Alternatively:
-
-Ext.dd.DragDropMgr.refreshCache({group1:true, group2:true});
-
-@TODO this really should be an indexed array. Alternatively this
-method could accept both.
- Parameters:
-
- Returns:
-
-
-
-
- |
- 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:
-
- Returns:
-
-
-
-
- |
- DragDropMgr |
-
-
- |
-
-
- regHandle( String sDDId , String sHandleId ) : void
- <static> Each DragDrop handle element must be registered. This is done
-automatically when executing DragDrop.s...
-
- <static> Each DragDrop handle element must be registered. This is done
-automatically when executing DragDrop.setHandleElId()
- Parameters:
-
- Returns:
-
-
-
-
- |
- 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:
-
- Returns:
-
-
-
-
- |
- 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:
-
- Returns:
-
-
-
-
- |
- DragDropMgr |
-
-
- |
-
-
- swapNode( n1 the , n2 the ) : void
- <static> Swap two nodes. In IE, we use the native method, for others we
-emulate the IE behavior
-
- <static> Swap two nodes. In IE, we use the native method, for others we
-emulate the IE behavior
- Parameters:
- the : n1first node to swap the : n2other node to swap
- Returns:
-
-
-
-
- |
- DragDropMgr |
-
-
- |
-
-
- unlock() : void
- <static> Unlock all drag and drop functionality
-
- <static> Unlock all drag and drop functionality
- Parameters:
-
- Returns:
-
-
-
-
- |
- 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 whe...
-
- <static> This checks to make sure an element exists and is in the DOM. The
+ Ext.dd.DragDropMgr.refreshCache({group1:true, group2:true});
+ | 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() | 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() | 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. | 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. | DragDropMgr |
| unlock()
+ :
+ void<static> Unlock all drag and drop functionality <static> Unlock all drag and drop functionality | 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:
- el : HTMLElementthe element to check
- Returns:
-
-
-
-
- |
- DragDropMgr |
-
-