⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ext.dd.dragdropmgr.html

📁 Ext中文API,学习ext的同志只要你学会ext里的一种控件后其实其他的就大同小异了
💻 HTML
📖 第 1 页 / 共 3 页
字号:
        <div class="body-wrap">        <div class="top-tools">            <a class="inner-link" href="#Ext.dd.DragDropMgr-props"><img src="ext-2.0/resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>            <a class="inner-link" href="#Ext.dd.DragDropMgr-methods"><img src="ext-2.0/resources/images/default/s.gif" class="item-icon icon-method">Methods</a>            <a class="inner-link" href="#Ext.dd.DragDropMgr-events"><img src="ext-2.0/resources/images/default/s.gif" class="item-icon icon-event">Events</a>                        <a class="bookmark" href="../docs/?class=Ext.dd.DragDropMgr"><img src="ext-2.0/resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>        </div>                <h1>Class Ext.dd.DragDropMgr</h1>        <table cellspacing="0">            <tr><td class="label">Package:</td><td class="hd-info">Ext.dd</td></tr>            <tr><td class="label">Defined In:</td><td class="hd-info">DDCore.js</td></tr>            <tr><td class="label">Class:</td><td class="hd-info">DragDropMgr</td></tr>                                    <tr><td class="label">Extends:</td><td class="hd-info">Object</td></tr>                    </table>        <div class="description">            DragDropMgr is a singleton that tracks the element interaction forall DragDrop items in the window.  Generally, you will not callthis class directly, but it does have helper methods that couldbe useful in your DragDrop implementations.<br><br><i>This class is a singleton and cannot be created directly.</i>        </div>                <div class="hr"></div>                <a id="Ext.dd.DragDropMgr-props"></a>        <h2>Public Properties</h2>                <table cellspacing="0" class="member-table">            <tr>                <th class="sig-header" colspan="2">Property</th>                <th class="msource-header">Defined By</th>            </tr>                <tr class="property-row expandable">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDropMgr-INTERSECT"></a>            <b>INTERSECT</b> : int            <div class="mdesc">                        <div class="short">&lt;static&gt; In intersect mode, drag and drop interaction is defined by theoverlap of two or more drag and drop ob...</div>            <div class="long">                &lt;static&gt; In intersect mode, drag and drop interaction is defined by theoverlap of two or more drag and drop objects.            </div>                        </div>        </td>        <td class="msource">DragDropMgr</td>    </tr>        <tr class="property-row alt">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDropMgr-POINT"></a>            <b>POINT</b> : int            <div class="mdesc">                            &lt;static&gt; In point mode, drag and drop interaction is defined by thelocation of the cursor during the drag/drop                        </div>        </td>        <td class="msource">DragDropMgr</td>    </tr>        <tr class="property-row expandable">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDropMgr-clickPixelThresh"></a>            <b>clickPixelThresh</b> : int            <div class="mdesc">                        <div class="short">&lt;static&gt; The number of pixels that the mouse needs to move after themousedown before the drag is initiated.  D...</div>            <div class="long">                &lt;static&gt; The number of pixels that the mouse needs to move after themousedown before the drag is initiated.  Default=3;            </div>                        </div>        </td>        <td class="msource">DragDropMgr</td>    </tr>        <tr class="property-row alt expandable">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDropMgr-clickTimeThresh"></a>            <b>clickTimeThresh</b> : int            <div class="mdesc">                        <div class="short">&lt;static&gt; The number of milliseconds after the mousedown event to initiate thedrag if we don't get a mouseup ev...</div>            <div class="long">                &lt;static&gt; The number of milliseconds after the mousedown event to initiate thedrag if we don't get a mouseup event. Default=1000            </div>                        </div>        </td>        <td class="msource">DragDropMgr</td>    </tr>        <tr class="property-row">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDropMgr-css"></a>            <b>css</b> : Object            <div class="mdesc">                            A reference to the style property                        </div>        </td>        <td class="msource">DragDropMgr</td>    </tr>        <tr class="property-row alt">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDropMgr-el"></a>            <b>el</b> : Object            <div class="mdesc">                            The element                        </div>        </td>        <td class="msource">DragDropMgr</td>    </tr>        <tr class="property-row">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDropMgr-id"></a>            <b>id</b> : Object            <div class="mdesc">                            The element id                        </div>        </td>        <td class="msource">DragDropMgr</td>    </tr>        <tr class="property-row alt">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDropMgr-mode"></a>            <b>mode</b> : int            <div class="mdesc">                            &lt;static&gt; The current drag and drop mode.  Default: POINT                        </div>        </td>        <td class="msource">DragDropMgr</td>    </tr>        <tr class="property-row expandable">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDropMgr-preventDefault"></a>            <b>preventDefault</b> : boolean            <div class="mdesc">                        <div class="short">&lt;static&gt; Flag to determine if we should prevent the default behavior of theevents we define. By default this i...</div>            <div class="long">                &lt;static&gt; Flag to determine if we should prevent the default behavior of theevents we define. By default this is true, but this can be set tofalse if you need the default behavior (not recommended)            </div>                        </div>        </td>        <td class="msource">DragDropMgr</td>    </tr>        <tr class="property-row alt expandable">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDropMgr-stopPropagation"></a>            <b>stopPropagation</b> : boolean            <div class="mdesc">                        <div class="short">&lt;static&gt; Flag to determine if we should stop the propagation of the eventswe generate. This is true by default...</div>            <div class="long">                &lt;static&gt; Flag to determine if we should stop the propagation of the eventswe generate. This is true by default but you may want to set it tofalse if the html element contains other features that require themouse click.            </div>                        </div>        </td>        <td class="msource">DragDropMgr</td>    </tr>        <tr class="property-row expandable">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDropMgr-useCache"></a>            <b>useCache</b> : boolean            <div class="mdesc">                        <div class="short">&lt;static&gt; Set useCache to false if you want to force object the lookup of eachdrag and drop linked element cons...</div>            <div class="long">                &lt;static&gt; Set useCache to false if you want to force object the lookup of eachdrag and drop linked element constantly during a drag.            </div>                        </div>        </td>        <td class="msource">DragDropMgr</td>    </tr>            </table>                <a id="Ext.dd.DragDropMgr-methods"></a>        <h2>Public Methods</h2>                <table cellspacing="0" class="member-table">            <tr>                <th class="sig-header" colspan="2">Method</th>                <th class="msource-header">Defined By</th>            </tr>                <tr class="method-row expandable">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDropMgr-getBestMatch"></a>            <b>getBestMatch</b>(&nbsp;<code>DragDrop[] dds</code>&nbsp;) : DragDrop            <div class="mdesc">                        <div class="short">&lt;static&gt; Helper function for getting the best match from the list of dragand drop objects returned by the drag...</div>            <div class="long">                &lt;static&gt; Helper function for getting the best match from the list of dragand drop objects returned by the drag and drop events when we arein INTERSECT mode.  It returns either the first object that thecursor is over, or the object that has the greatest overlap withthe dragged element.    <div class="mdetail-params">        <strong>Parameters:</strong>        <ul><li><code>dds</code> : DragDrop[]<div class="sub-desc">The array of drag and drop objectstargeted</div></li>        </ul>        <strong>Returns:</strong>        <ul>            <li><code>DragDrop</code><div class="sub-desc">The best single match</div></li>        </ul>    </div>                </div>                        </div>        </td>        <td class="msource">DragDropMgr</td>    </tr>        <tr class="method-row alt expandable">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDropMgr-getCss"></a>            <b>getCss</b>(&nbsp;<code>String id</code>&nbsp;) : Object            <div class="mdesc">                        <div class="short"><b>Deprecated.</b> &lt;static&gt; Returns the style property for the DOM element (i.e.,document.getElById(id).style)</div>            <div class="long">                <b>Deprecated.</b> &lt;static&gt; Returns the style property for the DOM element (i.e.,document.getElById(id).style)    <div class="mdetail-params">        <strong>Parameters:</strong>        <ul><li><code>id</code> : String<div class="sub-desc">the id of the elment to get</div></li>        </ul>        <strong>Returns:</strong>        <ul>            <li><code>Object</code><div class="sub-desc">The style property of the element</div></li>        </ul>    </div>                </div>                        </div>        </td>        <td class="msource">DragDropMgr</td>    </tr>        <tr class="method-row expandable">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDropMgr-getDDById"></a>            <b>getDDById</b>(&nbsp;<code>String id</code>&nbsp;) : DragDrop            <div class="mdesc">                        <div class="short">&lt;static&gt; Returns the DragDrop instance for a given id</div>            <div class="long">                &lt;static&gt; Returns the DragDrop instance for a given id    <div class="mdetail-params">        <strong>Parameters:</strong>        <ul><li><code>id</code> : String<div class="sub-desc">the id of the DragDrop object</div></li>        </ul>        <strong>Returns:</strong>        <ul>            <li><code>DragDrop</code><div class="sub-desc">the drag drop object, null if it is not found</div></li>        </ul>    </div>                </div>                        </div>        </td>        <td class="msource">DragDropMgr</td>    </tr>        <tr class="method-row alt expandable">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDropMgr-getElement"></a>            <b>getElement</b>(&nbsp;<code>String id</code>&nbsp;) : Object            <div class="mdesc">                        <div class="short"><b>Deprecated.</b> &lt;static&gt; Returns the actual DOM element</div>            <div class="long">                <b>Deprecated.</b> &lt;static&gt; Returns the actual DOM element    <div class="mdetail-params">        <strong>Parameters:</strong>        <ul><li><code>id</code> : String<div class="sub-desc">the id of the elment to get</div></li>        </ul>        <strong>Returns:</strong>        <ul>            <li><code>Object</code><div class="sub-desc">The element</div></li>        </ul>    </div>                </div>                        </div>        </td>        <td class="msource">DragDropMgr</td>    </tr>        <tr class="method-row expandable">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDropMgr-getLocation"></a>            <b>getLocation</b>(&nbsp;<code>DragDrop oDD</code>&nbsp;) : Ext.lib.Region            <div class="mdesc">                        <div class="short">&lt;static&gt; Returns a Region object containing the drag and drop element's positionand size, including the paddin...</div>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -