Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git] / docs / source / DragSource.html
index 5bbc67d..b2f970d 100644 (file)
@@ -1,4 +1,21 @@
-<!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-dd.DragSource-method-constructor'><span id='Ext-dd.DragSource'>/**
+<!DOCTYPE html>
+<html>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  <title>The source code</title>
+  <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
+  <script type="text/javascript" src="../prettify/prettify.js"></script>
+  <style type="text/css">
+    .highlight { display: block; background-color: #ddd; }
+  </style>
+  <script type="text/javascript">
+    function highlight() {
+      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
+    }
+  </script>
+</head>
+<body onload="prettyPrint(); highlight();">
+  <pre class="prettyprint lang-js"><span id='Ext-dd-DragSource-method-constructor'><span id='Ext-dd-DragSource'>/**
 </span></span> * @class Ext.dd.DragSource
  * @extends Ext.dd.DDProxy
  * A simple class that provides the basic implementation needed to make any element draggable.
@@ -13,31 +30,31 @@ Ext.define('Ext.dd.DragSource', {
         'Ext.dd.DragDropManager'
     ],
 
-<span id='Ext-dd.DragSource-cfg-ddGroup'>    /**
+<span id='Ext-dd-DragSource-cfg-ddGroup'>    /**
 </span>     * @cfg {String} ddGroup
      * A named drag drop group to which this object belongs.  If a group is specified, then this object will only
      * interact with other drag drop objects in the same group (defaults to undefined).
      */
 
-<span id='Ext-dd.DragSource-cfg-dropAllowed'>    /**
+<span id='Ext-dd-DragSource-cfg-dropAllowed'>    /**
 </span>     * @cfg {String} dropAllowed
      * The CSS class returned to the drag source when drop is allowed (defaults to &quot;x-dd-drop-ok&quot;).
      */
 
     dropAllowed : Ext.baseCSSPrefix + 'dd-drop-ok',
-<span id='Ext-dd.DragSource-cfg-dropNotAllowed'>    /**
+<span id='Ext-dd-DragSource-cfg-dropNotAllowed'>    /**
 </span>     * @cfg {String} dropNotAllowed
      * The CSS class returned to the drag source when drop is not allowed (defaults to &quot;x-dd-drop-nodrop&quot;).
      */
     dropNotAllowed : Ext.baseCSSPrefix + 'dd-drop-nodrop',
 
-<span id='Ext-dd.DragSource-cfg-animRepair'>    /**
+<span id='Ext-dd-DragSource-cfg-animRepair'>    /**
 </span>     * @cfg {Boolean} animRepair
      * Defaults to true. If true, animates the proxy element back to the position of the handle element used to trigger the drag.
      */
     animRepair: true,
 
-<span id='Ext-dd.DragSource-cfg-repairHighlightColor'>    /**
+<span id='Ext-dd-DragSource-cfg-repairHighlightColor'>    /**
 </span>     * @cfg {String} repairHighlightColor The color to use when visually highlighting the drag source in the afterRepair
      * method after a failed drop (defaults to 'c3daf9' - light blue). The color must be a 6 digit hex value, without
      * a preceding '#'.
@@ -63,7 +80,7 @@ Ext.define('Ext.dd.DragSource', {
         this.dragging = false;
     },
 
-<span id='Ext-dd.DragSource-method-getDragData'>    /**
+<span id='Ext-dd-DragSource-method-getDragData'>    /**
 </span>     * Returns the data object associated with this drag source
      * @return {Object} data An object containing arbitrary data
      */
@@ -84,7 +101,7 @@ Ext.define('Ext.dd.DragSource', {
             }
 
             if (this.afterDragEnter) {
-<span id='Ext-dd.DragSource-method-afterDragEnter'>                /**
+<span id='Ext-dd-DragSource-method-afterDragEnter'>                /**
 </span>                 * An empty function by default, but provided so that you can perform a custom action
                  * when the dragged item enters the drop target by providing an implementation.
                  * @param {Ext.dd.DragDrop} target The drop target
@@ -97,7 +114,7 @@ Ext.define('Ext.dd.DragSource', {
         }
     },
 
-<span id='Ext-dd.DragSource-method-beforeDragEnter'>    /**
+<span id='Ext-dd-DragSource-method-beforeDragEnter'>    /**
 </span>     * An empty function by default, but provided so that you can perform a custom action
      * before the dragged item enters the drop target and optionally cancel the onDragEnter.
      * @param {Ext.dd.DragDrop} target The drop target
@@ -125,7 +142,7 @@ Ext.define('Ext.dd.DragSource', {
             }
 
             if (this.afterDragOver) {
-<span id='Ext-dd.DragSource-method-afterDragOver'>                /**
+<span id='Ext-dd-DragSource-method-afterDragOver'>                /**
 </span>                 * An empty function by default, but provided so that you can perform a custom action
                  * while the dragged item is over the drop target by providing an implementation.
                  * @param {Ext.dd.DragDrop} target The drop target
@@ -138,7 +155,7 @@ Ext.define('Ext.dd.DragSource', {
         }
     },
 
-<span id='Ext-dd.DragSource-method-beforeDragOver'>    /**
+<span id='Ext-dd-DragSource-method-beforeDragOver'>    /**
 </span>     * An empty function by default, but provided so that you can perform a custom action
      * while the dragged item is over the drop target and optionally cancel the onDragOver.
      * @param {Ext.dd.DragDrop} target The drop target
@@ -159,7 +176,7 @@ Ext.define('Ext.dd.DragSource', {
             }
             this.proxy.reset();
             if (this.afterDragOut) {
-<span id='Ext-dd.DragSource-method-afterDragOut'>                /**
+<span id='Ext-dd-DragSource-method-afterDragOut'>                /**
 </span>                 * An empty function by default, but provided so that you can perform a custom action
                  * after the dragged item is dragged out of the target without dropping.
                  * @param {Ext.dd.DragDrop} target The drop target
@@ -173,7 +190,7 @@ Ext.define('Ext.dd.DragSource', {
         this.cachedTarget = null;
     },
 
-<span id='Ext-dd.DragSource-method-beforeDragOut'>    /**
+<span id='Ext-dd-DragSource-method-beforeDragOut'>    /**
 </span>     * An empty function by default, but provided so that you can perform a custom action before the dragged
      * item is dragged out of the target without dropping, and optionally cancel the onDragOut.
      * @param {Ext.dd.DragDrop} target The drop target
@@ -200,7 +217,7 @@ Ext.define('Ext.dd.DragSource', {
             }
 
             if (this.afterDragDrop) {
-<span id='Ext-dd.DragSource-method-afterDragDrop'>                /**
+<span id='Ext-dd-DragSource-method-afterDragDrop'>                /**
 </span>                 * An empty function by default, but provided so that you can perform a custom action
                  * after a valid drag drop has occurred by providing an implementation.
                  * @param {Ext.dd.DragDrop} target The drop target
@@ -214,7 +231,7 @@ Ext.define('Ext.dd.DragSource', {
         delete this.cachedTarget;
     },
 
-<span id='Ext-dd.DragSource-method-beforeDragDrop'>    /**
+<span id='Ext-dd-DragSource-method-beforeDragDrop'>    /**
 </span>     * An empty function by default, but provided so that you can perform a custom action before the dragged
      * item is dropped onto the target and optionally cancel the onDragDrop.
      * @param {Ext.dd.DragDrop} target The drop target
@@ -230,7 +247,7 @@ Ext.define('Ext.dd.DragSource', {
     onValidDrop: function(target, e, id){
         this.hideProxy();
         if(this.afterValidDrop){
-<span id='Ext-dd.DragSource-method-afterInvalidDrop'>            /**
+<span id='Ext-dd-DragSource-method-afterInvalidDrop'>            /**
 </span>             * An empty function by default, but provided so that you can perform a custom action
              * after a valid drop has occurred by providing an implementation.
              * @param {Object} target The target DD
@@ -259,7 +276,7 @@ Ext.define('Ext.dd.DragSource', {
         this.proxy.repair(this.getRepairXY(e, this.dragData), this.afterRepair, this);
 
         if (this.afterInvalidDrop) {
-<span id='Ext-dd.DragSource-method-afterInvalidDrop'>            /**
+<span id='Ext-dd-DragSource-method-afterInvalidDrop'>            /**
 </span>             * An empty function by default, but provided so that you can perform a custom action
              * after an invalid drop has occurred by providing an implementation.
              * @param {Event} e The event object
@@ -279,7 +296,7 @@ Ext.define('Ext.dd.DragSource', {
         me.dragging = false;
     },
 
-<span id='Ext-dd.DragSource-method-beforeInvalidDrop'>    /**
+<span id='Ext-dd-DragSource-method-beforeInvalidDrop'>    /**
 </span>     * An empty function by default, but provided so that you can perform a custom action after an invalid
      * drop has occurred.
      * @param {Ext.dd.DragDrop} target The drop target
@@ -304,7 +321,7 @@ Ext.define('Ext.dd.DragSource', {
         }
     },
 
-<span id='Ext-dd.DragSource-method-onBeforeDrag'>    /**
+<span id='Ext-dd-DragSource-method-onBeforeDrag'>    /**
 </span>     * An empty function by default, but provided so that you can perform a custom action before the initial
      * drag event begins and optionally cancel it.
      * @param {Object} data An object containing arbitrary data to be shared with drop targets
@@ -315,11 +332,12 @@ Ext.define('Ext.dd.DragSource', {
         return true;
     },
 
-<span id='Ext-dd.DragSource-property-onStartDrag'>    /**
+<span id='Ext-dd-DragSource-method-onStartDrag'>    /**
 </span>     * An empty function by default, but provided so that you can perform a custom action once the initial
      * drag event has begun.  The drag cannot be canceled from this function.
      * @param {Number} x The x position of the click on the dragged object
      * @param {Number} y The y position of the click on the dragged object
+     * @method
      */
     onStartDrag: Ext.emptyFn,
 
@@ -341,7 +359,7 @@ Ext.define('Ext.dd.DragSource', {
         return true;
     },
 
-<span id='Ext-dd.DragSource-method-getProxy'>    /**
+<span id='Ext-dd-DragSource-method-getProxy'>    /**
 </span>     * Returns the drag source's underlying {@link Ext.dd.StatusProxy}
      * @return {Ext.dd.StatusProxy} proxy The StatusProxy
      */
@@ -349,7 +367,7 @@ Ext.define('Ext.dd.DragSource', {
         return this.proxy;
     },
 
-<span id='Ext-dd.DragSource-method-hideProxy'>    /**
+<span id='Ext-dd-DragSource-method-hideProxy'>    /**
 </span>     * Hides the drag source's {@link Ext.dd.StatusProxy}
      */
     hideProxy: function() {
@@ -386,4 +404,6 @@ Ext.define('Ext.dd.DragSource', {
         Ext.destroy(this.proxy);
     }
 });
-</pre></pre></body></html>
\ No newline at end of file
+</pre>
+</body>
+</html>