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.DragDropMgr</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.DragDropMgr-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.dd.DragDropMgr-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.dd.DragDropMgr-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.dd.DragDropMgr-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 <!-- ============================== class title / details ============================ -->
48 <h1 class="classTitle">
50 Class Roo.dd.DragDropMgr
53 <table cellspacing="0" class="class-summary-table">
55 <tr><td class="label">Package:</td><td class="hd-info">Roo.dd</td></tr>
57 <tr><td class="label">Defined In:</td><td class="hd-info">
59 <a href="./src/Roo_dd_DragDropMgr.js.html">Roo/dd/DragDropMgr.js</a>.
62 <tr><td class="label">Class:</td><td class="hd-info">DragDropMgr</td></tr>
70 <!-- ============================== class summary ========================== -->
71 <div class="description">
72 DragDropMgr is a singleton that tracks the element interaction for<br/>all DragDrop items in the window. Generally, you will not call<br/>this class directly, but it does have helper methods that could<br/>be useful in your DragDrop implementations.
76 <!-- ============================== Class comment block... ========================== -->
78 <div class="comments">
79 <b>Class Comments / Notes</B> =>
80 <u onclick="parent.CommentDialog.showCommentId = 'Roo.dd.DragDropMgr';">[Add Your comment/notes about this class]</u>
82 <iframe frameborder="0" id="comments-Roo.dd" style="border: none;width:100%;"
83 src="/blog.php/GtkDjsComments/Roo.dd.DragDropMgr.html"></iframe>
88 <!-- ============================== config options ========================== -->
93 <div class="hr"></div>
94 <a id="Roo.dd.DragDropMgr-configs"></a>
98 <table cellspacing="0" class="member-table">
99 <caption class="Empty">Config Options - Has None</caption>
113 <!-- ============================== public properties ==================== -->
117 <a id="Roo.dd.DragDropMgr-props"></a>
123 <table cellspacing="0" class="member-table">
124 <caption class="Empty">Public Properties - Has None</caption>
130 <!-- ============================== methods summary / details ======================== -->
133 <a id="Roo.dd.DragDropMgr-methods"></a>
134 <!-- constructor?? -->
141 <!-- then dynamics first -->
148 <table cellspacing="0" class="member-table">
149 <caption>Public Methods</caption>
151 <th class="sig-header" colspan="2">Method</th>
152 <th class="msource-header">Defined By</th>
162 <tr class="method-row config-row-alt0 expandable notInherited">
163 <td class="micon"><a class="exi" href="#expand"> </a></td>
167 <a id="Roo.dd.DragDropMgr-method-getBestMatch" name=".getBestMatch"></a>
168 <div class="fixedFont">
169 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">getBestMatch</b>
171 (DragDrop[] <B><i>dds</i></B>)
186 <div class="short">Helper function for getting the best match from the list of drag<br/>and drop objects returned by the drag and drop events when we are<br/>in INTERSECT mode.</div>
192 Helper function for getting the best match from the list of drag<br/>and drop objects returned by the drag and drop events when we are<br/>in INTERSECT mode. It returns either the first object that the<br/>cursor is over, or the object that has the greatest overlap with<br/>the dragged element.
199 <dl class="detailList">
200 <dt class="heading">Parameters:</dt>
203 <span class="fixedFont">DragDrop[]</span> <b>dds</b>
206 <dd>The array of drag and drop objects<br/>targeted</dd>
214 <dl class="detailList">
215 <dt class="heading">Returns:</dt>
217 <dd><span class="fixedFont">DragDrop</span> The best single match</dd>
239 <tr class="method-row config-row-alt1 expandable notInherited">
240 <td class="micon"><a class="exi" href="#expand"> </a></td>
244 <a id="Roo.dd.DragDropMgr-method-getCss" name=".getCss"></a>
245 <div class="fixedFont">
246 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">getCss</b>
248 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>)
254 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
263 <div class="short">Returns the style property for the DOM element (i.e.</div>
269 Returns the style property for the DOM element (i.e.,<br/>document.getElById(id).style)
276 <dl class="detailList">
277 <dt class="heading">Parameters:</dt>
280 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>id</b>
283 <dd>the id of the elment to get</dd>
288 <dl class="detailList">
289 <dt class="heading">Deprecated:</dt>
291 use Roo.getDom instead
298 <dl class="detailList">
299 <dt class="heading">Returns:</dt>
301 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> The style property of the element</dd>
323 <tr class="method-row config-row-alt0 expandable notInherited">
324 <td class="micon"><a class="exi" href="#expand"> </a></td>
328 <a id="Roo.dd.DragDropMgr-method-getDDById" name=".getDDById"></a>
329 <div class="fixedFont">
330 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">getDDById</b>
332 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>)
347 <div class="short">Returns the DragDrop instance for a given id</div>
353 Returns the DragDrop instance for a given id
360 <dl class="detailList">
361 <dt class="heading">Parameters:</dt>
364 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>id</b>
367 <dd>the id of the DragDrop object</dd>
375 <dl class="detailList">
376 <dt class="heading">Returns:</dt>
378 <dd><span class="fixedFont">DragDrop</span> the drag drop object, null if it is not found</dd>
400 <tr class="method-row config-row-alt1 expandable notInherited">
401 <td class="micon"><a class="exi" href="#expand"> </a></td>
405 <a id="Roo.dd.DragDropMgr-method-getElement" name=".getElement"></a>
406 <div class="fixedFont">
407 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">getElement</b>
409 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>)
415 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
424 <div class="short">Returns the actual DOM element</div>
430 Returns the actual DOM element
437 <dl class="detailList">
438 <dt class="heading">Parameters:</dt>
441 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>id</b>
444 <dd>the id of the elment to get</dd>
449 <dl class="detailList">
450 <dt class="heading">Deprecated:</dt>
452 use Roo.getDom instead
459 <dl class="detailList">
460 <dt class="heading">Returns:</dt>
462 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> The element</dd>
484 <tr class="method-row config-row-alt0 expandable notInherited">
485 <td class="micon"><a class="exi" href="#expand"> </a></td>
489 <a id="Roo.dd.DragDropMgr-method-getLocation" name=".getLocation"></a>
490 <div class="fixedFont">
491 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">getLocation</b>
493 (DragDrop <B><i>oDD</i></B>)
508 <div class="short">Returns a Region object containing the drag and drop element's position<br/>and size, including the padding configured for it</div>
514 Returns a Region object containing the drag and drop element's position<br/>and size, including the padding configured for it
521 <dl class="detailList">
522 <dt class="heading">Parameters:</dt>
525 <span class="fixedFont">DragDrop</span> <b>oDD</b>
528 <dd>the drag and drop object to get the<br/> location for</dd>
536 <dl class="detailList">
537 <dt class="heading">Returns:</dt>
539 <dd><span class="fixedFont">Roo.lib.Region</span> a Region object representing the total area<br/> the element occupies, including any padding<br/> the instance is configured for.</dd>
561 <tr class="method-row config-row-alt1 expandable notInherited">
562 <td class="micon"><a class="exi" href="#expand"> </a></td>
566 <a id="Roo.dd.DragDropMgr-method-getPosX" name=".getPosX"></a>
567 <div class="fixedFont">
568 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">getPosX</b>
585 <div class="short">Returns the X position of an html element</div>
591 Returns the X position of an html element
598 <dl class="detailList">
599 <dt class="heading">Parameters:</dt>
605 <dd>the element for which to get the position</dd>
610 <dl class="detailList">
611 <dt class="heading">Deprecated:</dt>
613 use Roo.lib.Dom.getX instead
620 <dl class="detailList">
621 <dt class="heading">Returns:</dt>
623 <dd><span class="fixedFont">int</span> the X coordinate</dd>
645 <tr class="method-row config-row-alt0 expandable notInherited">
646 <td class="micon"><a class="exi" href="#expand"> </a></td>
650 <a id="Roo.dd.DragDropMgr-method-getPosY" name=".getPosY"></a>
651 <div class="fixedFont">
652 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">getPosY</b>
669 <div class="short">Returns the Y position of an html element</div>
675 Returns the Y position of an html element
682 <dl class="detailList">
683 <dt class="heading">Parameters:</dt>
689 <dd>the element for which to get the position</dd>
694 <dl class="detailList">
695 <dt class="heading">Deprecated:</dt>
697 use Roo.lib.Dom.getY instead
704 <dl class="detailList">
705 <dt class="heading">Returns:</dt>
707 <dd><span class="fixedFont">int</span> the Y coordinate</dd>
729 <tr class="method-row config-row-alt1 expandable notInherited">
730 <td class="micon"><a class="exi" href="#expand"> </a></td>
734 <a id="Roo.dd.DragDropMgr-method-getRelated" name=".getRelated"></a>
735 <div class="fixedFont">
736 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">getRelated</b>
738 (DragDrop <B><i>p_oDD</i></B>, boolean <B><i>bTargetsOnly</i></B>)
753 <div class="short">Returns the drag and drop instances that are in all groups the<br/>passed in instance belongs to.</div>
759 Returns the drag and drop instances that are in all groups the<br/>passed in instance belongs to.
766 <dl class="detailList">
767 <dt class="heading">Parameters:</dt>
770 <span class="fixedFont">DragDrop</span> <b>p_oDD</b>
773 <dd>the obj to get related data for</dd>
776 <span class="fixedFont">boolean</span> <b>bTargetsOnly</b>
779 <dd>if true, only return targetable objs</dd>
787 <dl class="detailList">
788 <dt class="heading">Returns:</dt>
790 <dd><span class="fixedFont">DragDrop[]</span> the related instances</dd>
812 <tr class="method-row config-row-alt0 expandable notInherited">
813 <td class="micon"><a class="exi" href="#expand"> </a></td>
817 <a id="Roo.dd.DragDropMgr-method-getScrollLeft" name=".getScrollLeft"></a>
818 <div class="fixedFont">
819 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">getScrollLeft</b>
836 <div class="short">Gets the scrollLeft</div>
853 <dl class="detailList">
854 <dt class="heading">Returns:</dt>
856 <dd><span class="fixedFont">int</span> the document's scrollTop</dd>
878 <tr class="method-row config-row-alt1 expandable notInherited">
879 <td class="micon"><a class="exi" href="#expand"> </a></td>
883 <a id="Roo.dd.DragDropMgr-method-getScrollTop" name=".getScrollTop"></a>
884 <div class="fixedFont">
885 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">getScrollTop</b>
902 <div class="short">Gets the scrollTop</div>
919 <dl class="detailList">
920 <dt class="heading">Returns:</dt>
922 <dd><span class="fixedFont">int</span> the document's scrollTop</dd>
944 <tr class="method-row config-row-alt0 expandable notInherited">
945 <td class="micon"><a class="exi" href="#expand"> </a></td>
949 <a id="Roo.dd.DragDropMgr-method-getStyle" name=".getStyle"></a>
950 <div class="fixedFont">
951 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">getStyle</b>
953 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>el</i></B>, string <B><i>styleProp</i></B>)
968 <div class="short">Returns the specified element style property</div>
974 Returns the specified element style property
981 <dl class="detailList">
982 <dt class="heading">Parameters:</dt>
985 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>el</b>
991 <span class="fixedFont">string</span> <b>styleProp</b>
994 <dd>the style property</dd>
999 <dl class="detailList">
1000 <dt class="heading">Deprecated:</dt>
1002 use Roo.lib.Dom.getStyle
1009 <dl class="detailList">
1010 <dt class="heading">Returns:</dt>
1012 <dd><span class="fixedFont">string</span> The value of the style property</dd>
1026 <td class="msource">
1034 <tr class="method-row config-row-alt1 expandable notInherited">
1035 <td class="micon"><a class="exi" href="#expand"> </a></td>
1039 <a id="Roo.dd.DragDropMgr-method-handleWasClicked" name=".handleWasClicked"></a>
1040 <div class="fixedFont">
1041 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">handleWasClicked</b>
1043 (<B><i>node</i></B>)
1050 <div class="short">Recursively searches the immediate parent and all child nodes for<br/>the handle element in order to determine wheter or not it was<br/>clicked.</div>
1056 Recursively searches the immediate parent and all child nodes for<br/>the handle element in order to determine wheter or not it was<br/>clicked.
1063 <dl class="detailList">
1064 <dt class="heading">Parameters:</dt>
1070 <dd>the html element to inspect</dd>
1088 <td class="msource">
1096 <tr class="method-row config-row-alt0 expandable notInherited">
1097 <td class="micon"><a class="exi" href="#expand"> </a></td>
1101 <a id="Roo.dd.DragDropMgr-method-isDragDrop" name=".isDragDrop"></a>
1102 <div class="fixedFont">
1103 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">isDragDrop</b>
1105 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>)
1120 <div class="short">Utility function to determine if a given element has been<br/>registered as a drag drop item.</div>
1126 Utility function to determine if a given element has been<br/>registered as a drag drop item.
1133 <dl class="detailList">
1134 <dt class="heading">Parameters:</dt>
1137 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>id</b>
1140 <dd>the element id to check</dd>
1148 <dl class="detailList">
1149 <dt class="heading">Returns:</dt>
1151 <dd><span class="fixedFont">boolean</span> true if this element is a DragDrop item,<br/>false otherwise</dd>
1165 <td class="msource">
1173 <tr class="method-row config-row-alt1 expandable notInherited">
1174 <td class="micon"><a class="exi" href="#expand"> </a></td>
1178 <a id="Roo.dd.DragDropMgr-method-isHandle" name=".isHandle"></a>
1179 <div class="fixedFont">
1180 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">isHandle</b>
1182 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>)
1197 <div class="short">Utility function to determine if a given element has been<br/>registered as a drag drop handle for the given Drag Drop object.</div>
1203 Utility function to determine if a given element has been<br/>registered as a drag drop handle for the given Drag Drop object.
1210 <dl class="detailList">
1211 <dt class="heading">Parameters:</dt>
1214 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>id</b>
1217 <dd>the element id to check</dd>
1225 <dl class="detailList">
1226 <dt class="heading">Returns:</dt>
1228 <dd><span class="fixedFont">boolean</span> true if this element is a DragDrop handle, false<br/>otherwise</dd>
1242 <td class="msource">
1250 <tr class="method-row config-row-alt0 expandable notInherited">
1251 <td class="micon"><a class="exi" href="#expand"> </a></td>
1255 <a id="Roo.dd.DragDropMgr-method-isLegalTarget" name=".isLegalTarget"></a>
1256 <div class="fixedFont">
1257 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">isLegalTarget</b>
1259 (DragDrop <B><i>the</i></B>, DragDrop <B><i>the</i></B>)
1274 <div class="short">Returns true if the specified dd target is a legal target for<br/>the specifice drag obj</div>
1280 Returns true if the specified dd target is a legal target for<br/>the specifice drag obj
1287 <dl class="detailList">
1288 <dt class="heading">Parameters:</dt>
1291 <span class="fixedFont">DragDrop</span> <b>the</b>
1297 <span class="fixedFont">DragDrop</span> <b>the</b>
1308 <dl class="detailList">
1309 <dt class="heading">Returns:</dt>
1311 <dd><span class="fixedFont">boolean</span> true if the target is a legal target for the<br/>dd obj</dd>
1325 <td class="msource">
1333 <tr class="method-row config-row-alt1 expandable notInherited">
1334 <td class="micon"><a class="exi" href="#expand"> </a></td>
1338 <a id="Roo.dd.DragDropMgr-method-isLocked" name=".isLocked"></a>
1339 <div class="fixedFont">
1340 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">isLocked</b>
1357 <div class="short">Is drag and drop locked?</div>
1363 Is drag and drop locked?
1374 <dl class="detailList">
1375 <dt class="heading">Returns:</dt>
1377 <dd><span class="fixedFont">boolean</span> True if drag and drop is locked, false otherwise.</dd>
1391 <td class="msource">
1399 <tr class="method-row config-row-alt0 expandable notInherited">
1400 <td class="micon"><a class="exi" href="#expand"> </a></td>
1404 <a id="Roo.dd.DragDropMgr-method-isTypeOfDD" name=".isTypeOfDD"></a>
1405 <div class="fixedFont">
1406 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">isTypeOfDD</b>
1408 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>the</i></B>)
1423 <div class="short">My goal is to be able to transparently determine if an object is<br/>typeof DragDrop, and the exact subclass of DragDrop.</div>
1429 My goal is to be able to transparently determine if an object is<br/>typeof DragDrop, and the exact subclass of DragDrop. typeof<br/>returns "object", oDD.constructor.toString() always returns<br/>"DragDrop" and not the name of the subclass. So for now it just<br/>evaluates a well-known variable in DragDrop.
1436 <dl class="detailList">
1437 <dt class="heading">Parameters:</dt>
1440 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>the</b>
1443 <dd>object to evaluate</dd>
1451 <dl class="detailList">
1452 <dt class="heading">Returns:</dt>
1454 <dd><span class="fixedFont">boolean</span> true if typeof oDD = DragDrop</dd>
1468 <td class="msource">
1476 <tr class="method-row config-row-alt1 expandable notInherited">
1477 <td class="micon"><a class="exi" href="#expand"> </a></td>
1481 <a id="Roo.dd.DragDropMgr-method-lock" name=".lock"></a>
1482 <div class="fixedFont">
1483 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">lock</b>
1492 <div class="short">Lock all drag and drop functionality</div>
1498 Lock all drag and drop functionality
1519 <td class="msource">
1527 <tr class="method-row config-row-alt0 expandable notInherited">
1528 <td class="micon"><a class="exi" href="#expand"> </a></td>
1532 <a id="Roo.dd.DragDropMgr-method-moveToEl" name=".moveToEl"></a>
1533 <div class="fixedFont">
1534 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">moveToEl</b>
1536 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>moveEl</i></B>, <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>targetEl</i></B>)
1543 <div class="short">Sets the x/y position of an element to the location of the<br/>target element.</div>
1549 Sets the x/y position of an element to the location of the<br/>target element.
1556 <dl class="detailList">
1557 <dt class="heading">Parameters:</dt>
1560 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>moveEl</b>
1563 <dd>The element to move</dd>
1566 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>targetEl</b>
1569 <dd>The position reference element</dd>
1587 <td class="msource">
1595 <tr class="method-row config-row-alt1 expandable notInherited">
1596 <td class="micon"><a class="exi" href="#expand"> </a></td>
1600 <a id="Roo.dd.DragDropMgr-method-numericSort" name=".numericSort"></a>
1601 <div class="fixedFont">
1602 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">numericSort</b>
1611 <div class="short">Numeric array sort function</div>
1617 Numeric array sort function
1638 <td class="msource">
1646 <tr class="method-row config-row-alt0 expandable notInherited">
1647 <td class="micon"><a class="exi" href="#expand"> </a></td>
1651 <a id="Roo.dd.DragDropMgr-method-refreshCache" name=".refreshCache"></a>
1652 <div class="fixedFont">
1653 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">refreshCache</b>
1655 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>groups</i></B>)
1662 <div class="short">Refreshes the cache of the top-left and bottom-right points of the<br/>drag and drop objects in the specified group(s).</div>
1668 Refreshes the cache of the top-left and bottom-right points of the<br/>drag and drop objects in the specified group(s). This is in the<br/>format that is stored in the drag and drop instance, so typical<br/>usage is:<br/><code><br/>Roo.dd.DragDropMgr.refreshCache(ddinstance.groups);<br/></code><br/>Alternatively:<br/><code><br/>Roo.dd.DragDropMgr.refreshCache({group1:true, group2:true});<br/></code>
1675 <dl class="detailList">
1676 <dt class="heading">Parameters:</dt>
1679 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>groups</b>
1682 <dd>an associative array of groups to refresh</dd>
1700 <td class="msource">
1708 <tr class="method-row config-row-alt1 expandable notInherited">
1709 <td class="micon"><a class="exi" href="#expand"> </a></td>
1713 <a id="Roo.dd.DragDropMgr-method-regDragDrop" name=".regDragDrop"></a>
1714 <div class="fixedFont">
1715 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">regDragDrop</b>
1717 (DragDrop <B><i>oDD</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>sGroup</i></B>)
1724 <div class="short">Each DragDrop instance must be registered with the DragDropMgr.</div>
1730 Each DragDrop instance must be registered with the DragDropMgr.<br/>This is executed in DragDrop.init()
1737 <dl class="detailList">
1738 <dt class="heading">Parameters:</dt>
1741 <span class="fixedFont">DragDrop</span> <b>oDD</b>
1744 <dd>the DragDrop object to register</dd>
1747 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>sGroup</b>
1750 <dd>the name of the group this element belongs to</dd>
1768 <td class="msource">
1776 <tr class="method-row config-row-alt0 expandable notInherited">
1777 <td class="micon"><a class="exi" href="#expand"> </a></td>
1781 <a id="Roo.dd.DragDropMgr-method-regHandle" name=".regHandle"></a>
1782 <div class="fixedFont">
1783 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">regHandle</b>
1785 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>sDDId</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>sHandleId</i></B>)
1792 <div class="short">Each DragDrop handle element must be registered.</div>
1798 Each DragDrop handle element must be registered. This is done<br/>automatically when executing DragDrop.setHandleElId()
1805 <dl class="detailList">
1806 <dt class="heading">Parameters:</dt>
1809 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>sDDId</b>
1812 <dd>the DragDrop id this element is a handle for</dd>
1815 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>sHandleId</b>
1818 <dd>the id of the element that is the drag<br/>handle</dd>
1836 <td class="msource">
1844 <tr class="method-row config-row-alt1 expandable notInherited">
1845 <td class="micon"><a class="exi" href="#expand"> </a></td>
1849 <a id="Roo.dd.DragDropMgr-method-startDrag" name=".startDrag"></a>
1850 <div class="fixedFont">
1851 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">startDrag</b>
1853 (<B><i>x</i></B>, <B><i>y</i></B>)
1860 <div class="short">Fired when either the drag pixel threshol or the mousedown hold<br/>time threshold has been met.</div>
1866 Fired when either the drag pixel threshol or the mousedown hold<br/>time threshold has been met.
1873 <dl class="detailList">
1874 <dt class="heading">Parameters:</dt>
1880 <dd>{int} the X position of the original mousedown</dd>
1886 <dd>{int} the Y position of the original mousedown</dd>
1904 <td class="msource">
1912 <tr class="method-row config-row-alt0 expandable notInherited">
1913 <td class="micon"><a class="exi" href="#expand"> </a></td>
1917 <a id="Roo.dd.DragDropMgr-method-stopEvent" name=".stopEvent"></a>
1918 <div class="fixedFont">
1919 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">stopEvent</b>
1921 (Event <B><i>e</i></B>)
1928 <div class="short">Utility to stop event propagation and event default, if these<br/>features are turned on.</div>
1934 Utility to stop event propagation and event default, if these<br/>features are turned on.
1941 <dl class="detailList">
1942 <dt class="heading">Parameters:</dt>
1945 <span class="fixedFont">Event</span> <b>e</b>
1948 <dd>the event as returned by this.getEvent()</dd>
1966 <td class="msource">
1974 <tr class="method-row config-row-alt1 expandable notInherited">
1975 <td class="micon"><a class="exi" href="#expand"> </a></td>
1979 <a id="Roo.dd.DragDropMgr-method-swapNode" name=".swapNode"></a>
1980 <div class="fixedFont">
1981 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">swapNode</b>
1983 (<B><i>n1</i></B>, <B><i>n2</i></B>)
1990 <div class="short">Swap two nodes.</div>
1996 Swap two nodes. In IE, we use the native method, for others we<br/>emulate the IE behavior
2003 <dl class="detailList">
2004 <dt class="heading">Parameters:</dt>
2010 <dd>the first node to swap</dd>
2016 <dd>the other node to swap</dd>
2034 <td class="msource">
2042 <tr class="method-row config-row-alt0 expandable notInherited">
2043 <td class="micon"><a class="exi" href="#expand"> </a></td>
2047 <a id="Roo.dd.DragDropMgr-method-unlock" name=".unlock"></a>
2048 <div class="fixedFont">
2049 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">unlock</b>
2058 <div class="short">Unlock all drag and drop functionality</div>
2064 Unlock all drag and drop functionality
2085 <td class="msource">
2093 <tr class="method-row config-row-alt1 expandable notInherited">
2094 <td class="micon"><a class="exi" href="#expand"> </a></td>
2098 <a id="Roo.dd.DragDropMgr-method-verifyEl" name=".verifyEl"></a>
2099 <div class="fixedFont">
2100 <span class="attributes">Roo.dd.DragDropMgr.</span><b class="itemname">verifyEl</b>
2102 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>el</i></B>)
2117 <div class="short">This checks to make sure an element exists and is in the DOM.</div>
2123 This checks to make sure an element exists and is in the DOM. The<br/>main purpose is to handle cases where innerHTML is used to remove<br/>drag and drop objects from the DOM. IE provides an 'unspecified<br/>error' when trying to access the offsetParent of such an element
2130 <dl class="detailList">
2131 <dt class="heading">Parameters:</dt>
2134 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>el</b>
2137 <dd>the element to check</dd>
2145 <dl class="detailList">
2146 <dt class="heading">Returns:</dt>
2148 <dd><span class="fixedFont">boolean</span> true if the element looks usable</dd>
2162 <td class="msource">
2173 <!-- ============================== events summary / details ======================== -->
2176 <a id="Roo.dd.DragDropMgr-events"></a>
2182 <table cellspacing="0" class="member-table">
2183 <caption class="Empty">Events - Has None</caption>
2194 <!-- ============================== footer ================================= -->
2195 <div class="fineprint" style="clear:both">
2197 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Tue Nov 03 2015 12:41:06 GMT+0800 (HKT)
2199 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>