1 <div class="body-wrap">
2 <div class="top-tools">
3 <a class="inner-link" href="#Ext.dd.DDTarget-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
4 <a class="inner-link" href="#Ext.dd.DDTarget-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
5 <a class="inner-link" href="#Ext.dd.DDTarget-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
6 <a class="bookmark" href="../docs/?class=Ext.dd.DDTarget"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
8 <div class="inheritance res-block">
9 <pre class="res-block-inner"><a ext:cls="Ext.dd.DragDrop" ext:member="" href="output/Ext.dd.DragDrop.html">DragDrop</a>
10 <img src="resources/elbow-end.gif"/>DDTarget</pre></div>
11 <h1>Class Ext.dd.DDTarget</h1>
12 <table cellspacing="0">
13 <tr><td class="label">Package:</td><td class="hd-info">Ext.dd</td></tr>
14 <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/DDCore.js" target="_blank">DDCore.js</a></td></tr>
15 <tr><td class="label">Class:</td><td class="hd-info">DDTarget</td></tr>
16 <tr><td class="label">Subclasses:</td><td class="hd-info"><a ext:cls="Ext.dd.DropTarget" href="output/Ext.dd.DropTarget.html">DropTarget</a></td></tr>
17 <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.dd.DragDrop" ext:member="" href="output/Ext.dd.DragDrop.html">DragDrop</a></td></tr>
19 <div class="description">
20 A DragDrop implementation that does not move, but can be a drop
21 target. You would get the same result by simply omitting implementation
22 for the event callbacks, but this way we reduce the processing cost of the
23 event listener and the callbacks. </div>
25 <div class="hr"></div>
26 <a id="Ext.dd.DDTarget-props"></a>
27 <h2>Public Properties</h2>
28 <table cellspacing="0" class="member-table">
30 <th class="sig-header" colspan="2">Property</th>
31 <th class="msource-header">Defined By</th>
33 <tr class="property-row inherited">
\r
34 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
36 <a id="Ext.dd.DDTarget-available"></a>
\r
37 <b>available</b> : boolean <div class="mdesc">
\r
38 The availabe property is false until the linked dom element is accessible. </div>
\r
40 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#available" href="output/Ext.dd.DragDrop.html#available">DragDrop</a></td>
\r
42 <tr class="property-row inherited alt">
\r
43 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
45 <a id="Ext.dd.DDTarget-config"></a>
\r
46 <b>config</b> : object <div class="mdesc">
\r
47 Configuration attributes passed into the constructor </div>
\r
49 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#config" href="output/Ext.dd.DragDrop.html#config">DragDrop</a></td>
\r
51 <tr class="property-row inherited">
\r
52 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
54 <a id="Ext.dd.DDTarget-defaultPadding"></a>
\r
55 <b>defaultPadding</b> : Object <div class="mdesc">
\r
56 Provides default constraint padding to "constrainTo" elements (defaults to {left: 0, right:0, top:0, bottom:0}). </div>
\r
58 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#defaultPadding" href="output/Ext.dd.DragDrop.html#defaultPadding">DragDrop</a></td>
\r
60 <tr class="property-row inherited alt expandable">
\r
61 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
63 <a id="Ext.dd.DDTarget-groups"></a>
\r
64 <b>groups</b> : object <div class="mdesc">
\r
65 <div class="short">The group defines a logical collection of DragDrop objects that are
66 related. Instances only get events when interact...</div>
\r
68 The group defines a logical collection of DragDrop objects that are
69 related. Instances only get events when interacting with other
70 DragDrop object in the same group. This lets us define multiple
71 groups using a single DragDrop subclass if we want. </div>
\r
74 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#groups" href="output/Ext.dd.DragDrop.html#groups">DragDrop</a></td>
\r
76 <tr class="property-row inherited expandable">
\r
77 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
79 <a id="Ext.dd.DDTarget-hasOuterHandles"></a>
\r
80 <b>hasOuterHandles</b> : boolean <div class="mdesc">
\r
81 <div class="short">By default, drags can only be initiated if the mousedown occurs in the
82 region the linked element is. This is done in...</div>
\r
84 By default, drags can only be initiated if the mousedown occurs in the
85 region the linked element is. This is done in part to work around a
86 bug in some browsers that mis-report the mousedown if the previous
87 mouseup happened outside of the window. This property is set to true
88 if outer handles are defined. </div>
\r
91 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#hasOuterHandles" href="output/Ext.dd.DragDrop.html#hasOuterHandles">DragDrop</a></td>
\r
93 <tr class="property-row inherited alt expandable">
\r
94 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
96 <a id="Ext.dd.DDTarget-id"></a>
\r
97 <b>id</b> : String <div class="mdesc">
\r
98 <div class="short">The id of the element associated with this object. This is what we
99 refer to as the "linked element" because the size...</div>
\r
101 The id of the element associated with this object. This is what we
102 refer to as the "linked element" because the size and position of
103 this element is used to determine when the drag and drop objects have
107 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#id" href="output/Ext.dd.DragDrop.html#id">DragDrop</a></td>
\r
109 <tr class="property-row inherited">
\r
110 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
112 <a id="Ext.dd.DDTarget-invalidHandleClasses"></a>
\r
113 <b>invalidHandleClasses</b> : Array <div class="mdesc">
\r
114 An Array of CSS class names for elements to be considered in valid as drag handles. </div>
\r
116 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#invalidHandleClasses" href="output/Ext.dd.DragDrop.html#invalidHandleClasses">DragDrop</a></td>
\r
118 <tr class="property-row inherited alt expandable">
\r
119 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
121 <a id="Ext.dd.DDTarget-invalidHandleIds"></a>
\r
122 <b>invalidHandleIds</b> : Object <div class="mdesc">
\r
123 <div class="short">An object who's property names identify the IDs of elements to be considered invalid as drag handles.
124 A non-null prop...</div>
\r
126 An object who's property names identify the IDs of elements to be considered invalid as drag handles.
127 A non-null property value identifies the ID as invalid. For example, to prevent
128 dragging from being initiated on element ID "foo", use:<pre><code>{
130 }</code></pre> </div>
\r
133 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#invalidHandleIds" href="output/Ext.dd.DragDrop.html#invalidHandleIds">DragDrop</a></td>
\r
135 <tr class="property-row inherited expandable">
\r
136 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
138 <a id="Ext.dd.DDTarget-invalidHandleTypes"></a>
\r
139 <b>invalidHandleTypes</b> : Object <div class="mdesc">
\r
140 <div class="short">An object who's property names identify HTML tags to be considered invalid as drag handles.
141 A non-null property value...</div>
\r
143 An object who's property names identify HTML tags to be considered invalid as drag handles.
144 A non-null property value identifies the tag as invalid. Defaults to the
145 following value which prevents drag operations from being initiated by <a> elements:<pre><code>{
147 }</code></pre> </div>
\r
150 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#invalidHandleTypes" href="output/Ext.dd.DragDrop.html#invalidHandleTypes">DragDrop</a></td>
\r
152 <tr class="property-row inherited alt">
\r
153 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
155 <a id="Ext.dd.DDTarget-isTarget"></a>
\r
156 <b>isTarget</b> : boolean <div class="mdesc">
\r
157 By default, all instances can be a drop target. This can be disabled by
158 setting isTarget to false. </div>
\r
160 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#isTarget" href="output/Ext.dd.DragDrop.html#isTarget">DragDrop</a></td>
\r
162 <tr class="property-row inherited expandable">
\r
163 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
165 <a id="Ext.dd.DDTarget-maintainOffset"></a>
\r
166 <b>maintainOffset</b> : boolean <div class="mdesc">
\r
167 <div class="short">Maintain offsets when we resetconstraints. Set to true when you want
168 the position of the element relative to its par...</div>
\r
170 Maintain offsets when we resetconstraints. Set to true when you want
171 the position of the element relative to its parent to stay the same
172 when the page changes </div>
\r
175 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#maintainOffset" href="output/Ext.dd.DragDrop.html#maintainOffset">DragDrop</a></td>
\r
177 <tr class="property-row inherited alt expandable">
\r
178 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
180 <a id="Ext.dd.DDTarget-moveOnly"></a>
\r
181 <b>moveOnly</b> : boolean <div class="mdesc">
\r
182 <div class="short">When set to true, other DD objects in cooperating DDGroups do not receive
183 notification events when this DD object is ...</div>
\r
185 When set to true, other DD objects in cooperating DDGroups do not receive
186 notification events when this DD object is dragged over them. Defaults to false. </div>
\r
189 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#moveOnly" href="output/Ext.dd.DragDrop.html#moveOnly">DragDrop</a></td>
\r
191 <tr class="property-row inherited">
\r
192 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
194 <a id="Ext.dd.DDTarget-padding"></a>
\r
195 <b>padding</b> : int[] <div class="mdesc">
\r
196 The padding configured for this drag and drop object for calculating
197 the drop zone intersection with this object. </div>
\r
199 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#padding" href="output/Ext.dd.DragDrop.html#padding">DragDrop</a></td>
\r
201 <tr class="property-row inherited alt expandable">
\r
202 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
204 <a id="Ext.dd.DDTarget-primaryButtonOnly"></a>
\r
205 <b>primaryButtonOnly</b> : boolean <div class="mdesc">
\r
206 <div class="short">By default the drag and drop instance will only respond to the primary
207 button click (left button for a right-handed m...</div>
\r
209 By default the drag and drop instance will only respond to the primary
210 button click (left button for a right-handed mouse). Set to true to
211 allow drag and drop to start with any mouse click that is propogated
212 by the browser </div>
\r
215 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#primaryButtonOnly" href="output/Ext.dd.DragDrop.html#primaryButtonOnly">DragDrop</a></td>
\r
217 <tr class="property-row inherited expandable">
\r
218 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
220 <a id="Ext.dd.DDTarget-xTicks"></a>
\r
221 <b>xTicks</b> : int[] <div class="mdesc">
\r
222 <div class="short">Array of pixel locations the element will snap to if we specified a
223 horizontal graduation/interval. This array is ge...</div>
\r
225 Array of pixel locations the element will snap to if we specified a
226 horizontal graduation/interval. This array is generated automatically
227 when you define a tick interval. </div>
\r
230 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#xTicks" href="output/Ext.dd.DragDrop.html#xTicks">DragDrop</a></td>
\r
232 <tr class="property-row inherited alt expandable">
\r
233 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
235 <a id="Ext.dd.DDTarget-yTicks"></a>
\r
236 <b>yTicks</b> : int[] <div class="mdesc">
\r
237 <div class="short">Array of pixel locations the element will snap to if we specified a
238 vertical graduation/interval. This array is gene...</div>
\r
240 Array of pixel locations the element will snap to if we specified a
241 vertical graduation/interval. This array is generated automatically
242 when you define a tick interval. </div>
\r
245 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#yTicks" href="output/Ext.dd.DragDrop.html#yTicks">DragDrop</a></td>
\r
248 <a id="Ext.dd.DDTarget-methods"></a>
249 <h2>Public Methods</h2>
250 <table cellspacing="0" class="member-table">
252 <th class="sig-header" colspan="2">Method</th>
253 <th class="msource-header">Defined By</th>
255 <tr class="method-row expandable">
\r
256 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
258 <a id="Ext.dd.DDTarget-DDTarget"></a>
\r
259 <b>DDTarget</b>( <code>String id</code>, <code>String sGroup</code>, <code>object config</code> ) <div class="mdesc">
\r
260 <div class="short"></div>
\r
262 <div class="mdetail-params">
\r
263 <strong>Parameters:</strong>
\r
264 <ul><li><code>id</code> : String<div class="sub-desc">the id of the element that is a drop target</div></li><li><code>sGroup</code> : String<div class="sub-desc">the group of related DragDrop objects</div></li><li><code>config</code> : object<div class="sub-desc">an object containing configurable attributes
265 Valid properties for DDTarget in addition to those in
267 none</div></li> </ul>
\r
268 <strong>Returns:</strong>
\r
270 <li><code></code></li>
\r
276 <td class="msource">DDTarget</td>
\r
278 <tr class="method-row inherited alt expandable">
\r
279 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
281 <a id="Ext.dd.DDTarget-addInvalidHandleClass"></a>
\r
282 <b>addInvalidHandleClass</b>( <code>string cssClass</code> ) : void <div class="mdesc">
\r
283 <div class="short">Lets you specify a css class of elements that will not initiate a drag</div>
\r
285 Lets you specify a css class of elements that will not initiate a drag <div class="mdetail-params">
\r
286 <strong>Parameters:</strong>
\r
287 <ul><li><code>cssClass</code> : string<div class="sub-desc">the class of the elements you wish to ignore</div></li> </ul>
\r
288 <strong>Returns:</strong>
\r
290 <li><code>void</code></li>
\r
296 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#addInvalidHandleClass" href="output/Ext.dd.DragDrop.html#addInvalidHandleClass">DragDrop</a></td>
\r
298 <tr class="method-row inherited expandable">
\r
299 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
301 <a id="Ext.dd.DDTarget-addInvalidHandleId"></a>
\r
302 <b>addInvalidHandleId</b>( <code>string id</code> ) : void <div class="mdesc">
\r
303 <div class="short">Lets you to specify an element id for a child of a drag handle
304 that should not initiate a drag</div>
\r
306 Lets you to specify an element id for a child of a drag handle
307 that should not initiate a drag <div class="mdetail-params">
\r
308 <strong>Parameters:</strong>
\r
309 <ul><li><code>id</code> : string<div class="sub-desc">the element id of the element you wish to ignore</div></li> </ul>
\r
310 <strong>Returns:</strong>
\r
312 <li><code>void</code></li>
\r
318 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#addInvalidHandleId" href="output/Ext.dd.DragDrop.html#addInvalidHandleId">DragDrop</a></td>
\r
320 <tr class="method-row inherited alt expandable">
\r
321 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
323 <a id="Ext.dd.DDTarget-addInvalidHandleType"></a>
\r
324 <b>addInvalidHandleType</b>( <code>string tagName</code> ) : void <div class="mdesc">
\r
325 <div class="short">Allows you to specify a tag name that should not start a drag operation
326 when clicked. This is designed to facilitate...</div>
\r
328 Allows you to specify a tag name that should not start a drag operation
329 when clicked. This is designed to facilitate embedding links within a
330 drag handle that do something other than start the drag. <div class="mdetail-params">
\r
331 <strong>Parameters:</strong>
\r
332 <ul><li><code>tagName</code> : string<div class="sub-desc">the type of element to exclude</div></li> </ul>
\r
333 <strong>Returns:</strong>
\r
335 <li><code>void</code></li>
\r
341 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#addInvalidHandleType" href="output/Ext.dd.DragDrop.html#addInvalidHandleType">DragDrop</a></td>
\r
343 <tr class="method-row inherited expandable">
\r
344 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
346 <a id="Ext.dd.DDTarget-addToGroup"></a>
\r
347 <b>addToGroup</b>( <code>sGroup {string}</code> ) : void <div class="mdesc">
\r
348 <div class="short">Add this instance to a group of related drag/drop objects. All
349 instances belong to at least one group, and can belon...</div>
\r
351 Add this instance to a group of related drag/drop objects. All
352 instances belong to at least one group, and can belong to as many
353 groups as needed. <div class="mdetail-params">
\r
354 <strong>Parameters:</strong>
\r
355 <ul><li><code>{string}</code> : sGroup<div class="sub-desc">the name of the group</div></li> </ul>
\r
356 <strong>Returns:</strong>
\r
358 <li><code>void</code></li>
\r
364 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#addToGroup" href="output/Ext.dd.DragDrop.html#addToGroup">DragDrop</a></td>
\r
366 <tr class="method-row inherited alt expandable">
\r
367 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
369 <a id="Ext.dd.DDTarget-applyConfig"></a>
\r
370 <b>applyConfig</b>() : void <div class="mdesc">
\r
371 <div class="short">Applies the configuration parameters that were passed into the constructor.
372 This is supposed to happen at each level ...</div>
\r
374 Applies the configuration parameters that were passed into the constructor.
375 This is supposed to happen at each level through the inheritance chain. So
376 a DDProxy implentation will execute apply config on DDProxy, DD, and
377 DragDrop in order to get all of the parameters that are available in
378 each object. <div class="mdetail-params">
\r
379 <strong>Parameters:</strong>
\r
380 <ul><li>None.</li> </ul>
\r
381 <strong>Returns:</strong>
\r
383 <li><code>void</code></li>
\r
389 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#applyConfig" href="output/Ext.dd.DragDrop.html#applyConfig">DragDrop</a></td>
\r
391 <tr class="method-row inherited expandable">
\r
392 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
394 <a id="Ext.dd.DDTarget-clearConstraints"></a>
\r
395 <b>clearConstraints</b>() : void <div class="mdesc">
\r
396 <div class="short">Clears any constraints applied to this instance. Also clears ticks
397 since they can't exist independent of a constrain...</div>
\r
399 Clears any constraints applied to this instance. Also clears ticks
400 since they can't exist independent of a constraint at this time. <div class="mdetail-params">
\r
401 <strong>Parameters:</strong>
\r
402 <ul><li>None.</li> </ul>
\r
403 <strong>Returns:</strong>
\r
405 <li><code>void</code></li>
\r
411 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#clearConstraints" href="output/Ext.dd.DragDrop.html#clearConstraints">DragDrop</a></td>
\r
413 <tr class="method-row inherited alt expandable">
\r
414 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
416 <a id="Ext.dd.DDTarget-clearTicks"></a>
\r
417 <b>clearTicks</b>() : void <div class="mdesc">
\r
418 <div class="short">Clears any tick interval defined for this instance</div>
\r
420 Clears any tick interval defined for this instance <div class="mdetail-params">
\r
421 <strong>Parameters:</strong>
\r
422 <ul><li>None.</li> </ul>
\r
423 <strong>Returns:</strong>
\r
425 <li><code>void</code></li>
\r
431 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#clearTicks" href="output/Ext.dd.DragDrop.html#clearTicks">DragDrop</a></td>
\r
433 <tr class="method-row inherited expandable">
\r
434 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
436 <a id="Ext.dd.DDTarget-constrainTo"></a>
\r
437 <b>constrainTo</b>( <code>Mixed constrainTo</code>, <span class="optional" title="Optional">[<code>Object/Number pad</code>]</span>, <span class="optional" title="Optional">[<code>Boolean inContent</code>]</span> ) : void <div class="mdesc">
\r
438 <div class="short">Initializes the drag drop object's constraints to restrict movement to a certain element.
440 var dd = new Ext.d...</div>
\r
442 Initializes the drag drop object's constraints to restrict movement to a certain element.
444 <pre><code>var dd = <b>new</b> Ext.dd.DDProxy(<em>"dragDiv1"</em>, <em>"proxytest"</em>,
445 { dragElId: <em>"existingProxyDiv"</em> });
446 dd.startDrag = <b>function</b>(){
447 <b>this</b>.constrainTo(<em>"parent-id"</em>);
449 Or you can initalize it using the <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a> object:
\r
450 <pre><code>Ext.get(<em>"dragDiv1"</em>).initDDProxy(<em>"proxytest"</em>, {dragElId: <em>"existingProxyDiv"</em>}, {
451 startDrag : <b>function</b>(){
452 <b>this</b>.constrainTo(<em>"parent-id"</em>);
454 });</code></pre> <div class="mdetail-params">
\r
455 <strong>Parameters:</strong>
\r
456 <ul><li><code>constrainTo</code> : Mixed<div class="sub-desc">The element to constrain to.</div></li><li><code>pad</code> : Object/Number<div class="sub-desc">(optional) Pad provides a way to specify "padding" of the constraints,
457 and can be either a number for symmetrical padding (4 would be equal to {left:4, right:4, top:4, bottom:4}) or
458 an object containing the sides to pad. For example: {right:10, bottom:10}</div></li><li><code>inContent</code> : Boolean<div class="sub-desc">(optional) Constrain the draggable in the content box of the element (inside padding and borders)</div></li> </ul>
\r
459 <strong>Returns:</strong>
\r
461 <li><code>void</code></li>
\r
467 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#constrainTo" href="output/Ext.dd.DragDrop.html#constrainTo">DragDrop</a></td>
\r
469 <tr class="method-row inherited alt expandable">
\r
470 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
472 <a id="Ext.dd.DDTarget-endDrag"></a>
\r
473 <b>endDrag</b>( <code>Event e</code> ) : void <div class="mdesc">
\r
474 <div class="short">Fired when we are done dragging the object</div>
\r
476 Fired when we are done dragging the object <div class="mdetail-params">
\r
477 <strong>Parameters:</strong>
\r
478 <ul><li><code>e</code> : Event<div class="sub-desc">the mouseup event</div></li> </ul>
\r
479 <strong>Returns:</strong>
\r
481 <li><code>void</code></li>
\r
487 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#endDrag" href="output/Ext.dd.DragDrop.html#endDrag">DragDrop</a></td>
\r
489 <tr class="method-row inherited expandable">
\r
490 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
492 <a id="Ext.dd.DDTarget-getDragEl"></a>
\r
493 <b>getDragEl</b>() : HTMLElement <div class="mdesc">
\r
494 <div class="short">Returns a reference to the actual element to drag. By default this is
495 the same as the html element, but it can be as...</div>
\r
497 Returns a reference to the actual element to drag. By default this is
498 the same as the html element, but it can be assigned to another
499 element. An example of this can be found in Ext.dd.DDProxy <div class="mdetail-params">
\r
500 <strong>Parameters:</strong>
\r
501 <ul><li>None.</li> </ul>
\r
502 <strong>Returns:</strong>
\r
504 <li><code>HTMLElement</code><div class="sub-desc">the html element</div></li>
\r
510 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#getDragEl" href="output/Ext.dd.DragDrop.html#getDragEl">DragDrop</a></td>
\r
512 <tr class="method-row inherited alt expandable">
\r
513 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
515 <a id="Ext.dd.DDTarget-getEl"></a>
\r
516 <b>getEl</b>() : HTMLElement <div class="mdesc">
\r
517 <div class="short">Returns a reference to the linked element</div>
\r
519 Returns a reference to the linked element <div class="mdetail-params">
\r
520 <strong>Parameters:</strong>
\r
521 <ul><li>None.</li> </ul>
\r
522 <strong>Returns:</strong>
\r
524 <li><code>HTMLElement</code><div class="sub-desc">the html element</div></li>
\r
530 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#getEl" href="output/Ext.dd.DragDrop.html#getEl">DragDrop</a></td>
\r
532 <tr class="method-row inherited expandable">
\r
533 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
535 <a id="Ext.dd.DDTarget-init"></a>
\r
536 <b>init</b>( <code>id the</code>, <code>String sGroup</code>, <code>object config</code> ) : void <div class="mdesc">
\r
537 <div class="short">Sets up the DragDrop object. Must be called in the constructor of any
538 Ext.dd.DragDrop subclass</div>
\r
540 Sets up the DragDrop object. Must be called in the constructor of any
541 Ext.dd.DragDrop subclass <div class="mdetail-params">
\r
542 <strong>Parameters:</strong>
\r
543 <ul><li><code>the</code> : id<div class="sub-desc">id of the linked element</div></li><li><code>sGroup</code> : String<div class="sub-desc">the group of related items</div></li><li><code>config</code> : object<div class="sub-desc">configuration attributes</div></li> </ul>
\r
544 <strong>Returns:</strong>
\r
546 <li><code>void</code></li>
\r
552 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#init" href="output/Ext.dd.DragDrop.html#init">DragDrop</a></td>
\r
554 <tr class="method-row inherited alt expandable">
\r
555 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
557 <a id="Ext.dd.DDTarget-initTarget"></a>
\r
558 <b>initTarget</b>( <code>id the</code>, <code>String sGroup</code>, <code>object config</code> ) : void <div class="mdesc">
\r
559 <div class="short">Initializes Targeting functionality only... the object does not
560 get a mousedown handler.</div>
\r
562 Initializes Targeting functionality only... the object does not
563 get a mousedown handler. <div class="mdetail-params">
\r
564 <strong>Parameters:</strong>
\r
565 <ul><li><code>the</code> : id<div class="sub-desc">id of the linked element</div></li><li><code>sGroup</code> : String<div class="sub-desc">the group of related items</div></li><li><code>config</code> : object<div class="sub-desc">configuration attributes</div></li> </ul>
\r
566 <strong>Returns:</strong>
\r
568 <li><code>void</code></li>
\r
574 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#initTarget" href="output/Ext.dd.DragDrop.html#initTarget">DragDrop</a></td>
\r
576 <tr class="method-row inherited expandable">
\r
577 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
579 <a id="Ext.dd.DDTarget-isLocked"></a>
\r
580 <b>isLocked</b>() : boolean <div class="mdesc">
\r
581 <div class="short">Returns true if this instance is locked, or the drag drop mgr is locked
582 (meaning that all drag/drop is disabled on th...</div>
\r
584 Returns true if this instance is locked, or the drag drop mgr is locked
585 (meaning that all drag/drop is disabled on the page.) <div class="mdetail-params">
\r
586 <strong>Parameters:</strong>
\r
587 <ul><li>None.</li> </ul>
\r
588 <strong>Returns:</strong>
\r
590 <li><code>boolean</code><div class="sub-desc">true if this obj or all drag/drop is locked, else false</div></li>
\r
596 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#isLocked" href="output/Ext.dd.DragDrop.html#isLocked">DragDrop</a></td>
\r
598 <tr class="method-row inherited alt expandable">
\r
599 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
601 <a id="Ext.dd.DDTarget-isValidHandleChild"></a>
\r
602 <b>isValidHandleChild</b>( <code>HTMLElement node</code> ) : boolean <div class="mdesc">
\r
603 <div class="short">Checks the tag exclusion list to see if this click should be ignored</div>
\r
605 Checks the tag exclusion list to see if this click should be ignored <div class="mdetail-params">
\r
606 <strong>Parameters:</strong>
\r
607 <ul><li><code>node</code> : HTMLElement<div class="sub-desc">the HTMLElement to evaluate</div></li> </ul>
\r
608 <strong>Returns:</strong>
\r
610 <li><code>boolean</code><div class="sub-desc">true if this is a valid tag type, false if not</div></li>
\r
616 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#isValidHandleChild" href="output/Ext.dd.DragDrop.html#isValidHandleChild">DragDrop</a></td>
\r
618 <tr class="method-row inherited expandable">
\r
619 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
621 <a id="Ext.dd.DDTarget-lock"></a>
\r
622 <b>lock</b>() : void <div class="mdesc">
\r
623 <div class="short">Lock this instance</div>
\r
625 Lock this instance <div class="mdetail-params">
\r
626 <strong>Parameters:</strong>
\r
627 <ul><li>None.</li> </ul>
\r
628 <strong>Returns:</strong>
\r
630 <li><code>void</code></li>
\r
636 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#lock" href="output/Ext.dd.DragDrop.html#lock">DragDrop</a></td>
\r
638 <tr class="method-row inherited alt expandable">
\r
639 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
641 <a id="Ext.dd.DDTarget-onAvailable"></a>
\r
642 <b>onAvailable</b>() : void <div class="mdesc">
\r
643 <div class="short">Override the onAvailable method to do what is needed after the initial
644 position was determined.</div>
\r
646 Override the onAvailable method to do what is needed after the initial
647 position was determined. <div class="mdetail-params">
\r
648 <strong>Parameters:</strong>
\r
649 <ul><li>None.</li> </ul>
\r
650 <strong>Returns:</strong>
\r
652 <li><code>void</code></li>
\r
658 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onAvailable" href="output/Ext.dd.DragDrop.html#onAvailable">DragDrop</a></td>
\r
660 <tr class="method-row inherited expandable">
\r
661 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
663 <a id="Ext.dd.DDTarget-onDrag"></a>
\r
664 <b>onDrag</b>( <code>Event e</code> ) : void <div class="mdesc">
\r
665 <div class="short">Abstract method called during the onMouseMove event while dragging an
668 Abstract method called during the onMouseMove event while dragging an
669 object. <div class="mdetail-params">
\r
670 <strong>Parameters:</strong>
\r
671 <ul><li><code>e</code> : Event<div class="sub-desc">the mousemove event</div></li> </ul>
\r
672 <strong>Returns:</strong>
\r
674 <li><code>void</code></li>
\r
680 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onDrag" href="output/Ext.dd.DragDrop.html#onDrag">DragDrop</a></td>
\r
682 <tr class="method-row inherited alt expandable">
\r
683 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
685 <a id="Ext.dd.DDTarget-onDragDrop"></a>
\r
686 <b>onDragDrop</b>( <code>Event e</code>, <code>String|DragDrop[] id</code> ) : void <div class="mdesc">
\r
687 <div class="short">Abstract method called when this item is dropped on another DragDrop
690 Abstract method called when this item is dropped on another DragDrop
691 obj <div class="mdetail-params">
\r
692 <strong>Parameters:</strong>
\r
693 <ul><li><code>e</code> : Event<div class="sub-desc">the mouseup event</div></li><li><code>id</code> : String|DragDrop[]<div class="sub-desc">In POINT mode, the element
694 id this was dropped on. In INTERSECT mode, an array of dd items this
695 was dropped on.</div></li> </ul>
\r
696 <strong>Returns:</strong>
\r
698 <li><code>void</code></li>
\r
704 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onDragDrop" href="output/Ext.dd.DragDrop.html#onDragDrop">DragDrop</a></td>
\r
706 <tr class="method-row inherited expandable">
\r
707 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
709 <a id="Ext.dd.DDTarget-onDragEnter"></a>
\r
710 <b>onDragEnter</b>( <code>Event e</code>, <code>String|DragDrop[] id</code> ) : void <div class="mdesc">
\r
711 <div class="short">Abstract method called when this element fist begins hovering over
712 another DragDrop obj</div>
\r
714 Abstract method called when this element fist begins hovering over
715 another DragDrop obj <div class="mdetail-params">
\r
716 <strong>Parameters:</strong>
\r
717 <ul><li><code>e</code> : Event<div class="sub-desc">the mousemove event</div></li><li><code>id</code> : String|DragDrop[]<div class="sub-desc">In POINT mode, the element
718 id this is hovering over. In INTERSECT mode, an array of one or more
719 dragdrop items being hovered over.</div></li> </ul>
\r
720 <strong>Returns:</strong>
\r
722 <li><code>void</code></li>
\r
728 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onDragEnter" href="output/Ext.dd.DragDrop.html#onDragEnter">DragDrop</a></td>
\r
730 <tr class="method-row inherited alt expandable">
\r
731 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
733 <a id="Ext.dd.DDTarget-onDragOut"></a>
\r
734 <b>onDragOut</b>( <code>Event e</code>, <code>String|DragDrop[] id</code> ) : void <div class="mdesc">
\r
735 <div class="short">Abstract method called when we are no longer hovering over an element</div>
\r
737 Abstract method called when we are no longer hovering over an element <div class="mdetail-params">
\r
738 <strong>Parameters:</strong>
\r
739 <ul><li><code>e</code> : Event<div class="sub-desc">the mousemove event</div></li><li><code>id</code> : String|DragDrop[]<div class="sub-desc">In POINT mode, the element
740 id this was hovering over. In INTERSECT mode, an array of dd items
741 that the mouse is no longer over.</div></li> </ul>
\r
742 <strong>Returns:</strong>
\r
744 <li><code>void</code></li>
\r
750 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onDragOut" href="output/Ext.dd.DragDrop.html#onDragOut">DragDrop</a></td>
\r
752 <tr class="method-row inherited expandable">
\r
753 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
755 <a id="Ext.dd.DDTarget-onDragOver"></a>
\r
756 <b>onDragOver</b>( <code>Event e</code>, <code>String|DragDrop[] id</code> ) : void <div class="mdesc">
\r
757 <div class="short">Abstract method called when this element is hovering over another
760 Abstract method called when this element is hovering over another
761 DragDrop obj <div class="mdetail-params">
\r
762 <strong>Parameters:</strong>
\r
763 <ul><li><code>e</code> : Event<div class="sub-desc">the mousemove event</div></li><li><code>id</code> : String|DragDrop[]<div class="sub-desc">In POINT mode, the element
764 id this is hovering over. In INTERSECT mode, an array of dd items
765 being hovered over.</div></li> </ul>
\r
766 <strong>Returns:</strong>
\r
768 <li><code>void</code></li>
\r
774 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onDragOver" href="output/Ext.dd.DragDrop.html#onDragOver">DragDrop</a></td>
\r
776 <tr class="method-row inherited alt expandable">
\r
777 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
779 <a id="Ext.dd.DDTarget-onInvalidDrop"></a>
\r
780 <b>onInvalidDrop</b>( <code>Event e</code> ) : void <div class="mdesc">
\r
781 <div class="short">Abstract method called when this item is dropped on an area with no
784 Abstract method called when this item is dropped on an area with no
785 drop target <div class="mdetail-params">
\r
786 <strong>Parameters:</strong>
\r
787 <ul><li><code>e</code> : Event<div class="sub-desc">the mouseup event</div></li> </ul>
\r
788 <strong>Returns:</strong>
\r
790 <li><code>void</code></li>
\r
796 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onInvalidDrop" href="output/Ext.dd.DragDrop.html#onInvalidDrop">DragDrop</a></td>
\r
798 <tr class="method-row inherited expandable">
\r
799 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
801 <a id="Ext.dd.DDTarget-onMouseDown"></a>
\r
802 <b>onMouseDown</b>( <code>Event e</code> ) : void <div class="mdesc">
\r
803 <div class="short">Event handler that fires when a drag/drop obj gets a mousedown</div>
\r
805 Event handler that fires when a drag/drop obj gets a mousedown <div class="mdetail-params">
\r
806 <strong>Parameters:</strong>
\r
807 <ul><li><code>e</code> : Event<div class="sub-desc">the mousedown event</div></li> </ul>
\r
808 <strong>Returns:</strong>
\r
810 <li><code>void</code></li>
\r
816 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onMouseDown" href="output/Ext.dd.DragDrop.html#onMouseDown">DragDrop</a></td>
\r
818 <tr class="method-row inherited alt expandable">
\r
819 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
821 <a id="Ext.dd.DDTarget-onMouseUp"></a>
\r
822 <b>onMouseUp</b>( <code>Event e</code> ) : void <div class="mdesc">
\r
823 <div class="short">Event handler that fires when a drag/drop obj gets a mouseup</div>
\r
825 Event handler that fires when a drag/drop obj gets a mouseup <div class="mdetail-params">
\r
826 <strong>Parameters:</strong>
\r
827 <ul><li><code>e</code> : Event<div class="sub-desc">the mouseup event</div></li> </ul>
\r
828 <strong>Returns:</strong>
\r
830 <li><code>void</code></li>
\r
836 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onMouseUp" href="output/Ext.dd.DragDrop.html#onMouseUp">DragDrop</a></td>
\r
838 <tr class="method-row inherited expandable">
\r
839 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
841 <a id="Ext.dd.DDTarget-removeFromGroup"></a>
\r
842 <b>removeFromGroup</b>( <code>string sGroup</code> ) : void <div class="mdesc">
\r
843 <div class="short">Remove's this instance from the supplied interaction group</div>
\r
845 Remove's this instance from the supplied interaction group <div class="mdetail-params">
\r
846 <strong>Parameters:</strong>
\r
847 <ul><li><code>sGroup</code> : string<div class="sub-desc">The group to drop</div></li> </ul>
\r
848 <strong>Returns:</strong>
\r
850 <li><code>void</code></li>
\r
856 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#removeFromGroup" href="output/Ext.dd.DragDrop.html#removeFromGroup">DragDrop</a></td>
\r
858 <tr class="method-row inherited alt expandable">
\r
859 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
861 <a id="Ext.dd.DDTarget-removeInvalidHandleClass"></a>
\r
862 <b>removeInvalidHandleClass</b>( <code>string cssClass</code> ) : void <div class="mdesc">
\r
863 <div class="short">Unsets an invalid css class</div>
\r
865 Unsets an invalid css class <div class="mdetail-params">
\r
866 <strong>Parameters:</strong>
\r
867 <ul><li><code>cssClass</code> : string<div class="sub-desc">the class of the element(s) you wish to
868 re-enable</div></li> </ul>
\r
869 <strong>Returns:</strong>
\r
871 <li><code>void</code></li>
\r
877 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#removeInvalidHandleClass" href="output/Ext.dd.DragDrop.html#removeInvalidHandleClass">DragDrop</a></td>
\r
879 <tr class="method-row inherited expandable">
\r
880 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
882 <a id="Ext.dd.DDTarget-removeInvalidHandleId"></a>
\r
883 <b>removeInvalidHandleId</b>( <code>string id</code> ) : void <div class="mdesc">
\r
884 <div class="short">Unsets an invalid handle id</div>
\r
886 Unsets an invalid handle id <div class="mdetail-params">
\r
887 <strong>Parameters:</strong>
\r
888 <ul><li><code>id</code> : string<div class="sub-desc">the id of the element to re-enable</div></li> </ul>
\r
889 <strong>Returns:</strong>
\r
891 <li><code>void</code></li>
\r
897 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#removeInvalidHandleId" href="output/Ext.dd.DragDrop.html#removeInvalidHandleId">DragDrop</a></td>
\r
899 <tr class="method-row inherited alt expandable">
\r
900 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
902 <a id="Ext.dd.DDTarget-removeInvalidHandleType"></a>
\r
903 <b>removeInvalidHandleType</b>( <code>string tagName</code> ) : void <div class="mdesc">
\r
904 <div class="short">Unsets an excluded tag name set by addInvalidHandleType</div>
\r
906 Unsets an excluded tag name set by addInvalidHandleType <div class="mdetail-params">
\r
907 <strong>Parameters:</strong>
\r
908 <ul><li><code>tagName</code> : string<div class="sub-desc">the type of element to unexclude</div></li> </ul>
\r
909 <strong>Returns:</strong>
\r
911 <li><code>void</code></li>
\r
917 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#removeInvalidHandleType" href="output/Ext.dd.DragDrop.html#removeInvalidHandleType">DragDrop</a></td>
\r
919 <tr class="method-row inherited expandable">
\r
920 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
922 <a id="Ext.dd.DDTarget-resetConstraints"></a>
\r
923 <b>resetConstraints</b>( <code>boolean maintainOffset</code> ) : void <div class="mdesc">
\r
924 <div class="short">resetConstraints must be called if you manually reposition a dd element.</div>
\r
926 resetConstraints must be called if you manually reposition a dd element. <div class="mdetail-params">
\r
927 <strong>Parameters:</strong>
\r
928 <ul><li><code>maintainOffset</code> : boolean<div class="sub-desc"></div></li> </ul>
\r
929 <strong>Returns:</strong>
\r
931 <li><code>void</code></li>
\r
937 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#resetConstraints" href="output/Ext.dd.DragDrop.html#resetConstraints">DragDrop</a></td>
\r
939 <tr class="method-row inherited alt expandable">
\r
940 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
942 <a id="Ext.dd.DDTarget-setDragElId"></a>
\r
943 <b>setDragElId</b>( <code>id {string}</code> ) : void <div class="mdesc">
\r
944 <div class="short">Allows you to specify that an element other than the linked element
945 will be moved with the cursor during a drag</div>
\r
947 Allows you to specify that an element other than the linked element
948 will be moved with the cursor during a drag <div class="mdetail-params">
\r
949 <strong>Parameters:</strong>
\r
950 <ul><li><code>{string}</code> : id<div class="sub-desc">the id of the element that will be used to initiate the drag</div></li> </ul>
\r
951 <strong>Returns:</strong>
\r
953 <li><code>void</code></li>
\r
959 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#setDragElId" href="output/Ext.dd.DragDrop.html#setDragElId">DragDrop</a></td>
\r
961 <tr class="method-row inherited expandable">
\r
962 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
964 <a id="Ext.dd.DDTarget-setHandleElId"></a>
\r
965 <b>setHandleElId</b>( <code>id {string}</code> ) : void <div class="mdesc">
\r
966 <div class="short">Allows you to specify a child of the linked element that should be
967 used to initiate the drag operation. An example o...</div>
\r
969 Allows you to specify a child of the linked element that should be
970 used to initiate the drag operation. An example of this would be if
971 you have a content div with text and links. Clicking anywhere in the
972 content area would normally start the drag operation. Use this method
973 to specify that an element inside of the content div is the element
974 that starts the drag operation. <div class="mdetail-params">
\r
975 <strong>Parameters:</strong>
\r
976 <ul><li><code>{string}</code> : id<div class="sub-desc">the id of the element that will be used to
977 initiate the drag.</div></li> </ul>
\r
978 <strong>Returns:</strong>
\r
980 <li><code>void</code></li>
\r
986 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#setHandleElId" href="output/Ext.dd.DragDrop.html#setHandleElId">DragDrop</a></td>
\r
988 <tr class="method-row inherited alt expandable">
\r
989 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
991 <a id="Ext.dd.DDTarget-setInitialPosition"></a>
\r
992 <b>setInitialPosition</b>( <code>int diffX</code>, <code>int diffY</code> ) : void <div class="mdesc">
\r
993 <div class="short">Stores the initial placement of the linked element.</div>
\r
995 Stores the initial placement of the linked element. <div class="mdetail-params">
\r
996 <strong>Parameters:</strong>
\r
997 <ul><li><code>diffX</code> : int<div class="sub-desc">the X offset, default 0</div></li><li><code>diffY</code> : int<div class="sub-desc">the Y offset, default 0</div></li> </ul>
\r
998 <strong>Returns:</strong>
\r
1000 <li><code>void</code></li>
\r
1006 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#setInitialPosition" href="output/Ext.dd.DragDrop.html#setInitialPosition">DragDrop</a></td>
\r
1008 <tr class="method-row inherited expandable">
\r
1009 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1011 <a id="Ext.dd.DDTarget-setOuterHandleElId"></a>
\r
1012 <b>setOuterHandleElId</b>( <code>id the</code> ) : void <div class="mdesc">
\r
1013 <div class="short">Allows you to set an element outside of the linked element as a drag
1015 <div class="long">
\r
1016 Allows you to set an element outside of the linked element as a drag
1017 handle <div class="mdetail-params">
\r
1018 <strong>Parameters:</strong>
\r
1019 <ul><li><code>the</code> : id<div class="sub-desc">id of the element that will be used to initiate the drag</div></li> </ul>
\r
1020 <strong>Returns:</strong>
\r
1022 <li><code>void</code></li>
\r
1028 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#setOuterHandleElId" href="output/Ext.dd.DragDrop.html#setOuterHandleElId">DragDrop</a></td>
\r
1030 <tr class="method-row inherited alt expandable">
\r
1031 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1033 <a id="Ext.dd.DDTarget-setPadding"></a>
\r
1034 <b>setPadding</b>( <code>int iTop</code>, <code>int iRight</code>, <code>int iBot</code>, <code>int iLeft</code> ) : void <div class="mdesc">
\r
1035 <div class="short">Configures the padding for the target zone in px. Effectively expands
1036 (or reduces) the virtual object size for targe...</div>
\r
1037 <div class="long">
\r
1038 Configures the padding for the target zone in px. Effectively expands
1039 (or reduces) the virtual object size for targeting calculations.
1040 Supports css-style shorthand; if only one parameter is passed, all sides
1041 will have that padding, and if only two are passed, the top and bottom
1042 will have the first param, the left and right the second. <div class="mdetail-params">
\r
1043 <strong>Parameters:</strong>
\r
1044 <ul><li><code>iTop</code> : int<div class="sub-desc">Top pad</div></li><li><code>iRight</code> : int<div class="sub-desc">Right pad</div></li><li><code>iBot</code> : int<div class="sub-desc">Bot pad</div></li><li><code>iLeft</code> : int<div class="sub-desc">Left pad</div></li> </ul>
\r
1045 <strong>Returns:</strong>
\r
1047 <li><code>void</code></li>
\r
1053 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#setPadding" href="output/Ext.dd.DragDrop.html#setPadding">DragDrop</a></td>
\r
1055 <tr class="method-row inherited expandable">
\r
1056 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1058 <a id="Ext.dd.DDTarget-setXConstraint"></a>
\r
1059 <b>setXConstraint</b>( <code>int iLeft</code>, <code>int iRight</code>, <code>int iTickSize</code> ) : void <div class="mdesc">
\r
1060 <div class="short">By default, the element can be dragged any place on the screen. Use
1061 this method to limit the horizontal travel of th...</div>
\r
1062 <div class="long">
\r
1063 By default, the element can be dragged any place on the screen. Use
1064 this method to limit the horizontal travel of the element. Pass in
1065 0,0 for the parameters if you want to lock the drag to the y axis. <div class="mdetail-params">
\r
1066 <strong>Parameters:</strong>
\r
1067 <ul><li><code>iLeft</code> : int<div class="sub-desc">the number of pixels the element can move to the left</div></li><li><code>iRight</code> : int<div class="sub-desc">the number of pixels the element can move to the
1068 right</div></li><li><code>iTickSize</code> : int<div class="sub-desc">optional parameter for specifying that the
1070 should move iTickSize pixels at a time.</div></li> </ul>
\r
1071 <strong>Returns:</strong>
\r
1073 <li><code>void</code></li>
\r
1079 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#setXConstraint" href="output/Ext.dd.DragDrop.html#setXConstraint">DragDrop</a></td>
\r
1081 <tr class="method-row inherited alt expandable">
\r
1082 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1084 <a id="Ext.dd.DDTarget-setYConstraint"></a>
\r
1085 <b>setYConstraint</b>( <code>int iUp</code>, <code>int iDown</code>, <code>int iTickSize</code> ) : void <div class="mdesc">
\r
1086 <div class="short">By default, the element can be dragged any place on the screen. Set
1087 this to limit the vertical travel of the element...</div>
\r
1088 <div class="long">
\r
1089 By default, the element can be dragged any place on the screen. Set
1090 this to limit the vertical travel of the element. Pass in 0,0 for the
1091 parameters if you want to lock the drag to the x axis. <div class="mdetail-params">
\r
1092 <strong>Parameters:</strong>
\r
1093 <ul><li><code>iUp</code> : int<div class="sub-desc">the number of pixels the element can move up</div></li><li><code>iDown</code> : int<div class="sub-desc">the number of pixels the element can move down</div></li><li><code>iTickSize</code> : int<div class="sub-desc">optional parameter for specifying that the
1094 element should move iTickSize pixels at a time.</div></li> </ul>
\r
1095 <strong>Returns:</strong>
\r
1097 <li><code>void</code></li>
\r
1103 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#setYConstraint" href="output/Ext.dd.DragDrop.html#setYConstraint">DragDrop</a></td>
\r
1105 <tr class="method-row inherited expandable">
\r
1106 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1108 <a id="Ext.dd.DDTarget-startDrag"></a>
\r
1109 <b>startDrag</b>( <code>int X</code>, <code>int Y</code> ) : void <div class="mdesc">
\r
1110 <div class="short">Abstract method called after a drag/drop object is clicked
1111 and the drag or mousedown time thresholds have beeen met.</div>
\r
1112 <div class="long">
\r
1113 Abstract method called after a drag/drop object is clicked
1114 and the drag or mousedown time thresholds have beeen met. <div class="mdetail-params">
\r
1115 <strong>Parameters:</strong>
\r
1116 <ul><li><code>X</code> : int<div class="sub-desc">click location</div></li><li><code>Y</code> : int<div class="sub-desc">click location</div></li> </ul>
\r
1117 <strong>Returns:</strong>
\r
1119 <li><code>void</code></li>
\r
1125 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#startDrag" href="output/Ext.dd.DragDrop.html#startDrag">DragDrop</a></td>
\r
1127 <tr class="method-row inherited alt expandable">
\r
1128 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1130 <a id="Ext.dd.DDTarget-toString"></a>
\r
1131 <b>toString</b>() : string <div class="mdesc">
\r
1132 <div class="short">toString method</div>
\r
1133 <div class="long">
\r
1134 toString method <div class="mdetail-params">
\r
1135 <strong>Parameters:</strong>
\r
1136 <ul><li>None.</li> </ul>
\r
1137 <strong>Returns:</strong>
\r
1139 <li><code>string</code><div class="sub-desc">string representation of the dd obj</div></li>
\r
1145 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#toString" href="output/Ext.dd.DragDrop.html#toString">DragDrop</a></td>
\r
1147 <tr class="method-row inherited expandable">
\r
1148 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1150 <a id="Ext.dd.DDTarget-unlock"></a>
\r
1151 <b>unlock</b>() : void <div class="mdesc">
\r
1152 <div class="short">Unlock this instace</div>
\r
1153 <div class="long">
\r
1154 Unlock this instace <div class="mdetail-params">
\r
1155 <strong>Parameters:</strong>
\r
1156 <ul><li>None.</li> </ul>
\r
1157 <strong>Returns:</strong>
\r
1159 <li><code>void</code></li>
\r
1165 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#unlock" href="output/Ext.dd.DragDrop.html#unlock">DragDrop</a></td>
\r
1167 <tr class="method-row inherited alt expandable">
\r
1168 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1170 <a id="Ext.dd.DDTarget-unreg"></a>
\r
1171 <b>unreg</b>() : void <div class="mdesc">
\r
1172 <div class="short">Remove all drag and drop hooks for this element</div>
\r
1173 <div class="long">
\r
1174 Remove all drag and drop hooks for this element <div class="mdetail-params">
\r
1175 <strong>Parameters:</strong>
\r
1176 <ul><li>None.</li> </ul>
\r
1177 <strong>Returns:</strong>
\r
1179 <li><code>void</code></li>
\r
1185 <td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#unreg" href="output/Ext.dd.DragDrop.html#unreg">DragDrop</a></td>
\r
1188 <a id="Ext.dd.DDTarget-events"></a>
1189 <h2>Public Events</h2>
1190 <div class="no-members">This class has no public events.</div>