X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..refs/heads/master:/docs/source/DragZone.html diff --git a/docs/source/DragZone.html b/docs/source/DragZone.html index b923cbe5..3235aab6 100644 --- a/docs/source/DragZone.html +++ b/docs/source/DragZone.html @@ -1,5 +1,22 @@ -Sencha Documentation Project
/**
- * @class Ext.dd.DragZone
+
+
+
+  
+  The source code
+  
+  
+  
+  
+
+
+  
/**
+ * @class Ext.dd.DragZone
  * @extends Ext.dd.DragSource
  * <p>This class provides a container DD instance that allows dragging of multiple child source nodes.</p>
  * <p>This class does not move the drag target nodes, but a proxy element which may contain
@@ -52,14 +69,16 @@ myDataView.on('render', function(v) {
 });</code></pre>
  * See the {@link Ext.dd.DropZone DropZone} documentation for details about building a DropZone which
  * cooperates with this DragZone.
- * @constructor
- * @param {Mixed} el The container element
- * @param {Object} config
  */
 Ext.define('Ext.dd.DragZone', {
 
     extend: 'Ext.dd.DragSource',
 
+    /**
+     * Creates new DragZone.
+     * @param {String/HTMLElement/Ext.Element} el The container element or ID of it.
+     * @param {Object} config
+     */
     constructor : function(el, config){
         this.callParent([el, config]);
         if (this.containerScroll) {
@@ -67,7 +86,7 @@ Ext.define('Ext.dd.DragZone', {
         }
     },
 
-    /**
+    /**
      * This property contains the data representing the dragged object. This data is set up by the implementation
      * of the {@link #getDragData} method. It must contain a <tt>ddel</tt> property, but can contain
      * any other data according to the application's needs.
@@ -75,24 +94,24 @@ Ext.define('Ext.dd.DragZone', {
      * @property dragData
      */
 
-    /**
+    /**
      * @cfg {Boolean} containerScroll True to register this container with the Scrollmanager
      * for auto scrolling during drag operations.
      */
 
-    /**
+    /**
      * Called when a mousedown occurs in this container. Looks in {@link Ext.dd.Registry}
      * for a valid target to drag based on the mouse down. Override this method
      * to provide your own lookup logic (e.g. finding a child by class name). Make sure your returned
      * object has a "ddel" attribute (with an HTML Element) for other functions to work.
-     * @param {EventObject} e The mouse down event
+     * @param {Event} e The mouse down event
      * @return {Object} The dragData
      */
     getDragData : function(e){
         return Ext.dd.Registry.getHandleFromEvent(e);
     },
 
-    /**
+    /**
      * Called once drag threshold has been reached to initialize the proxy element. By default, it clones the
      * this.dragData.ddel
      * @param {Number} x The x position of the click on the dragged object
@@ -105,7 +124,7 @@ Ext.define('Ext.dd.DragZone', {
         return true;
     },
 
-    /**
+    /**
      * Called after a repair of an invalid drop. By default, highlights this.dragData.ddel
      */
     afterRepair : function(){
@@ -116,14 +135,14 @@ Ext.define('Ext.dd.DragZone', {
         me.dragging = false;
     },
 
-    /**
+    /**
      * Called before a repair of an invalid drop to get the XY to animate to. By default returns
      * the XY of this.dragData.ddel
-     * @param {EventObject} e The mouse up event
-     * @return {Array} The xy location (e.g. [100, 200])
+     * @param {Event} e The mouse up event
+     * @return {Number[]} The xy location (e.g. [100, 200])
      */
     getRepairXY : function(e){
-        return Ext.core.Element.fly(this.dragData.ddel).getXY();
+        return Ext.Element.fly(this.dragData.ddel).getXY();
     },
 
     destroy : function(){
@@ -133,4 +152,6 @@ Ext.define('Ext.dd.DragZone', {
         }
     }
 });
-
\ No newline at end of file +
+ +