1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8 <meta name="generator" content="JsDoc Toolkit" />
11 <title>JsDoc Reference - Roo.dd.DragSource</title>
14 <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />
15 <link rel="stylesheet" type="text/css" href="../default.css" />
18 <script type="text/javascript" src="../page.js">
25 <body onload="RooDocsPage.onload();">
28 <div class="body-wrap">
30 <!-- ============================== links to methods. ================================= -->
32 <div class="top-tools">
34 <a class="inner-link" href="#Roo.dd.DragSource-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.dd.DragSource-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.dd.DragSource-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.dd.DragSource-configs"><img src="resources/s.gif" class="item-icon icon-config">Config Options</a>
38 <a class="bookmark" href="NEED_TO_CREATE_DIRECT_LINK_HREF"><img src="resources/s.gif" class="item-icon icon-fav">Direct Link</a>
43 <!-- ============================== inheritance Block. ================================= -->
45 <div class="inheritance res-block">
46 <pre class="res-block-inner"><a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
47 <img src="../../images/default/s.gif" height="1" width="20"/><img src="../../images/default/tree/elbow-end.gif" class="elbow"/><a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
48 <img src="../../images/default/s.gif" height="1" width="40"/><img src="../../images/default/tree/elbow-end.gif" class="elbow"/><a href="./Roo.dd.DD.html#constructor" roo:cls="Roo.dd.DD.html#constructor">Roo.dd.DD</a>
49 <img src="../../images/default/s.gif" height="1" width="60"/><img src="../../images/default/tree/elbow-end.gif" class="elbow"/><a href="./Roo.dd.DDProxy.html#constructor" roo:cls="Roo.dd.DDProxy.html#constructor">Roo.dd.DDProxy</a>
50 <img src="../../images/default/s.gif" height="1" width="80"/><img class="elbow" src="../../images/default/tree/elbow-end.gif"/>Roo.dd.DragSource
55 <!-- ============================== class title / details ============================ -->
58 <h1 class="classTitle">
60 Class Roo.dd.DragSource
63 <table cellspacing="0" class="class-summary-table">
65 <tr><td class="label">Package:</td><td class="hd-info">Roo.dd</td></tr>
67 <tr><td class="label">Defined In:</td><td class="hd-info">
69 <a href="./src/Roo_dd_DragSource.js.html">Roo/dd/DragSource.js</a>.
72 <tr><td class="label">Class:</td><td class="hd-info">DragSource</td></tr>
75 <tr><td class="label">Subclasses:</td><td class="hd-info">
76 <a href="./Roo.dd.DragZone.html#constructor" roo:cls="Roo.dd.DragZone.html#constructor">Roo.dd.DragZone</a>
84 <tr><td class="label">Extends:</td><td class="hd-info">
85 <a href="./Roo.dd.DDProxy.html#constructor" roo:cls="Roo.dd.DDProxy.html#constructor">Roo.dd.DDProxy</a>
93 <!-- ============================== class summary ========================== -->
94 <div class="description">
95 A simple class that provides the basic implementation needed to make any element draggable.
99 <!-- ============================== Class comment block... ========================== -->
101 <div class="comments">
102 <b>Class Comments / Notes</B> =>
103 <u onclick="parent.CommentDialog.showCommentId = 'Roo.dd.DragSource';">[Add Your comment/notes about this class]</u>
105 <iframe frameborder="0" id="comments-Roo.dd" style="border: none;width:100%;"
106 src="/blog.php/GtkDjsComments/Roo.dd.DragSource.html"></iframe>
111 <!-- ============================== config options ========================== -->
116 <div class="hr"></div>
117 <a id="Roo.dd.DragSource-configs"></a>
123 <table cellspacing="0" class="member-table">
124 <caption>Config Options (Usually are also Properties)</caption>
128 <th class="sig-header" colspan="2">Options</th>
130 <th class="msource-header">Defined By</th>
137 <tr class="config-row expandable config-row-alt0 notInherited">
138 <td class="micon"><a class="exi" href="#expand"> </a></td>
141 <a id="Roo.dd.DragSource-cfg-dropAllowed" name=".dropAllowed"></a>
142 <div class="fixedFont">
143 <b class="itemname">dropAllowed</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
149 <div class="short">The CSS class returned to the drag source when drop is allowed (defaults to "x-dd-drop-ok").</div>
154 The CSS class returned to the drag source when drop is allowed (defaults to "x-dd-drop-ok").
170 <tr class="config-row expandable config-row-alt1 notInherited">
171 <td class="micon"><a class="exi" href="#expand"> </a></td>
174 <a id="Roo.dd.DragSource-cfg-dropNotAllowed" name=".dropNotAllowed"></a>
175 <div class="fixedFont">
176 <b class="itemname">dropNotAllowed</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
182 <div class="short">The CSS class returned to the drag source when drop is not allowed (defaults to "x-dd-drop-nodrop").</div>
187 The CSS class returned to the drag source when drop is not allowed (defaults to "x-dd-drop-nodrop").
203 <tr class="config-row expandable config-row-alt0">
204 <td class="micon"><a class="exi" href="#expand"> </a></td>
207 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
208 <div class="fixedFont">
209 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
215 <div class="short">list of events and functions to call for this object, <br/>For example :<br/><pre><code><br/> listeners : { <br/> 'click' : function(e) {<br/> .</div>
220 list of events and functions to call for this object, <br/>For example :<br/><pre><code><br/> listeners : { <br/> 'click' : function(e) {<br/> ..... <br/> } ,<br/> .... <br/> } <br/> </code></pre>
230 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
246 <!-- ============================== public properties ==================== -->
250 <a id="Roo.dd.DragSource-props"></a>
258 <table cellspacing="0" class="member-table">
259 <caption>Public Properties </caption>
261 <th class="sig-header" colspan="2">Property</th>
262 <th class="sig-header">Description</th>
263 <th class="msource-header">Defined By</th>
273 <tr class="property-row config-row-alt0">
275 <a class="exi" href="#expand"> </a>
278 <a id="Roo.dd.DDProxy-prop-dragElId" name=".dragElId"></a>
279 <div class="fixedFont">
280 <span class="attributes">Roo.dd.DragSource.</span><b class="itemname">dragElId</b> :
281 <span type="etype"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>
289 The default drag frame div id
297 The default drag frame div id
304 <a href="./Roo.dd.DDProxy.html#constructor" roo:cls="Roo.dd.DDProxy.html#constructor">Roo.dd.DDProxy</a>
313 <!-- TODO: implement this alt row. also notice non-linked "Defined by" when property is a part of this class.
314 <tr class="property-row alt">
321 <!-- ============================== methods summary / details ======================== -->
324 <a id="Roo.dd.DragSource-methods"></a>
325 <!-- constructor?? -->
332 <!-- then dynamics first -->
339 <table cellspacing="0" class="member-table">
340 <caption>Public Methods</caption>
342 <th class="sig-header" colspan="2">Method</th>
343 <th class="msource-header">Defined By</th>
353 <tr class="method-row config-row-alt0 expandable notInherited">
354 <td class="micon"><a class="exi" href="#expand"> </a></td>
358 <a id="Roo.dd-method-DragSource" name=".DragSource"></a>
359 <div class="fixedFont">
360 <span class="attributes">new <B>Roo.dd.</B></span><b class="itemname">DragSource</b>
362 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Element <B><i>el</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
370 <div class="short">Create a new Roo.dd.DragSource</div>
377 Create a new Roo.dd.DragSource
380 <dl class="detailList">
381 <dt class="heading">Parameters:</dt>
384 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Element</span> <b>el</b>
387 <dd>The container element</dd>
390 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>config</b>
417 <tr class="method-row config-row-alt1 expandable">
418 <td class="micon"><a class="exi" href="#expand"> </a></td>
422 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
423 <div class="fixedFont">
424 <span class="attributes"></span><b class="itemname">addEvents</b>
426 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
433 <div class="short">Used to define events on this Observable</div>
439 Used to define events on this Observable
446 <dl class="detailList">
447 <dt class="heading">Parameters:</dt>
450 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>object</b>
453 <dd>The object with the events defined</dd>
473 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
479 <tr class="method-row config-row-alt0 expandable">
480 <td class="micon"><a class="exi" href="#expand"> </a></td>
484 <a id="Roo.dd.DragDrop-method-addInvalidHandleClass" name=".addInvalidHandleClass"></a>
485 <div class="fixedFont">
486 <span class="attributes"></span><b class="itemname">addInvalidHandleClass</b>
488 (string <B><i>cssClass</i></B>)
495 <div class="short">Lets you specify a css class of elements that will not initiate a drag</div>
501 Lets you specify a css class of elements that will not initiate a drag
508 <dl class="detailList">
509 <dt class="heading">Parameters:</dt>
512 <span class="fixedFont">string</span> <b>cssClass</b>
515 <dd>the class of the elements you wish to ignore</dd>
535 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
541 <tr class="method-row config-row-alt1 expandable">
542 <td class="micon"><a class="exi" href="#expand"> </a></td>
546 <a id="Roo.dd.DragDrop-method-addInvalidHandleId" name=".addInvalidHandleId"></a>
547 <div class="fixedFont">
548 <span class="attributes"></span><b class="itemname">addInvalidHandleId</b>
550 (string <B><i>id</i></B>)
557 <div class="short">Lets you to specify an element id for a child of a drag handle<br/>that should not initiate a drag</div>
563 Lets you to specify an element id for a child of a drag handle<br/>that should not initiate a drag
570 <dl class="detailList">
571 <dt class="heading">Parameters:</dt>
574 <span class="fixedFont">string</span> <b>id</b>
577 <dd>the element id of the element you wish to ignore</dd>
597 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
603 <tr class="method-row config-row-alt0 expandable">
604 <td class="micon"><a class="exi" href="#expand"> </a></td>
608 <a id="Roo.dd.DragDrop-method-addInvalidHandleType" name=".addInvalidHandleType"></a>
609 <div class="fixedFont">
610 <span class="attributes"></span><b class="itemname">addInvalidHandleType</b>
612 (string <B><i>tagName</i></B>)
619 <div class="short">Allows you to specify a tag name that should not start a drag operation<br/>when clicked.</div>
625 Allows you to specify a tag name that should not start a drag operation<br/>when clicked. This is designed to facilitate embedding links within a<br/>drag handle that do something other than start the drag.
632 <dl class="detailList">
633 <dt class="heading">Parameters:</dt>
636 <span class="fixedFont">string</span> <b>tagName</b>
639 <dd>the type of element to exclude</dd>
659 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
665 <tr class="method-row config-row-alt1 expandable">
666 <td class="micon"><a class="exi" href="#expand"> </a></td>
670 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
671 <div class="fixedFont">
672 <span class="attributes"></span><b class="itemname">addListener</b>
674 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
681 <div class="short">Appends an event handler to this component</div>
687 Appends an event handler to this component
694 <dl class="detailList">
695 <dt class="heading">Parameters:</dt>
698 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
701 <dd>The type of event to listen for</dd>
704 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
707 <dd>The method the event invokes</dd>
710 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
713 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
716 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
719 <dd>(optional) An object containing handler configuration<br/>properties. This may contain any of the following properties:<ul><br/><li>scope {Object} The scope in which to execute the handler function. The handler function's "this" context.</li><br/><li>delay {Number} The number of milliseconds to delay the invocation of the handler after te event fires.</li><br/><li>single {Boolean} True to add a handler to handle just the next firing of the event, and then remove itself.</li><br/><li>buffer {Number} Causes the handler to be scheduled to run in an {<b>link</b> Roo.util.DelayedTask} delayed<br/>by the specified number of milliseconds. If the event fires again within that time, the original<br/>handler is <em>not</em> invoked, but the new handler is scheduled in its place.</li><br/></ul><br><br/><p><br/><b>Combining Options</b><br><br/>Using the options argument, it is possible to combine different types of listeners:<br><br/><br><br/>A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)<br/> <pre><code><br/> el.on('click', this.onClick, this, {<br/> single: true,<br/> delay: 100,<br/> forumId: 4<br/> });<br/> </code></pre><br/><p><br/><b>Attaching multiple handlers in 1 call</b><br><br/>The method also allows for a single argument to be passed which is a config object containing properties<br/>which specify multiple handlers.<br/><pre><code><br/> el.on({<br/> 'click': {<br/> fn: this.onClick,<br/> scope: this,<br/> delay: 100<br/> }, <br/> 'mouseover': {<br/> fn: this.onMouseOver,<br/> scope: this<br/> },<br/> 'mouseout': {<br/> fn: this.onMouseOut,<br/> scope: this<br/> }<br/> });<br/> </code></pre><br/><p><br/>Or a shorthand syntax which passes the same scope object to all handlers:<br/> <pre><code><br/> el.on({<br/> 'click': this.onClick,<br/> 'mouseover': this.onMouseOver,<br/> 'mouseout': this.onMouseOut,<br/> scope: this<br/> });<br/> </code></pre></dd>
739 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
745 <tr class="method-row config-row-alt0 expandable">
746 <td class="micon"><a class="exi" href="#expand"> </a></td>
750 <a id="Roo.dd.DragDrop-method-addToGroup" name=".addToGroup"></a>
751 <div class="fixedFont">
752 <span class="attributes"></span><b class="itemname">addToGroup</b>
754 (<B><i>sGroup</i></B>)
761 <div class="short">Add this instance to a group of related drag/drop objects.</div>
767 Add this instance to a group of related drag/drop objects. All<br/>instances belong to at least one group, and can belong to as many<br/>groups as needed.
774 <dl class="detailList">
775 <dt class="heading">Parameters:</dt>
781 <dd>{string} the name of the group</dd>
801 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
807 <tr class="method-row config-row-alt1 expandable">
808 <td class="micon"><a class="exi" href="#expand"> </a></td>
812 <a id="Roo.dd.DD-method-alignElWithMouse" name=".alignElWithMouse"></a>
813 <div class="fixedFont">
814 <span class="attributes"></span><b class="itemname">alignElWithMouse</b>
816 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>el</i></B>, int <B><i>iPageX</i></B>, int <B><i>iPageY</i></B>)
823 <div class="short">Sets the element to the location of the mousedown or click event,<br/>maintaining the cursor location relative to the location on the element<br/>that was clicked.</div>
829 Sets the element to the location of the mousedown or click event,<br/>maintaining the cursor location relative to the location on the element<br/>that was clicked. Override this if you want to place the element in a<br/>location other than where the cursor is.
836 <dl class="detailList">
837 <dt class="heading">Parameters:</dt>
840 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>el</b>
843 <dd>the element to move</dd>
846 <span class="fixedFont">int</span> <b>iPageX</b>
849 <dd>the X coordinate of the mousedown or drag event</dd>
852 <span class="fixedFont">int</span> <b>iPageY</b>
855 <dd>the Y coordinate of the mousedown or drag event</dd>
875 <a href="./Roo.dd.DD.html#constructor" roo:cls="Roo.dd.DD.html#constructor">Roo.dd.DD</a>
881 <tr class="method-row config-row-alt0 expandable">
882 <td class="micon"><a class="exi" href="#expand"> </a></td>
886 <a id="Roo.dd.DragDrop-method-applyConfig" name=".applyConfig"></a>
887 <div class="fixedFont">
888 <span class="attributes"></span><b class="itemname">applyConfig</b>
897 <div class="short">Applies the configuration parameters that were passed into the constructor.</div>
903 Applies the configuration parameters that were passed into the constructor.<br/>This is supposed to happen at each level through the inheritance chain. So<br/>a DDProxy implentation will execute apply config on DDProxy, DD, and<br/>DragDrop in order to get all of the parameters that are available in<br/>each object.
926 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
932 <tr class="method-row config-row-alt1 expandable">
933 <td class="micon"><a class="exi" href="#expand"> </a></td>
937 <a id="Roo.dd.DD-method-autoOffset" name=".autoOffset"></a>
938 <div class="fixedFont">
939 <span class="attributes"></span><b class="itemname">autoOffset</b>
941 (int <B><i>iPageX</i></B>, int <B><i>iPageY</i></B>)
948 <div class="short">Sets the pointer offset to the distance between the linked element's top<br/>left corner and the location the element was clicked</div>
954 Sets the pointer offset to the distance between the linked element's top<br/>left corner and the location the element was clicked
961 <dl class="detailList">
962 <dt class="heading">Parameters:</dt>
965 <span class="fixedFont">int</span> <b>iPageX</b>
968 <dd>the X coordinate of the click</dd>
971 <span class="fixedFont">int</span> <b>iPageY</b>
974 <dd>the Y coordinate of the click</dd>
994 <a href="./Roo.dd.DD.html#constructor" roo:cls="Roo.dd.DD.html#constructor">Roo.dd.DD</a>
1000 <tr class="method-row config-row-alt0 expandable notInherited">
1001 <td class="micon"><a class="exi" href="#expand"> </a></td>
1005 <a id="Roo.dd.DragSource-method-beforeDragDrop" name=".beforeDragDrop"></a>
1006 <div class="fixedFont">
1007 <span class="attributes"></span><b class="itemname">beforeDragDrop</b>
1009 (<a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a> <B><i>target</i></B>, Event <B><i>e</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>)
1015 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1024 <div class="short">An empty function by default, but provided so that you can perform a custom action before the dragged<br/>item is dropped onto the target and optionally cancel the onDragDrop.</div>
1030 An empty function by default, but provided so that you can perform a custom action before the dragged<br/>item is dropped onto the target and optionally cancel the onDragDrop.
1037 <dl class="detailList">
1038 <dt class="heading">Parameters:</dt>
1041 <span class="fixedFont"><a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a></span> <b>target</b>
1044 <dd>The drop target</dd>
1047 <span class="fixedFont">Event</span> <b>e</b>
1050 <dd>The event object</dd>
1053 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>id</b>
1056 <dd>The id of the dragged element</dd>
1064 <dl class="detailList">
1065 <dt class="heading">Returns:</dt>
1067 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> isValid True if the drag drop event is valid, else false to cancel</dd>
1081 <td class="msource">
1089 <tr class="method-row config-row-alt1 expandable notInherited">
1090 <td class="micon"><a class="exi" href="#expand"> </a></td>
1094 <a id="Roo.dd.DragSource-method-beforeDragEnter" name=".beforeDragEnter"></a>
1095 <div class="fixedFont">
1096 <span class="attributes"></span><b class="itemname">beforeDragEnter</b>
1098 (<a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a> <B><i>target</i></B>, Event <B><i>e</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>)
1104 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1113 <div class="short">An empty function by default, but provided so that you can perform a custom action<br/>before the dragged item enters the drop target and optionally cancel the onDragEnter.</div>
1119 An empty function by default, but provided so that you can perform a custom action<br/>before the dragged item enters the drop target and optionally cancel the onDragEnter.
1126 <dl class="detailList">
1127 <dt class="heading">Parameters:</dt>
1130 <span class="fixedFont"><a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a></span> <b>target</b>
1133 <dd>The drop target</dd>
1136 <span class="fixedFont">Event</span> <b>e</b>
1139 <dd>The event object</dd>
1142 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>id</b>
1145 <dd>The id of the dragged element</dd>
1153 <dl class="detailList">
1154 <dt class="heading">Returns:</dt>
1156 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> isValid True if the drag event is valid, else false to cancel</dd>
1170 <td class="msource">
1178 <tr class="method-row config-row-alt0 expandable notInherited">
1179 <td class="micon"><a class="exi" href="#expand"> </a></td>
1183 <a id="Roo.dd.DragSource-method-beforeDragOut" name=".beforeDragOut"></a>
1184 <div class="fixedFont">
1185 <span class="attributes"></span><b class="itemname">beforeDragOut</b>
1187 (<a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a> <B><i>target</i></B>, Event <B><i>e</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>)
1193 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1202 <div class="short">An empty function by default, but provided so that you can perform a custom action before the dragged<br/>item is dragged out of the target without dropping, and optionally cancel the onDragOut.</div>
1208 An empty function by default, but provided so that you can perform a custom action before the dragged<br/>item is dragged out of the target without dropping, and optionally cancel the onDragOut.
1215 <dl class="detailList">
1216 <dt class="heading">Parameters:</dt>
1219 <span class="fixedFont"><a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a></span> <b>target</b>
1222 <dd>The drop target</dd>
1225 <span class="fixedFont">Event</span> <b>e</b>
1228 <dd>The event object</dd>
1231 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>id</b>
1234 <dd>The id of the dragged element</dd>
1242 <dl class="detailList">
1243 <dt class="heading">Returns:</dt>
1245 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> isValid True if the drag event is valid, else false to cancel</dd>
1259 <td class="msource">
1267 <tr class="method-row config-row-alt1 expandable notInherited">
1268 <td class="micon"><a class="exi" href="#expand"> </a></td>
1272 <a id="Roo.dd.DragSource-method-beforeDragOver" name=".beforeDragOver"></a>
1273 <div class="fixedFont">
1274 <span class="attributes"></span><b class="itemname">beforeDragOver</b>
1276 (<a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a> <B><i>target</i></B>, Event <B><i>e</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>)
1282 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1291 <div class="short">An empty function by default, but provided so that you can perform a custom action<br/>while the dragged item is over the drop target and optionally cancel the onDragOver.</div>
1297 An empty function by default, but provided so that you can perform a custom action<br/>while the dragged item is over the drop target and optionally cancel the onDragOver.
1304 <dl class="detailList">
1305 <dt class="heading">Parameters:</dt>
1308 <span class="fixedFont"><a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a></span> <b>target</b>
1311 <dd>The drop target</dd>
1314 <span class="fixedFont">Event</span> <b>e</b>
1317 <dd>The event object</dd>
1320 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>id</b>
1323 <dd>The id of the dragged element</dd>
1331 <dl class="detailList">
1332 <dt class="heading">Returns:</dt>
1334 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> isValid True if the drag event is valid, else false to cancel</dd>
1348 <td class="msource">
1356 <tr class="method-row config-row-alt0 expandable notInherited">
1357 <td class="micon"><a class="exi" href="#expand"> </a></td>
1361 <a id="Roo.dd.DragSource-method-beforeInvalidDrop" name=".beforeInvalidDrop"></a>
1362 <div class="fixedFont">
1363 <span class="attributes"></span><b class="itemname">beforeInvalidDrop</b>
1365 (<a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a> <B><i>target</i></B>, Event <B><i>e</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>)
1371 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1380 <div class="short">An empty function by default, but provided so that you can perform a custom action after an invalid<br/>drop has occurred.</div>
1386 An empty function by default, but provided so that you can perform a custom action after an invalid<br/>drop has occurred.
1393 <dl class="detailList">
1394 <dt class="heading">Parameters:</dt>
1397 <span class="fixedFont"><a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a></span> <b>target</b>
1400 <dd>The drop target</dd>
1403 <span class="fixedFont">Event</span> <b>e</b>
1406 <dd>The event object</dd>
1409 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>id</b>
1412 <dd>The id of the dragged element</dd>
1420 <dl class="detailList">
1421 <dt class="heading">Returns:</dt>
1423 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> isValid True if the invalid drop should proceed, else false to cancel</dd>
1437 <td class="msource">
1445 <tr class="method-row config-row-alt1 expandable">
1446 <td class="micon"><a class="exi" href="#expand"> </a></td>
1450 <a id="Roo.dd.DD-method-cachePosition" name=".cachePosition"></a>
1451 <div class="fixedFont">
1452 <span class="attributes"></span><b class="itemname">cachePosition</b>
1454 (<B><i>iPageX</i></B>, <B><i>iPageY</i></B>)
1461 <div class="short">Saves the most recent position so that we can reset the constraints and<br/>tick marks on-demand.</div>
1467 Saves the most recent position so that we can reset the constraints and<br/>tick marks on-demand. We need to know this so that we can calculate the<br/>number of pixels the element is offset from its original position.
1474 <dl class="detailList">
1475 <dt class="heading">Parameters:</dt>
1481 <dd>the current x position (optional, this just makes it so we<br/>don't have to look it up again)</dd>
1487 <dd>the current y position (optional, this just makes it so we<br/>don't have to look it up again)</dd>
1505 <td class="msource">
1507 <a href="./Roo.dd.DD.html#constructor" roo:cls="Roo.dd.DD.html#constructor">Roo.dd.DD</a>
1513 <tr class="method-row config-row-alt0 expandable">
1514 <td class="micon"><a class="exi" href="#expand"> </a></td>
1518 <a id="Roo.dd.DragDrop-method-clearConstraints" name=".clearConstraints"></a>
1519 <div class="fixedFont">
1520 <span class="attributes"></span><b class="itemname">clearConstraints</b>
1529 <div class="short">Clears any constraints applied to this instance.</div>
1535 Clears any constraints applied to this instance. Also clears ticks<br/>since they can't exist independent of a constraint at this time.
1556 <td class="msource">
1558 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
1564 <tr class="method-row config-row-alt1 expandable">
1565 <td class="micon"><a class="exi" href="#expand"> </a></td>
1569 <a id="Roo.dd.DragDrop-method-clearTicks" name=".clearTicks"></a>
1570 <div class="fixedFont">
1571 <span class="attributes"></span><b class="itemname">clearTicks</b>
1580 <div class="short">Clears any tick interval defined for this instance</div>
1586 Clears any tick interval defined for this instance
1607 <td class="msource">
1609 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
1615 <tr class="method-row config-row-alt0 expandable">
1616 <td class="micon"><a class="exi" href="#expand"> </a></td>
1620 <a id="Roo.dd.DDProxy-method-createFrame" name=".createFrame"></a>
1621 <div class="fixedFont">
1622 <span class="attributes"></span><b class="itemname">createFrame</b>
1631 <div class="short">Creates the proxy element if it does not yet exist</div>
1637 Creates the proxy element if it does not yet exist
1658 <td class="msource">
1660 <a href="./Roo.dd.DDProxy.html#constructor" roo:cls="Roo.dd.DDProxy.html#constructor">Roo.dd.DDProxy</a>
1666 <tr class="method-row config-row-alt1 expandable">
1667 <td class="micon"><a class="exi" href="#expand"> </a></td>
1671 <a id="Roo.dd.DragDrop-method-endDrag" name=".endDrag"></a>
1672 <div class="fixedFont">
1673 <span class="attributes"></span><b class="itemname">endDrag</b>
1675 (Event <B><i>e</i></B>)
1682 <div class="short">Fired when we are done dragging the object</div>
1688 Fired when we are done dragging the object
1695 <dl class="detailList">
1696 <dt class="heading">Parameters:</dt>
1699 <span class="fixedFont">Event</span> <b>e</b>
1702 <dd>the mouseup event</dd>
1720 <td class="msource">
1722 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
1728 <tr class="method-row config-row-alt0 expandable">
1729 <td class="micon"><a class="exi" href="#expand"> </a></td>
1733 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
1734 <div class="fixedFont">
1735 <span class="attributes"></span><b class="itemname">fireEvent</b>
1737 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object...</a> <B><i>args</i></B>)
1743 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1752 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
1758 Fires the specified event with the passed parameters (minus the event name).
1765 <dl class="detailList">
1766 <dt class="heading">Parameters:</dt>
1769 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1775 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object...</a></span> <b>args</b>
1778 <dd>Variable number of parameters are passed to handlers</dd>
1786 <dl class="detailList">
1787 <dt class="heading">Returns:</dt>
1789 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> returns false if any of the handlers return false otherwise it returns true</dd>
1803 <td class="msource">
1805 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1811 <tr class="method-row config-row-alt1 expandable">
1812 <td class="micon"><a class="exi" href="#expand"> </a></td>
1816 <a id="Roo.dd.DragDrop-method-function toString() {
1818 }" name=".function toString() {
1821 <div class="fixedFont">
1822 <span class="attributes"></span><b class="itemname">function toString() {
1841 <div class="short">toString method</div>
1858 <dl class="detailList">
1859 <dt class="heading">Returns:</dt>
1861 <dd><span class="fixedFont">string</span> string representation of the dd obj</dd>
1875 <td class="msource">
1877 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
1883 <tr class="method-row config-row-alt0 expandable notInherited">
1884 <td class="micon"><a class="exi" href="#expand"> </a></td>
1888 <a id="Roo.dd.DragSource-method-getDragData" name=".getDragData"></a>
1889 <div class="fixedFont">
1890 <span class="attributes"></span><b class="itemname">getDragData</b>
1898 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
1907 <div class="short">Returns the data object associated with this drag source</div>
1913 Returns the data object associated with this drag source
1924 <dl class="detailList">
1925 <dt class="heading">Returns:</dt>
1927 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> data An object containing arbitrary data</dd>
1941 <td class="msource">
1949 <tr class="method-row config-row-alt1 expandable">
1950 <td class="micon"><a class="exi" href="#expand"> </a></td>
1954 <a id="Roo.dd.DragDrop-method-getDragEl" name=".getDragEl"></a>
1955 <div class="fixedFont">
1956 <span class="attributes"></span><b class="itemname">getDragEl</b>
1964 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
1973 <div class="short">Returns a reference to the actual element to drag.</div>
1979 Returns a reference to the actual element to drag. By default this is<br/>the same as the html element, but it can be assigned to another<br/>element. An example of this can be found in Roo.dd.DDProxy
1990 <dl class="detailList">
1991 <dt class="heading">Returns:</dt>
1993 <dd><span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> the html element</dd>
2007 <td class="msource">
2009 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
2015 <tr class="method-row config-row-alt0 expandable">
2016 <td class="micon"><a class="exi" href="#expand"> </a></td>
2020 <a id="Roo.dd.DragDrop-method-getEl" name=".getEl"></a>
2021 <div class="fixedFont">
2022 <span class="attributes"></span><b class="itemname">getEl</b>
2030 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
2039 <div class="short">Returns a reference to the linked element</div>
2045 Returns a reference to the linked element
2056 <dl class="detailList">
2057 <dt class="heading">Returns:</dt>
2059 <dd><span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> the html element</dd>
2073 <td class="msource">
2075 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
2081 <tr class="method-row config-row-alt1 expandable notInherited">
2082 <td class="micon"><a class="exi" href="#expand"> </a></td>
2086 <a id="Roo.dd.DragSource-method-getProxy" name=".getProxy"></a>
2087 <div class="fixedFont">
2088 <span class="attributes"></span><b class="itemname">getProxy</b>
2096 <a href="./Roo.dd.StatusProxy.html#constructor" roo:cls="Roo.dd.StatusProxy.html#constructor">Roo.dd.StatusProxy</a>
2105 <div class="short">Returns the drag source's underlying {<b>link</b> Roo.dd.StatusProxy}</div>
2111 Returns the drag source's underlying {<b>link</b> Roo.dd.StatusProxy}
2122 <dl class="detailList">
2123 <dt class="heading">Returns:</dt>
2125 <dd><span class="fixedFont"><a href="./Roo.dd.StatusProxy.html#constructor" roo:cls="Roo.dd.StatusProxy.html#constructor">Roo.dd.StatusProxy</a></span> proxy The StatusProxy</dd>
2139 <td class="msource">
2147 <tr class="method-row config-row-alt0 expandable">
2148 <td class="micon"><a class="exi" href="#expand"> </a></td>
2152 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
2153 <div class="fixedFont">
2154 <span class="attributes"></span><b class="itemname">hasListener</b>
2156 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
2162 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
2171 <div class="short">Checks to see if this object has any listeners for a specified event</div>
2177 Checks to see if this object has any listeners for a specified event
2184 <dl class="detailList">
2185 <dt class="heading">Parameters:</dt>
2188 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2191 <dd>The name of the event to check for</dd>
2199 <dl class="detailList">
2200 <dt class="heading">Returns:</dt>
2202 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> True if the event is being listened for, else false</dd>
2216 <td class="msource">
2218 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2224 <tr class="method-row config-row-alt1 expandable notInherited">
2225 <td class="micon"><a class="exi" href="#expand"> </a></td>
2229 <a id="Roo.dd.DragSource-method-hideProxy" name=".hideProxy"></a>
2230 <div class="fixedFont">
2231 <span class="attributes"></span><b class="itemname">hideProxy</b>
2240 <div class="short">Hides the drag source's {<b>link</b> Roo.dd.StatusProxy}</div>
2246 Hides the drag source's {<b>link</b> Roo.dd.StatusProxy}
2267 <td class="msource">
2275 <tr class="method-row config-row-alt0 expandable">
2276 <td class="micon"><a class="exi" href="#expand"> </a></td>
2280 <a id="Roo.dd.DragDrop-method-init" name=".init"></a>
2281 <div class="fixedFont">
2282 <span class="attributes"></span><b class="itemname">init</b>
2284 (<B><i>id</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>sGroup</i></B>, object <B><i>config</i></B>)
2291 <div class="short">Sets up the DragDrop object.</div>
2297 Sets up the DragDrop object. Must be called in the constructor of any<br/>Roo.dd.DragDrop subclass
2304 <dl class="detailList">
2305 <dt class="heading">Parameters:</dt>
2311 <dd>the id of the linked element</dd>
2314 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>sGroup</b>
2317 <dd>the group of related items</dd>
2320 <span class="fixedFont">object</span> <b>config</b>
2323 <dd>configuration attributes</dd>
2341 <td class="msource">
2343 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
2349 <tr class="method-row config-row-alt1 expandable">
2350 <td class="micon"><a class="exi" href="#expand"> </a></td>
2354 <a id="Roo.dd.DDProxy-method-initFrame" name=".initFrame"></a>
2355 <div class="fixedFont">
2356 <span class="attributes"></span><b class="itemname">initFrame</b>
2365 <div class="short">Initialization for the drag frame element.</div>
2371 Initialization for the drag frame element. Must be called in the<br/>constructor of all subclasses
2392 <td class="msource">
2394 <a href="./Roo.dd.DDProxy.html#constructor" roo:cls="Roo.dd.DDProxy.html#constructor">Roo.dd.DDProxy</a>
2400 <tr class="method-row config-row-alt0 expandable">
2401 <td class="micon"><a class="exi" href="#expand"> </a></td>
2405 <a id="Roo.dd.DragDrop-method-initTarget" name=".initTarget"></a>
2406 <div class="fixedFont">
2407 <span class="attributes"></span><b class="itemname">initTarget</b>
2409 (<B><i>id</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>sGroup</i></B>, object <B><i>config</i></B>)
2416 <div class="short">Initializes Targeting functionality only.</div>
2422 Initializes Targeting functionality only... the object does not<br/>get a mousedown handler.
2429 <dl class="detailList">
2430 <dt class="heading">Parameters:</dt>
2436 <dd>the id of the linked element</dd>
2439 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>sGroup</b>
2442 <dd>the group of related items</dd>
2445 <span class="fixedFont">object</span> <b>config</b>
2448 <dd>configuration attributes</dd>
2466 <td class="msource">
2468 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
2474 <tr class="method-row config-row-alt1 expandable">
2475 <td class="micon"><a class="exi" href="#expand"> </a></td>
2479 <a id="Roo.dd.DragDrop-method-isLocked" name=".isLocked"></a>
2480 <div class="fixedFont">
2481 <span class="attributes"></span><b class="itemname">isLocked</b>
2498 <div class="short">Returns true if this instance is locked, or the drag drop mgr is locked<br/>(meaning that all drag/drop is disabled on the page.</div>
2504 Returns true if this instance is locked, or the drag drop mgr is locked<br/>(meaning that all drag/drop is disabled on the page.)
2515 <dl class="detailList">
2516 <dt class="heading">Returns:</dt>
2518 <dd><span class="fixedFont">boolean</span> true if this obj or all drag/drop is locked, else<br/>false</dd>
2532 <td class="msource">
2534 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
2540 <tr class="method-row config-row-alt0 expandable">
2541 <td class="micon"><a class="exi" href="#expand"> </a></td>
2545 <a id="Roo.dd.DragDrop-method-isTarget" name=".isTarget"></a>
2546 <div class="fixedFont">
2547 <span class="attributes"></span><b class="itemname">isTarget</b>
2556 <div class="short">By default, all insances can be a drop target.</div>
2562 By default, all insances can be a drop target. This can be disabled by<br/>setting isTarget to false.
2583 <td class="msource">
2585 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
2591 <tr class="method-row config-row-alt1 expandable">
2592 <td class="micon"><a class="exi" href="#expand"> </a></td>
2596 <a id="Roo.dd.DragDrop-method-isValidHandleChild" name=".isValidHandleChild"></a>
2597 <div class="fixedFont">
2598 <span class="attributes"></span><b class="itemname">isValidHandleChild</b>
2600 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>)
2615 <div class="short">Checks the tag exclusion list to see if this click should be ignored</div>
2621 Checks the tag exclusion list to see if this click should be ignored
2628 <dl class="detailList">
2629 <dt class="heading">Parameters:</dt>
2632 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2635 <dd>the HTMLElement to evaluate</dd>
2643 <dl class="detailList">
2644 <dt class="heading">Returns:</dt>
2646 <dd><span class="fixedFont">boolean</span> true if this is a valid tag type, false if not</dd>
2660 <td class="msource">
2662 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
2668 <tr class="method-row config-row-alt0 expandable">
2669 <td class="micon"><a class="exi" href="#expand"> </a></td>
2673 <a id="Roo.dd.DragDrop-method-lock" name=".lock"></a>
2674 <div class="fixedFont">
2675 <span class="attributes"></span><b class="itemname">lock</b>
2684 <div class="short">Lock this instance</div>
2711 <td class="msource">
2713 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
2719 <tr class="method-row config-row-alt1 expandable">
2720 <td class="micon"><a class="exi" href="#expand"> </a></td>
2724 <a id="Roo.util.Observable-method-on" name=".on"></a>
2725 <div class="fixedFont">
2726 <span class="attributes"></span><b class="itemname">on</b>
2728 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
2735 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
2741 Appends an event handler to this element (shorthand for addListener)
2748 <dl class="detailList">
2749 <dt class="heading">Parameters:</dt>
2752 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2755 <dd>The type of event to listen for</dd>
2758 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2761 <dd>The method the event invokes</dd>
2764 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
2767 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
2770 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
2791 <td class="msource">
2793 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2799 <tr class="method-row config-row-alt0 expandable">
2800 <td class="micon"><a class="exi" href="#expand"> </a></td>
2804 <a id="Roo.dd.DragDrop-method-onAvailable" name=".onAvailable"></a>
2805 <div class="fixedFont">
2806 <span class="attributes"></span><b class="itemname">onAvailable</b>
2815 <div class="short">Override the onAvailable method to do what is needed after the initial<br/>position was determined.</div>
2821 Override the onAvailable method to do what is needed after the initial<br/>position was determined.
2842 <td class="msource">
2844 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
2850 <tr class="method-row config-row-alt1 expandable notInherited">
2851 <td class="micon"><a class="exi" href="#expand"> </a></td>
2855 <a id="Roo.dd.DragSource-method-onBeforeDrag" name=".onBeforeDrag"></a>
2856 <div class="fixedFont">
2857 <span class="attributes"></span><b class="itemname">onBeforeDrag</b>
2859 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>data</i></B>, Event <B><i>e</i></B>)
2865 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
2874 <div class="short">An empty function by default, but provided so that you can perform a custom action before the initial<br/>drag event begins and optionally cancel it.</div>
2880 An empty function by default, but provided so that you can perform a custom action before the initial<br/>drag event begins and optionally cancel it.
2887 <dl class="detailList">
2888 <dt class="heading">Parameters:</dt>
2891 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>data</b>
2894 <dd>An object containing arbitrary data to be shared with drop targets</dd>
2897 <span class="fixedFont">Event</span> <b>e</b>
2900 <dd>The event object</dd>
2908 <dl class="detailList">
2909 <dt class="heading">Returns:</dt>
2911 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> isValid True if the drag event is valid, else false to cancel</dd>
2925 <td class="msource">
2933 <tr class="method-row config-row-alt0 expandable">
2934 <td class="micon"><a class="exi" href="#expand"> </a></td>
2938 <a id="Roo.dd.DragDrop-method-onDrag" name=".onDrag"></a>
2939 <div class="fixedFont">
2940 <span class="attributes"></span><b class="itemname">onDrag</b>
2942 (Event <B><i>e</i></B>)
2949 <div class="short">Abstract method called during the onMouseMove event while dragging an<br/>object.</div>
2955 Abstract method called during the onMouseMove event while dragging an<br/>object.
2962 <dl class="detailList">
2963 <dt class="heading">Parameters:</dt>
2966 <span class="fixedFont">Event</span> <b>e</b>
2969 <dd>the mousemove event</dd>
2987 <td class="msource">
2989 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
2995 <tr class="method-row config-row-alt1 expandable">
2996 <td class="micon"><a class="exi" href="#expand"> </a></td>
3000 <a id="Roo.dd.DragDrop-method-onDragDrop" name=".onDragDrop"></a>
3001 <div class="fixedFont">
3002 <span class="attributes"></span><b class="itemname">onDragDrop</b>
3004 (Event <B><i>e</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>|DragDrop[] <B><i>id</i></B>)
3011 <div class="short">Abstract method called when this item is dropped on another DragDrop<br/>obj</div>
3017 Abstract method called when this item is dropped on another DragDrop<br/>obj
3024 <dl class="detailList">
3025 <dt class="heading">Parameters:</dt>
3028 <span class="fixedFont">Event</span> <b>e</b>
3031 <dd>the mouseup event</dd>
3034 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>|DragDrop[]</span> <b>id</b>
3037 <dd>In POINT mode, the element<br/>id this was dropped on. In INTERSECT mode, an array of dd items this<br/>was dropped on.</dd>
3055 <td class="msource">
3057 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
3063 <tr class="method-row config-row-alt0 expandable">
3064 <td class="micon"><a class="exi" href="#expand"> </a></td>
3068 <a id="Roo.dd.DragDrop-method-onDragEnter" name=".onDragEnter"></a>
3069 <div class="fixedFont">
3070 <span class="attributes"></span><b class="itemname">onDragEnter</b>
3072 (Event <B><i>e</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>|DragDrop[] <B><i>id</i></B>)
3079 <div class="short">Abstract method called when this element fist begins hovering over<br/>another DragDrop obj</div>
3085 Abstract method called when this element fist begins hovering over<br/>another DragDrop obj
3092 <dl class="detailList">
3093 <dt class="heading">Parameters:</dt>
3096 <span class="fixedFont">Event</span> <b>e</b>
3099 <dd>the mousemove event</dd>
3102 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>|DragDrop[]</span> <b>id</b>
3105 <dd>In POINT mode, the element<br/>id this is hovering over. In INTERSECT mode, an array of one or more<br/>dragdrop items being hovered over.</dd>
3123 <td class="msource">
3125 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
3131 <tr class="method-row config-row-alt1 expandable">
3132 <td class="micon"><a class="exi" href="#expand"> </a></td>
3136 <a id="Roo.dd.DragDrop-method-onDragOut" name=".onDragOut"></a>
3137 <div class="fixedFont">
3138 <span class="attributes"></span><b class="itemname">onDragOut</b>
3140 (Event <B><i>e</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>|DragDrop[] <B><i>id</i></B>)
3147 <div class="short">Abstract method called when we are no longer hovering over an element</div>
3153 Abstract method called when we are no longer hovering over an element
3160 <dl class="detailList">
3161 <dt class="heading">Parameters:</dt>
3164 <span class="fixedFont">Event</span> <b>e</b>
3167 <dd>the mousemove event</dd>
3170 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>|DragDrop[]</span> <b>id</b>
3173 <dd>In POINT mode, the element<br/>id this was hovering over. In INTERSECT mode, an array of dd items<br/>that the mouse is no longer over.</dd>
3191 <td class="msource">
3193 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
3199 <tr class="method-row config-row-alt0 expandable">
3200 <td class="micon"><a class="exi" href="#expand"> </a></td>
3204 <a id="Roo.dd.DragDrop-method-onDragOver" name=".onDragOver"></a>
3205 <div class="fixedFont">
3206 <span class="attributes"></span><b class="itemname">onDragOver</b>
3208 (Event <B><i>e</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>|DragDrop[] <B><i>id</i></B>)
3215 <div class="short">Abstract method called when this element is hovering over another<br/>DragDrop obj</div>
3221 Abstract method called when this element is hovering over another<br/>DragDrop obj
3228 <dl class="detailList">
3229 <dt class="heading">Parameters:</dt>
3232 <span class="fixedFont">Event</span> <b>e</b>
3235 <dd>the mousemove event</dd>
3238 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>|DragDrop[]</span> <b>id</b>
3241 <dd>In POINT mode, the element<br/>id this is hovering over. In INTERSECT mode, an array of dd items<br/>being hovered over.</dd>
3259 <td class="msource">
3261 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
3267 <tr class="method-row config-row-alt1 expandable">
3268 <td class="micon"><a class="exi" href="#expand"> </a></td>
3272 <a id="Roo.dd.DragDrop-method-onInvalidDrop" name=".onInvalidDrop"></a>
3273 <div class="fixedFont">
3274 <span class="attributes"></span><b class="itemname">onInvalidDrop</b>
3276 (Event <B><i>e</i></B>)
3283 <div class="short">Abstract method called when this item is dropped on an area with no<br/>drop target</div>
3289 Abstract method called when this item is dropped on an area with no<br/>drop target
3296 <dl class="detailList">
3297 <dt class="heading">Parameters:</dt>
3300 <span class="fixedFont">Event</span> <b>e</b>
3303 <dd>the mouseup event</dd>
3321 <td class="msource">
3323 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
3329 <tr class="method-row config-row-alt0 expandable">
3330 <td class="micon"><a class="exi" href="#expand"> </a></td>
3334 <a id="Roo.dd.DragDrop-method-onMouseDown" name=".onMouseDown"></a>
3335 <div class="fixedFont">
3336 <span class="attributes"></span><b class="itemname">onMouseDown</b>
3338 (Event <B><i>e</i></B>)
3345 <div class="short">Event handler that fires when a drag/drop obj gets a mousedown</div>
3351 Event handler that fires when a drag/drop obj gets a mousedown
3358 <dl class="detailList">
3359 <dt class="heading">Parameters:</dt>
3362 <span class="fixedFont">Event</span> <b>e</b>
3365 <dd>the mousedown event</dd>
3383 <td class="msource">
3385 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
3391 <tr class="method-row config-row-alt1 expandable">
3392 <td class="micon"><a class="exi" href="#expand"> </a></td>
3396 <a id="Roo.dd.DragDrop-method-onMouseUp" name=".onMouseUp"></a>
3397 <div class="fixedFont">
3398 <span class="attributes"></span><b class="itemname">onMouseUp</b>
3400 (Event <B><i>e</i></B>)
3407 <div class="short">Event handler that fires when a drag/drop obj gets a mouseup</div>
3413 Event handler that fires when a drag/drop obj gets a mouseup
3420 <dl class="detailList">
3421 <dt class="heading">Parameters:</dt>
3424 <span class="fixedFont">Event</span> <b>e</b>
3427 <dd>the mouseup event</dd>
3445 <td class="msource">
3447 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
3453 <tr class="method-row config-row-alt0 expandable notInherited">
3454 <td class="micon"><a class="exi" href="#expand"> </a></td>
3458 <a id="Roo.dd.DragSource-method-onStartDrag" name=".onStartDrag"></a>
3459 <div class="fixedFont">
3460 <span class="attributes"></span><b class="itemname">onStartDrag</b>
3462 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>x</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>y</i></B>)
3469 <div class="short">An empty function by default, but provided so that you can perform a custom action once the initial<br/>drag event has begun.</div>
3475 An empty function by default, but provided so that you can perform a custom action once the initial<br/>drag event has begun. The drag cannot be canceled from this function.
3482 <dl class="detailList">
3483 <dt class="heading">Parameters:</dt>
3486 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>x</b>
3489 <dd>The x position of the click on the dragged object</dd>
3492 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>y</b>
3495 <dd>The y position of the click on the dragged object</dd>
3513 <td class="msource">
3521 <tr class="method-row config-row-alt1 expandable">
3522 <td class="micon"><a class="exi" href="#expand"> </a></td>
3526 <a id="Roo.dd.DragDrop-method-padding" name=".padding"></a>
3527 <div class="fixedFont">
3528 <span class="attributes"></span><b class="itemname">padding</b>
3537 <div class="short">The padding configured for this drag and drop object for calculating<br/>the drop zone intersection with this object.</div>
3543 The padding configured for this drag and drop object for calculating<br/>the drop zone intersection with this object.
3564 <td class="msource">
3566 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
3572 <tr class="method-row config-row-alt0 expandable">
3573 <td class="micon"><a class="exi" href="#expand"> </a></td>
3577 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
3578 <div class="fixedFont">
3579 <span class="attributes"></span><b class="itemname">purgeListeners</b>
3588 <div class="short">Removes all listeners for this object</div>
3594 Removes all listeners for this object
3615 <td class="msource">
3617 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
3623 <tr class="method-row config-row-alt1 expandable">
3624 <td class="micon"><a class="exi" href="#expand"> </a></td>
3628 <a id="Roo.dd.DragDrop-method-removeFromGroup" name=".removeFromGroup"></a>
3629 <div class="fixedFont">
3630 <span class="attributes"></span><b class="itemname">removeFromGroup</b>
3632 (string <B><i>sGroup</i></B>)
3639 <div class="short">Remove's this instance from the supplied interaction group</div>
3645 Remove's this instance from the supplied interaction group
3652 <dl class="detailList">
3653 <dt class="heading">Parameters:</dt>
3656 <span class="fixedFont">string</span> <b>sGroup</b>
3659 <dd>The group to drop</dd>
3677 <td class="msource">
3679 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
3685 <tr class="method-row config-row-alt0 expandable">
3686 <td class="micon"><a class="exi" href="#expand"> </a></td>
3690 <a id="Roo.dd.DragDrop-method-removeInvalidHandleClass" name=".removeInvalidHandleClass"></a>
3691 <div class="fixedFont">
3692 <span class="attributes"></span><b class="itemname">removeInvalidHandleClass</b>
3694 (string <B><i>cssClass</i></B>)
3701 <div class="short">Unsets an invalid css class</div>
3707 Unsets an invalid css class
3714 <dl class="detailList">
3715 <dt class="heading">Parameters:</dt>
3718 <span class="fixedFont">string</span> <b>cssClass</b>
3721 <dd>the class of the element(s) you wish to<br/>re-enable</dd>
3739 <td class="msource">
3741 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
3747 <tr class="method-row config-row-alt1 expandable">
3748 <td class="micon"><a class="exi" href="#expand"> </a></td>
3752 <a id="Roo.dd.DragDrop-method-removeInvalidHandleId" name=".removeInvalidHandleId"></a>
3753 <div class="fixedFont">
3754 <span class="attributes"></span><b class="itemname">removeInvalidHandleId</b>
3756 (string <B><i>id</i></B>)
3763 <div class="short">Unsets an invalid handle id</div>
3769 Unsets an invalid handle id
3776 <dl class="detailList">
3777 <dt class="heading">Parameters:</dt>
3780 <span class="fixedFont">string</span> <b>id</b>
3783 <dd>the id of the element to re-enable</dd>
3801 <td class="msource">
3803 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
3809 <tr class="method-row config-row-alt0 expandable">
3810 <td class="micon"><a class="exi" href="#expand"> </a></td>
3814 <a id="Roo.dd.DragDrop-method-removeInvalidHandleType" name=".removeInvalidHandleType"></a>
3815 <div class="fixedFont">
3816 <span class="attributes"></span><b class="itemname">removeInvalidHandleType</b>
3818 (string <B><i>tagName</i></B>)
3825 <div class="short">Unsets an excluded tag name set by addInvalidHandleType</div>
3831 Unsets an excluded tag name set by addInvalidHandleType
3838 <dl class="detailList">
3839 <dt class="heading">Parameters:</dt>
3842 <span class="fixedFont">string</span> <b>tagName</b>
3845 <dd>the type of element to unexclude</dd>
3863 <td class="msource">
3865 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
3871 <tr class="method-row config-row-alt1 expandable">
3872 <td class="micon"><a class="exi" href="#expand"> </a></td>
3876 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
3877 <div class="fixedFont">
3878 <span class="attributes"></span><b class="itemname">removeListener</b>
3880 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
3887 <div class="short">Removes a listener</div>
3900 <dl class="detailList">
3901 <dt class="heading">Parameters:</dt>
3904 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
3907 <dd>The type of event to listen for</dd>
3910 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
3913 <dd>The handler to remove</dd>
3916 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
3919 <dd>(optional) The scope (this object) for the handler</dd>
3937 <td class="msource">
3939 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
3945 <tr class="method-row config-row-alt0 expandable">
3946 <td class="micon"><a class="exi" href="#expand"> </a></td>
3950 <a id="Roo.dd.DragDrop-method-resetConstraints" name=".resetConstraints"></a>
3951 <div class="fixedFont">
3952 <span class="attributes"></span><b class="itemname">resetConstraints</b>
3954 (boolean <B><i>maintainOffset</i></B>)
3961 <div class="short">resetConstraints must be called if you manually reposition a dd element.</div>
3967 resetConstraints must be called if you manually reposition a dd element.
3974 <dl class="detailList">
3975 <dt class="heading">Parameters:</dt>
3978 <span class="fixedFont">boolean</span> <b>maintainOffset</b>
3999 <td class="msource">
4001 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
4007 <tr class="method-row config-row-alt1 expandable">
4008 <td class="micon"><a class="exi" href="#expand"> </a></td>
4012 <a id="Roo.dd.DD-method-setDelta" name=".setDelta"></a>
4013 <div class="fixedFont">
4014 <span class="attributes"></span><b class="itemname">setDelta</b>
4016 (int <B><i>iDeltaX</i></B>, int <B><i>iDeltaY</i></B>)
4023 <div class="short">Sets the pointer offset.</div>
4029 Sets the pointer offset. You can call this directly to force the<br/>offset to be in a particular location (e.g., pass in 0,0 to set it<br/>to the center of the object)
4036 <dl class="detailList">
4037 <dt class="heading">Parameters:</dt>
4040 <span class="fixedFont">int</span> <b>iDeltaX</b>
4043 <dd>the distance from the left</dd>
4046 <span class="fixedFont">int</span> <b>iDeltaY</b>
4049 <dd>the distance from the top</dd>
4067 <td class="msource">
4069 <a href="./Roo.dd.DD.html#constructor" roo:cls="Roo.dd.DD.html#constructor">Roo.dd.DD</a>
4075 <tr class="method-row config-row-alt0 expandable">
4076 <td class="micon"><a class="exi" href="#expand"> </a></td>
4080 <a id="Roo.dd.DragDrop-method-setDragElId" name=".setDragElId"></a>
4081 <div class="fixedFont">
4082 <span class="attributes"></span><b class="itemname">setDragElId</b>
4091 <div class="short">Allows you to specify that an element other than the linked element<br/>will be moved with the cursor during a drag</div>
4097 Allows you to specify that an element other than the linked element<br/>will be moved with the cursor during a drag
4104 <dl class="detailList">
4105 <dt class="heading">Parameters:</dt>
4111 <dd>{string} the id of the element that will be used to initiate the drag</dd>
4129 <td class="msource">
4131 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
4137 <tr class="method-row config-row-alt1 expandable">
4138 <td class="micon"><a class="exi" href="#expand"> </a></td>
4142 <a id="Roo.dd.DD-method-setDragElPos" name=".setDragElPos"></a>
4143 <div class="fixedFont">
4144 <span class="attributes"></span><b class="itemname">setDragElPos</b>
4146 (int <B><i>iPageX</i></B>, int <B><i>iPageY</i></B>)
4153 <div class="short">Sets the drag element to the location of the mousedown or click event,<br/>maintaining the cursor location relative to the location on the element<br/>that was clicked.</div>
4159 Sets the drag element to the location of the mousedown or click event,<br/>maintaining the cursor location relative to the location on the element<br/>that was clicked. Override this if you want to place the element in a<br/>location other than where the cursor is.
4166 <dl class="detailList">
4167 <dt class="heading">Parameters:</dt>
4170 <span class="fixedFont">int</span> <b>iPageX</b>
4173 <dd>the X coordinate of the mousedown or drag event</dd>
4176 <span class="fixedFont">int</span> <b>iPageY</b>
4179 <dd>the Y coordinate of the mousedown or drag event</dd>
4197 <td class="msource">
4199 <a href="./Roo.dd.DD.html#constructor" roo:cls="Roo.dd.DD.html#constructor">Roo.dd.DD</a>
4205 <tr class="method-row config-row-alt0 expandable">
4206 <td class="micon"><a class="exi" href="#expand"> </a></td>
4210 <a id="Roo.dd.DragDrop-method-setHandleElId" name=".setHandleElId"></a>
4211 <div class="fixedFont">
4212 <span class="attributes"></span><b class="itemname">setHandleElId</b>
4221 <div class="short">Allows you to specify a child of the linked element that should be<br/>used to initiate the drag operation.</div>
4227 Allows you to specify a child of the linked element that should be<br/>used to initiate the drag operation. An example of this would be if<br/>you have a content div with text and links. Clicking anywhere in the<br/>content area would normally start the drag operation. Use this method<br/>to specify that an element inside of the content div is the element<br/>that starts the drag operation.
4234 <dl class="detailList">
4235 <dt class="heading">Parameters:</dt>
4241 <dd>{string} the id of the element that will be used to<br/>initiate the drag.</dd>
4259 <td class="msource">
4261 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
4267 <tr class="method-row config-row-alt1 expandable">
4268 <td class="micon"><a class="exi" href="#expand"> </a></td>
4272 <a id="Roo.dd.DragDrop-method-setInitPosition" name=".setInitPosition"></a>
4273 <div class="fixedFont">
4274 <span class="attributes"></span><b class="itemname">setInitPosition</b>
4276 (int <B><i>diffX</i></B>, int <B><i>diffY</i></B>)
4283 <div class="short">Stores the initial placement of the linked element.</div>
4289 Stores the initial placement of the linked element.
4296 <dl class="detailList">
4297 <dt class="heading">Parameters:</dt>
4300 <span class="fixedFont">int</span> <b>diffX</b>
4303 <dd>the X offset, default 0</dd>
4306 <span class="fixedFont">int</span> <b>diffY</b>
4309 <dd>the Y offset, default 0</dd>
4327 <td class="msource">
4329 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
4335 <tr class="method-row config-row-alt0 expandable">
4336 <td class="micon"><a class="exi" href="#expand"> </a></td>
4340 <a id="Roo.dd.DragDrop-method-setOuterHandleElId" name=".setOuterHandleElId"></a>
4341 <div class="fixedFont">
4342 <span class="attributes"></span><b class="itemname">setOuterHandleElId</b>
4351 <div class="short">Allows you to set an element outside of the linked element as a drag<br/>handle</div>
4357 Allows you to set an element outside of the linked element as a drag<br/>handle
4364 <dl class="detailList">
4365 <dt class="heading">Parameters:</dt>
4371 <dd>the id of the element that will be used to initiate the drag</dd>
4389 <td class="msource">
4391 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
4397 <tr class="method-row config-row-alt1 expandable">
4398 <td class="micon"><a class="exi" href="#expand"> </a></td>
4402 <a id="Roo.dd.DragDrop-method-setPadding" name=".setPadding"></a>
4403 <div class="fixedFont">
4404 <span class="attributes"></span><b class="itemname">setPadding</b>
4406 (int <B><i>iTop</i></B>, int <B><i>iRight</i></B>, int <B><i>iBot</i></B>, int <B><i>iLeft</i></B>)
4413 <div class="short">Configures the padding for the target zone in px.</div>
4419 Configures the padding for the target zone in px. Effectively expands<br/>(or reduces) the virtual object size for targeting calculations.<br/>Supports css-style shorthand; if only one parameter is passed, all sides<br/>will have that padding, and if only two are passed, the top and bottom<br/>will have the first param, the left and right the second.
4426 <dl class="detailList">
4427 <dt class="heading">Parameters:</dt>
4430 <span class="fixedFont">int</span> <b>iTop</b>
4436 <span class="fixedFont">int</span> <b>iRight</b>
4442 <span class="fixedFont">int</span> <b>iBot</b>
4448 <span class="fixedFont">int</span> <b>iLeft</b>
4469 <td class="msource">
4471 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
4477 <tr class="method-row config-row-alt0 expandable">
4478 <td class="micon"><a class="exi" href="#expand"> </a></td>
4482 <a id="Roo.dd.DragDrop-method-setXConstraint" name=".setXConstraint"></a>
4483 <div class="fixedFont">
4484 <span class="attributes"></span><b class="itemname">setXConstraint</b>
4486 (int <B><i>iLeft</i></B>, int <B><i>iRight</i></B>, int <B><i>iTickSize</i></B>)
4493 <div class="short">By default, the element can be dragged any place on the screen.</div>
4499 By default, the element can be dragged any place on the screen. Use<br/>this method to limit the horizontal travel of the element. Pass in<br/>0,0 for the parameters if you want to lock the drag to the y axis.
4506 <dl class="detailList">
4507 <dt class="heading">Parameters:</dt>
4510 <span class="fixedFont">int</span> <b>iLeft</b>
4513 <dd>the number of pixels the element can move to the left</dd>
4516 <span class="fixedFont">int</span> <b>iRight</b>
4519 <dd>the number of pixels the element can move to the<br/>right</dd>
4522 <span class="fixedFont">int</span> <b>iTickSize</b>
4525 <dd>optional parameter for specifying that the<br/>element<br/>should move iTickSize pixels at a time.</dd>
4543 <td class="msource">
4545 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
4551 <tr class="method-row config-row-alt1 expandable">
4552 <td class="micon"><a class="exi" href="#expand"> </a></td>
4556 <a id="Roo.dd.DragDrop-method-setYConstraint" name=".setYConstraint"></a>
4557 <div class="fixedFont">
4558 <span class="attributes"></span><b class="itemname">setYConstraint</b>
4560 (int <B><i>iUp</i></B>, int <B><i>iDown</i></B>, int <B><i>iTickSize</i></B>)
4567 <div class="short">By default, the element can be dragged any place on the screen.</div>
4573 By default, the element can be dragged any place on the screen. Set<br/>this to limit the vertical travel of the element. Pass in 0,0 for the<br/>parameters if you want to lock the drag to the x axis.
4580 <dl class="detailList">
4581 <dt class="heading">Parameters:</dt>
4584 <span class="fixedFont">int</span> <b>iUp</b>
4587 <dd>the number of pixels the element can move up</dd>
4590 <span class="fixedFont">int</span> <b>iDown</b>
4593 <dd>the number of pixels the element can move down</dd>
4596 <span class="fixedFont">int</span> <b>iTickSize</b>
4599 <dd>optional parameter for specifying that the<br/>element should move iTickSize pixels at a time.</dd>
4617 <td class="msource">
4619 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
4625 <tr class="method-row config-row-alt0 expandable">
4626 <td class="micon"><a class="exi" href="#expand"> </a></td>
4630 <a id="Roo.dd.DragDrop-method-startDrag" name=".startDrag"></a>
4631 <div class="fixedFont">
4632 <span class="attributes"></span><b class="itemname">startDrag</b>
4634 (int <B><i>X</i></B>, int <B><i>Y</i></B>)
4641 <div class="short">Abstract method called after a drag/drop object is clicked<br/>and the drag or mousedown time thresholds have beeen met.</div>
4647 Abstract method called after a drag/drop object is clicked<br/>and the drag or mousedown time thresholds have beeen met.
4654 <dl class="detailList">
4655 <dt class="heading">Parameters:</dt>
4658 <span class="fixedFont">int</span> <b>X</b>
4661 <dd>click location</dd>
4664 <span class="fixedFont">int</span> <b>Y</b>
4667 <dd>click location</dd>
4685 <td class="msource">
4687 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
4693 <tr class="method-row config-row-alt1 expandable">
4694 <td class="micon"><a class="exi" href="#expand"> </a></td>
4698 <a id="Roo.util.Observable-method-un" name=".un"></a>
4699 <div class="fixedFont">
4700 <span class="attributes"></span><b class="itemname">un</b>
4702 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
4709 <div class="short">Removes a listener (shorthand for removeListener)</div>
4715 Removes a listener (shorthand for removeListener)
4722 <dl class="detailList">
4723 <dt class="heading">Parameters:</dt>
4726 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
4729 <dd>The type of event to listen for</dd>
4732 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
4735 <dd>The handler to remove</dd>
4738 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
4741 <dd>(optional) The scope (this object) for the handler</dd>
4759 <td class="msource">
4761 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
4767 <tr class="method-row config-row-alt0 expandable">
4768 <td class="micon"><a class="exi" href="#expand"> </a></td>
4772 <a id="Roo.dd.DragDrop-method-unlock" name=".unlock"></a>
4773 <div class="fixedFont">
4774 <span class="attributes"></span><b class="itemname">unlock</b>
4783 <div class="short">Unlock this instace</div>
4810 <td class="msource">
4812 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
4818 <tr class="method-row config-row-alt1 expandable">
4819 <td class="micon"><a class="exi" href="#expand"> </a></td>
4823 <a id="Roo.dd.DragDrop-method-unreg" name=".unreg"></a>
4824 <div class="fixedFont">
4825 <span class="attributes"></span><b class="itemname">unreg</b>
4834 <div class="short">Remove all drag and drop hooks for this element</div>
4840 Remove all drag and drop hooks for this element
4861 <td class="msource">
4863 <a href="./Roo.dd.DragDrop.html#constructor" roo:cls="Roo.dd.DragDrop.html#constructor">Roo.dd.DragDrop</a>
4872 <!-- ============================== events summary / details ======================== -->
4875 <a id="Roo.dd.DragSource-events"></a>
4881 <table cellspacing="0" class="member-table">
4882 <caption class="Empty">Events - Has None</caption>
4893 <!-- ============================== footer ================================= -->
4894 <div class="fineprint" style="clear:both">
4896 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Fri Nov 17 2017 18:23:46 GMT+0800 (HKT)
4898 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>