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">DDCore.js</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">
34
<td class="micon"><a class="exi" href="#expand"> </a></td>
36
<a id="Ext.dd.DDTarget-available"></a>
37
<b>available</b> : boolean <div class="mdesc">
38
The availabe property is false until the linked dom element is accessible. </div>
40
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#available" href="output/Ext.dd.DragDrop.html#available">DragDrop</a></td>
42
<tr class="property-row inherited alt">
43
<td class="micon"><a class="exi" href="#expand"> </a></td>
45
<a id="Ext.dd.DDTarget-config"></a>
46
<b>config</b> : object <div class="mdesc">
47
Configuration attributes passed into the constructor </div>
49
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#config" href="output/Ext.dd.DragDrop.html#config">DragDrop</a></td>
51
<tr class="property-row inherited">
52
<td class="micon"><a class="exi" href="#expand"> </a></td>
54
<a id="Ext.dd.DDTarget-defaultPadding"></a>
55
<b>defaultPadding</b> : Object <div class="mdesc">
56
Provides default constraint padding to "constrainTo" elements (defaults to {left: 0, right:0, top:0, bottom:0}). </div>
58
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#defaultPadding" href="output/Ext.dd.DragDrop.html#defaultPadding">DragDrop</a></td>
60
<tr class="property-row inherited alt expandable">
61
<td class="micon"><a class="exi" href="#expand"> </a></td>
63
<a id="Ext.dd.DDTarget-groups"></a>
64
<b>groups</b> : object <div class="mdesc">
65
<div class="short">The group defines a logical collection of DragDrop objects that are
66
related. Instances only get events when interact...</div>
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>
74
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#groups" href="output/Ext.dd.DragDrop.html#groups">DragDrop</a></td>
76
<tr class="property-row inherited expandable">
77
<td class="micon"><a class="exi" href="#expand"> </a></td>
79
<a id="Ext.dd.DDTarget-hasOuterHandles"></a>
80
<b>hasOuterHandles</b> : boolean <div class="mdesc">
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>
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>
91
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#hasOuterHandles" href="output/Ext.dd.DragDrop.html#hasOuterHandles">DragDrop</a></td>
93
<tr class="property-row inherited alt expandable">
94
<td class="micon"><a class="exi" href="#expand"> </a></td>
96
<a id="Ext.dd.DDTarget-id"></a>
97
<b>id</b> : String <div class="mdesc">
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>
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>
109
<tr class="property-row inherited">
110
<td class="micon"><a class="exi" href="#expand"> </a></td>
112
<a id="Ext.dd.DDTarget-invalidHandleClasses"></a>
113
<b>invalidHandleClasses</b> : Array <div class="mdesc">
114
An Array of CSS class names for elements to be considered in valid as drag handles. </div>
116
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#invalidHandleClasses" href="output/Ext.dd.DragDrop.html#invalidHandleClasses">DragDrop</a></td>
118
<tr class="property-row inherited alt expandable">
119
<td class="micon"><a class="exi" href="#expand"> </a></td>
121
<a id="Ext.dd.DDTarget-invalidHandleIds"></a>
122
<b>invalidHandleIds</b> : Object <div class="mdesc">
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>
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>
133
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#invalidHandleIds" href="output/Ext.dd.DragDrop.html#invalidHandleIds">DragDrop</a></td>
135
<tr class="property-row inherited expandable">
136
<td class="micon"><a class="exi" href="#expand"> </a></td>
138
<a id="Ext.dd.DDTarget-invalidHandleTypes"></a>
139
<b>invalidHandleTypes</b> : Object <div class="mdesc">
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>
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>
150
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#invalidHandleTypes" href="output/Ext.dd.DragDrop.html#invalidHandleTypes">DragDrop</a></td>
152
<tr class="property-row inherited alt">
153
<td class="micon"><a class="exi" href="#expand"> </a></td>
155
<a id="Ext.dd.DDTarget-isTarget"></a>
156
<b>isTarget</b> : boolean <div class="mdesc">
157
By default, all instances can be a drop target. This can be disabled by
158
setting isTarget to false. </div>
160
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#isTarget" href="output/Ext.dd.DragDrop.html#isTarget">DragDrop</a></td>
162
<tr class="property-row inherited expandable">
163
<td class="micon"><a class="exi" href="#expand"> </a></td>
165
<a id="Ext.dd.DDTarget-maintainOffset"></a>
166
<b>maintainOffset</b> : boolean <div class="mdesc">
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>
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>
175
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#maintainOffset" href="output/Ext.dd.DragDrop.html#maintainOffset">DragDrop</a></td>
177
<tr class="property-row inherited alt expandable">
178
<td class="micon"><a class="exi" href="#expand"> </a></td>
180
<a id="Ext.dd.DDTarget-moveOnly"></a>
181
<b>moveOnly</b> : boolean <div class="mdesc">
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>
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>
189
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#moveOnly" href="output/Ext.dd.DragDrop.html#moveOnly">DragDrop</a></td>
191
<tr class="property-row inherited">
192
<td class="micon"><a class="exi" href="#expand"> </a></td>
194
<a id="Ext.dd.DDTarget-padding"></a>
195
<b>padding</b> : int[] <div class="mdesc">
196
The padding configured for this drag and drop object for calculating
197
the drop zone intersection with this object. </div>
199
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#padding" href="output/Ext.dd.DragDrop.html#padding">DragDrop</a></td>
201
<tr class="property-row inherited alt expandable">
202
<td class="micon"><a class="exi" href="#expand"> </a></td>
204
<a id="Ext.dd.DDTarget-primaryButtonOnly"></a>
205
<b>primaryButtonOnly</b> : boolean <div class="mdesc">
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>
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>
215
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#primaryButtonOnly" href="output/Ext.dd.DragDrop.html#primaryButtonOnly">DragDrop</a></td>
217
<tr class="property-row inherited expandable">
218
<td class="micon"><a class="exi" href="#expand"> </a></td>
220
<a id="Ext.dd.DDTarget-xTicks"></a>
221
<b>xTicks</b> : int[] <div class="mdesc">
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>
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>
230
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#xTicks" href="output/Ext.dd.DragDrop.html#xTicks">DragDrop</a></td>
232
<tr class="property-row inherited alt expandable">
233
<td class="micon"><a class="exi" href="#expand"> </a></td>
235
<a id="Ext.dd.DDTarget-yTicks"></a>
236
<b>yTicks</b> : int[] <div class="mdesc">
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>
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>
245
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#yTicks" href="output/Ext.dd.DragDrop.html#yTicks">DragDrop</a></td>
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">
256
<td class="micon"><a class="exi" href="#expand"> </a></td>
258
<a id="Ext.dd.DDTarget-DDTarget"></a>
259
<b>DDTarget</b>( <code>String id</code>, <code>String sGroup</code>, <code>object config</code> ) <div class="mdesc">
260
<div class="short"></div>
262
<div class="mdetail-params">
263
<strong>Parameters:</strong>
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>
268
<strong>Returns:</strong>
270
<li><code></code></li>
276
<td class="msource">DDTarget</td>
278
<tr class="method-row inherited alt expandable">
279
<td class="micon"><a class="exi" href="#expand"> </a></td>
281
<a id="Ext.dd.DDTarget-addInvalidHandleClass"></a>
282
<b>addInvalidHandleClass</b>( <code>string cssClass</code> ) : void <div class="mdesc">
283
<div class="short">Lets you specify a css class of elements that will not initiate a drag</div>
285
Lets you specify a css class of elements that will not initiate a drag <div class="mdetail-params">
286
<strong>Parameters:</strong>
287
<ul><li><code>cssClass</code> : string<div class="sub-desc">the class of the elements you wish to ignore</div></li> </ul>
288
<strong>Returns:</strong>
290
<li><code>void</code></li>
296
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#addInvalidHandleClass" href="output/Ext.dd.DragDrop.html#addInvalidHandleClass">DragDrop</a></td>
298
<tr class="method-row inherited expandable">
299
<td class="micon"><a class="exi" href="#expand"> </a></td>
301
<a id="Ext.dd.DDTarget-addInvalidHandleId"></a>
302
<b>addInvalidHandleId</b>( <code>string id</code> ) : void <div class="mdesc">
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>
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">
308
<strong>Parameters:</strong>
309
<ul><li><code>id</code> : string<div class="sub-desc">the element id of the element you wish to ignore</div></li> </ul>
310
<strong>Returns:</strong>
312
<li><code>void</code></li>
318
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#addInvalidHandleId" href="output/Ext.dd.DragDrop.html#addInvalidHandleId">DragDrop</a></td>
320
<tr class="method-row inherited alt expandable">
321
<td class="micon"><a class="exi" href="#expand"> </a></td>
323
<a id="Ext.dd.DDTarget-addInvalidHandleType"></a>
324
<b>addInvalidHandleType</b>( <code>string tagName</code> ) : void <div class="mdesc">
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>
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">
331
<strong>Parameters:</strong>
332
<ul><li><code>tagName</code> : string<div class="sub-desc">the type of element to exclude</div></li> </ul>
333
<strong>Returns:</strong>
335
<li><code>void</code></li>
341
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#addInvalidHandleType" href="output/Ext.dd.DragDrop.html#addInvalidHandleType">DragDrop</a></td>
343
<tr class="method-row inherited expandable">
344
<td class="micon"><a class="exi" href="#expand"> </a></td>
346
<a id="Ext.dd.DDTarget-addToGroup"></a>
347
<b>addToGroup</b>( <code>sGroup {string}</code> ) : void <div class="mdesc">
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>
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">
354
<strong>Parameters:</strong>
355
<ul><li><code>{string}</code> : sGroup<div class="sub-desc">the name of the group</div></li> </ul>
356
<strong>Returns:</strong>
358
<li><code>void</code></li>
364
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#addToGroup" href="output/Ext.dd.DragDrop.html#addToGroup">DragDrop</a></td>
366
<tr class="method-row inherited alt expandable">
367
<td class="micon"><a class="exi" href="#expand"> </a></td>
369
<a id="Ext.dd.DDTarget-applyConfig"></a>
370
<b>applyConfig</b>() : void <div class="mdesc">
371
<div class="short">Applies the configuration parameters that were passed into the constructor.
372
This is supposed to happen at each level ...</div>
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">
379
<strong>Parameters:</strong>
380
<ul><li>None.</li> </ul>
381
<strong>Returns:</strong>
383
<li><code>void</code></li>
389
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#applyConfig" href="output/Ext.dd.DragDrop.html#applyConfig">DragDrop</a></td>
391
<tr class="method-row inherited expandable">
392
<td class="micon"><a class="exi" href="#expand"> </a></td>
394
<a id="Ext.dd.DDTarget-clearConstraints"></a>
395
<b>clearConstraints</b>() : void <div class="mdesc">
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>
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">
401
<strong>Parameters:</strong>
402
<ul><li>None.</li> </ul>
403
<strong>Returns:</strong>
405
<li><code>void</code></li>
411
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#clearConstraints" href="output/Ext.dd.DragDrop.html#clearConstraints">DragDrop</a></td>
413
<tr class="method-row inherited alt expandable">
414
<td class="micon"><a class="exi" href="#expand"> </a></td>
416
<a id="Ext.dd.DDTarget-clearTicks"></a>
417
<b>clearTicks</b>() : void <div class="mdesc">
418
<div class="short">Clears any tick interval defined for this instance</div>
420
Clears any tick interval defined for this instance <div class="mdetail-params">
421
<strong>Parameters:</strong>
422
<ul><li>None.</li> </ul>
423
<strong>Returns:</strong>
425
<li><code>void</code></li>
431
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#clearTicks" href="output/Ext.dd.DragDrop.html#clearTicks">DragDrop</a></td>
433
<tr class="method-row inherited expandable">
434
<td class="micon"><a class="exi" href="#expand"> </a></td>
436
<a id="Ext.dd.DDTarget-constrainTo"></a>
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">
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>
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:
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">
455
<strong>Parameters:</strong>
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>
459
<strong>Returns:</strong>
461
<li><code>void</code></li>
467
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#constrainTo" href="output/Ext.dd.DragDrop.html#constrainTo">DragDrop</a></td>
469
<tr class="method-row inherited alt expandable">
470
<td class="micon"><a class="exi" href="#expand"> </a></td>
472
<a id="Ext.dd.DDTarget-endDrag"></a>
473
<b>endDrag</b>( <code>Event e</code> ) : void <div class="mdesc">
474
<div class="short">Fired when we are done dragging the object</div>
476
Fired when we are done dragging the object <div class="mdetail-params">
477
<strong>Parameters:</strong>
478
<ul><li><code>e</code> : Event<div class="sub-desc">the mouseup event</div></li> </ul>
479
<strong>Returns:</strong>
481
<li><code>void</code></li>
487
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#endDrag" href="output/Ext.dd.DragDrop.html#endDrag">DragDrop</a></td>
489
<tr class="method-row inherited expandable">
490
<td class="micon"><a class="exi" href="#expand"> </a></td>
492
<a id="Ext.dd.DDTarget-getDragEl"></a>
493
<b>getDragEl</b>() : HTMLElement <div class="mdesc">
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>
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">
500
<strong>Parameters:</strong>
501
<ul><li>None.</li> </ul>
502
<strong>Returns:</strong>
504
<li><code>HTMLElement</code><div class="sub-desc">the html element</div></li>
510
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#getDragEl" href="output/Ext.dd.DragDrop.html#getDragEl">DragDrop</a></td>
512
<tr class="method-row inherited alt expandable">
513
<td class="micon"><a class="exi" href="#expand"> </a></td>
515
<a id="Ext.dd.DDTarget-getEl"></a>
516
<b>getEl</b>() : HTMLElement <div class="mdesc">
517
<div class="short">Returns a reference to the linked element</div>
519
Returns a reference to the linked element <div class="mdetail-params">
520
<strong>Parameters:</strong>
521
<ul><li>None.</li> </ul>
522
<strong>Returns:</strong>
524
<li><code>HTMLElement</code><div class="sub-desc">the html element</div></li>
530
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#getEl" href="output/Ext.dd.DragDrop.html#getEl">DragDrop</a></td>
532
<tr class="method-row inherited expandable">
533
<td class="micon"><a class="exi" href="#expand"> </a></td>
535
<a id="Ext.dd.DDTarget-init"></a>
536
<b>init</b>( <code>id the</code>, <code>String sGroup</code>, <code>object config</code> ) : void <div class="mdesc">
537
<div class="short">Sets up the DragDrop object. Must be called in the constructor of any
538
Ext.dd.DragDrop subclass</div>
540
Sets up the DragDrop object. Must be called in the constructor of any
541
Ext.dd.DragDrop subclass <div class="mdetail-params">
542
<strong>Parameters:</strong>
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>
544
<strong>Returns:</strong>
546
<li><code>void</code></li>
552
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#init" href="output/Ext.dd.DragDrop.html#init">DragDrop</a></td>
554
<tr class="method-row inherited alt expandable">
555
<td class="micon"><a class="exi" href="#expand"> </a></td>
557
<a id="Ext.dd.DDTarget-initTarget"></a>
558
<b>initTarget</b>( <code>id the</code>, <code>String sGroup</code>, <code>object config</code> ) : void <div class="mdesc">
559
<div class="short">Initializes Targeting functionality only... the object does not
560
get a mousedown handler.</div>
562
Initializes Targeting functionality only... the object does not
563
get a mousedown handler. <div class="mdetail-params">
564
<strong>Parameters:</strong>
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>
566
<strong>Returns:</strong>
568
<li><code>void</code></li>
574
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#initTarget" href="output/Ext.dd.DragDrop.html#initTarget">DragDrop</a></td>
576
<tr class="method-row inherited expandable">
577
<td class="micon"><a class="exi" href="#expand"> </a></td>
579
<a id="Ext.dd.DDTarget-isLocked"></a>
580
<b>isLocked</b>() : boolean <div class="mdesc">
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>
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">
586
<strong>Parameters:</strong>
587
<ul><li>None.</li> </ul>
588
<strong>Returns:</strong>
590
<li><code>boolean</code><div class="sub-desc">true if this obj or all drag/drop is locked, else false</div></li>
596
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#isLocked" href="output/Ext.dd.DragDrop.html#isLocked">DragDrop</a></td>
598
<tr class="method-row inherited alt expandable">
599
<td class="micon"><a class="exi" href="#expand"> </a></td>
601
<a id="Ext.dd.DDTarget-isValidHandleChild"></a>
602
<b>isValidHandleChild</b>( <code>HTMLElement node</code> ) : boolean <div class="mdesc">
603
<div class="short">Checks the tag exclusion list to see if this click should be ignored</div>
605
Checks the tag exclusion list to see if this click should be ignored <div class="mdetail-params">
606
<strong>Parameters:</strong>
607
<ul><li><code>node</code> : HTMLElement<div class="sub-desc">the HTMLElement to evaluate</div></li> </ul>
608
<strong>Returns:</strong>
610
<li><code>boolean</code><div class="sub-desc">true if this is a valid tag type, false if not</div></li>
616
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#isValidHandleChild" href="output/Ext.dd.DragDrop.html#isValidHandleChild">DragDrop</a></td>
618
<tr class="method-row inherited expandable">
619
<td class="micon"><a class="exi" href="#expand"> </a></td>
621
<a id="Ext.dd.DDTarget-lock"></a>
622
<b>lock</b>() : void <div class="mdesc">
623
<div class="short">Lock this instance</div>
625
Lock this instance <div class="mdetail-params">
626
<strong>Parameters:</strong>
627
<ul><li>None.</li> </ul>
628
<strong>Returns:</strong>
630
<li><code>void</code></li>
636
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#lock" href="output/Ext.dd.DragDrop.html#lock">DragDrop</a></td>
638
<tr class="method-row inherited alt expandable">
639
<td class="micon"><a class="exi" href="#expand"> </a></td>
641
<a id="Ext.dd.DDTarget-onAvailable"></a>
642
<b>onAvailable</b>() : void <div class="mdesc">
643
<div class="short">Override the onAvailable method to do what is needed after the initial
644
position was determined.</div>
646
Override the onAvailable method to do what is needed after the initial
647
position was determined. <div class="mdetail-params">
648
<strong>Parameters:</strong>
649
<ul><li>None.</li> </ul>
650
<strong>Returns:</strong>
652
<li><code>void</code></li>
658
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onAvailable" href="output/Ext.dd.DragDrop.html#onAvailable">DragDrop</a></td>
660
<tr class="method-row inherited expandable">
661
<td class="micon"><a class="exi" href="#expand"> </a></td>
663
<a id="Ext.dd.DDTarget-onDrag"></a>
664
<b>onDrag</b>( <code>Event e</code> ) : void <div class="mdesc">
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">
670
<strong>Parameters:</strong>
671
<ul><li><code>e</code> : Event<div class="sub-desc">the mousemove event</div></li> </ul>
672
<strong>Returns:</strong>
674
<li><code>void</code></li>
680
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onDrag" href="output/Ext.dd.DragDrop.html#onDrag">DragDrop</a></td>
682
<tr class="method-row inherited alt expandable">
683
<td class="micon"><a class="exi" href="#expand"> </a></td>
685
<a id="Ext.dd.DDTarget-onDragDrop"></a>
686
<b>onDragDrop</b>( <code>Event e</code>, <code>String|DragDrop[] id</code> ) : void <div class="mdesc">
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">
692
<strong>Parameters:</strong>
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>
696
<strong>Returns:</strong>
698
<li><code>void</code></li>
704
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onDragDrop" href="output/Ext.dd.DragDrop.html#onDragDrop">DragDrop</a></td>
706
<tr class="method-row inherited expandable">
707
<td class="micon"><a class="exi" href="#expand"> </a></td>
709
<a id="Ext.dd.DDTarget-onDragEnter"></a>
710
<b>onDragEnter</b>( <code>Event e</code>, <code>String|DragDrop[] id</code> ) : void <div class="mdesc">
711
<div class="short">Abstract method called when this element fist begins hovering over
712
another DragDrop obj</div>
714
Abstract method called when this element fist begins hovering over
715
another DragDrop obj <div class="mdetail-params">
716
<strong>Parameters:</strong>
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>
720
<strong>Returns:</strong>
722
<li><code>void</code></li>
728
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onDragEnter" href="output/Ext.dd.DragDrop.html#onDragEnter">DragDrop</a></td>
730
<tr class="method-row inherited alt expandable">
731
<td class="micon"><a class="exi" href="#expand"> </a></td>
733
<a id="Ext.dd.DDTarget-onDragOut"></a>
734
<b>onDragOut</b>( <code>Event e</code>, <code>String|DragDrop[] id</code> ) : void <div class="mdesc">
735
<div class="short">Abstract method called when we are no longer hovering over an element</div>
737
Abstract method called when we are no longer hovering over an element <div class="mdetail-params">
738
<strong>Parameters:</strong>
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>
742
<strong>Returns:</strong>
744
<li><code>void</code></li>
750
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onDragOut" href="output/Ext.dd.DragDrop.html#onDragOut">DragDrop</a></td>
752
<tr class="method-row inherited expandable">
753
<td class="micon"><a class="exi" href="#expand"> </a></td>
755
<a id="Ext.dd.DDTarget-onDragOver"></a>
756
<b>onDragOver</b>( <code>Event e</code>, <code>String|DragDrop[] id</code> ) : void <div class="mdesc">
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">
762
<strong>Parameters:</strong>
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>
766
<strong>Returns:</strong>
768
<li><code>void</code></li>
774
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onDragOver" href="output/Ext.dd.DragDrop.html#onDragOver">DragDrop</a></td>
776
<tr class="method-row inherited alt expandable">
777
<td class="micon"><a class="exi" href="#expand"> </a></td>
779
<a id="Ext.dd.DDTarget-onInvalidDrop"></a>
780
<b>onInvalidDrop</b>( <code>Event e</code> ) : void <div class="mdesc">
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">
786
<strong>Parameters:</strong>
787
<ul><li><code>e</code> : Event<div class="sub-desc">the mouseup event</div></li> </ul>
788
<strong>Returns:</strong>
790
<li><code>void</code></li>
796
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onInvalidDrop" href="output/Ext.dd.DragDrop.html#onInvalidDrop">DragDrop</a></td>
798
<tr class="method-row inherited expandable">
799
<td class="micon"><a class="exi" href="#expand"> </a></td>
801
<a id="Ext.dd.DDTarget-onMouseDown"></a>
802
<b>onMouseDown</b>( <code>Event e</code> ) : void <div class="mdesc">
803
<div class="short">Event handler that fires when a drag/drop obj gets a mousedown</div>
805
Event handler that fires when a drag/drop obj gets a mousedown <div class="mdetail-params">
806
<strong>Parameters:</strong>
807
<ul><li><code>e</code> : Event<div class="sub-desc">the mousedown event</div></li> </ul>
808
<strong>Returns:</strong>
810
<li><code>void</code></li>
816
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onMouseDown" href="output/Ext.dd.DragDrop.html#onMouseDown">DragDrop</a></td>
818
<tr class="method-row inherited alt expandable">
819
<td class="micon"><a class="exi" href="#expand"> </a></td>
821
<a id="Ext.dd.DDTarget-onMouseUp"></a>
822
<b>onMouseUp</b>( <code>Event e</code> ) : void <div class="mdesc">
823
<div class="short">Event handler that fires when a drag/drop obj gets a mouseup</div>
825
Event handler that fires when a drag/drop obj gets a mouseup <div class="mdetail-params">
826
<strong>Parameters:</strong>
827
<ul><li><code>e</code> : Event<div class="sub-desc">the mouseup event</div></li> </ul>
828
<strong>Returns:</strong>
830
<li><code>void</code></li>
836
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onMouseUp" href="output/Ext.dd.DragDrop.html#onMouseUp">DragDrop</a></td>
838
<tr class="method-row inherited expandable">
839
<td class="micon"><a class="exi" href="#expand"> </a></td>
841
<a id="Ext.dd.DDTarget-removeFromGroup"></a>
842
<b>removeFromGroup</b>( <code>string sGroup</code> ) : void <div class="mdesc">
843
<div class="short">Remove's this instance from the supplied interaction group</div>
845
Remove's this instance from the supplied interaction group <div class="mdetail-params">
846
<strong>Parameters:</strong>
847
<ul><li><code>sGroup</code> : string<div class="sub-desc">The group to drop</div></li> </ul>
848
<strong>Returns:</strong>
850
<li><code>void</code></li>
856
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#removeFromGroup" href="output/Ext.dd.DragDrop.html#removeFromGroup">DragDrop</a></td>
858
<tr class="method-row inherited alt expandable">
859
<td class="micon"><a class="exi" href="#expand"> </a></td>
861
<a id="Ext.dd.DDTarget-removeInvalidHandleClass"></a>
862
<b>removeInvalidHandleClass</b>( <code>string cssClass</code> ) : void <div class="mdesc">
863
<div class="short">Unsets an invalid css class</div>
865
Unsets an invalid css class <div class="mdetail-params">
866
<strong>Parameters:</strong>
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>
869
<strong>Returns:</strong>
871
<li><code>void</code></li>
877
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#removeInvalidHandleClass" href="output/Ext.dd.DragDrop.html#removeInvalidHandleClass">DragDrop</a></td>
879
<tr class="method-row inherited expandable">
880
<td class="micon"><a class="exi" href="#expand"> </a></td>
882
<a id="Ext.dd.DDTarget-removeInvalidHandleId"></a>
883
<b>removeInvalidHandleId</b>( <code>string id</code> ) : void <div class="mdesc">
884
<div class="short">Unsets an invalid handle id</div>
886
Unsets an invalid handle id <div class="mdetail-params">
887
<strong>Parameters:</strong>
888
<ul><li><code>id</code> : string<div class="sub-desc">the id of the element to re-enable</div></li> </ul>
889
<strong>Returns:</strong>
891
<li><code>void</code></li>
897
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#removeInvalidHandleId" href="output/Ext.dd.DragDrop.html#removeInvalidHandleId">DragDrop</a></td>
899
<tr class="method-row inherited alt expandable">
900
<td class="micon"><a class="exi" href="#expand"> </a></td>
902
<a id="Ext.dd.DDTarget-removeInvalidHandleType"></a>
903
<b>removeInvalidHandleType</b>( <code>string tagName</code> ) : void <div class="mdesc">
904
<div class="short">Unsets an excluded tag name set by addInvalidHandleType</div>
906
Unsets an excluded tag name set by addInvalidHandleType <div class="mdetail-params">
907
<strong>Parameters:</strong>
908
<ul><li><code>tagName</code> : string<div class="sub-desc">the type of element to unexclude</div></li> </ul>
909
<strong>Returns:</strong>
911
<li><code>void</code></li>
917
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#removeInvalidHandleType" href="output/Ext.dd.DragDrop.html#removeInvalidHandleType">DragDrop</a></td>
919
<tr class="method-row inherited expandable">
920
<td class="micon"><a class="exi" href="#expand"> </a></td>
922
<a id="Ext.dd.DDTarget-resetConstraints"></a>
923
<b>resetConstraints</b>( <code>boolean maintainOffset</code> ) : void <div class="mdesc">
924
<div class="short">resetConstraints must be called if you manually reposition a dd element.</div>
926
resetConstraints must be called if you manually reposition a dd element. <div class="mdetail-params">
927
<strong>Parameters:</strong>
928
<ul><li><code>maintainOffset</code> : boolean<div class="sub-desc"></div></li> </ul>
929
<strong>Returns:</strong>
931
<li><code>void</code></li>
937
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#resetConstraints" href="output/Ext.dd.DragDrop.html#resetConstraints">DragDrop</a></td>
939
<tr class="method-row inherited alt expandable">
940
<td class="micon"><a class="exi" href="#expand"> </a></td>
942
<a id="Ext.dd.DDTarget-setDragElId"></a>
943
<b>setDragElId</b>( <code>id {string}</code> ) : void <div class="mdesc">
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>
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">
949
<strong>Parameters:</strong>
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>
951
<strong>Returns:</strong>
953
<li><code>void</code></li>
959
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#setDragElId" href="output/Ext.dd.DragDrop.html#setDragElId">DragDrop</a></td>
961
<tr class="method-row inherited expandable">
962
<td class="micon"><a class="exi" href="#expand"> </a></td>
964
<a id="Ext.dd.DDTarget-setHandleElId"></a>
965
<b>setHandleElId</b>( <code>id {string}</code> ) : void <div class="mdesc">
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>
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">
975
<strong>Parameters:</strong>
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>
978
<strong>Returns:</strong>
980
<li><code>void</code></li>
986
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#setHandleElId" href="output/Ext.dd.DragDrop.html#setHandleElId">DragDrop</a></td>
988
<tr class="method-row inherited alt expandable">
989
<td class="micon"><a class="exi" href="#expand"> </a></td>
991
<a id="Ext.dd.DDTarget-setInitPosition"></a>
992
<b>setInitPosition</b>( <code>int diffX</code>, <code>int diffY</code> ) : void <div class="mdesc">
993
<div class="short">Stores the initial placement of the linked element.</div>
995
Stores the initial placement of the linked element. <div class="mdetail-params">
996
<strong>Parameters:</strong>
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>
998
<strong>Returns:</strong>
1000
<li><code>void</code></li>
1006
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#setInitPosition" href="output/Ext.dd.DragDrop.html#setInitPosition">DragDrop</a></td>
1008
<tr class="method-row inherited expandable">
1009
<td class="micon"><a class="exi" href="#expand"> </a></td>
1011
<a id="Ext.dd.DDTarget-setOuterHandleElId"></a>
1012
<b>setOuterHandleElId</b>( <code>id the</code> ) : void <div class="mdesc">
1013
<div class="short">Allows you to set an element outside of the linked element as a drag
1016
Allows you to set an element outside of the linked element as a drag
1017
handle <div class="mdetail-params">
1018
<strong>Parameters:</strong>
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>
1020
<strong>Returns:</strong>
1022
<li><code>void</code></li>
1028
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#setOuterHandleElId" href="output/Ext.dd.DragDrop.html#setOuterHandleElId">DragDrop</a></td>
1030
<tr class="method-row inherited alt expandable">
1031
<td class="micon"><a class="exi" href="#expand"> </a></td>
1033
<a id="Ext.dd.DDTarget-setPadding"></a>
1034
<b>setPadding</b>( <code>int iTop</code>, <code>int iRight</code>, <code>int iBot</code>, <code>int iLeft</code> ) : void <div class="mdesc">
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>
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">
1043
<strong>Parameters:</strong>
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>
1045
<strong>Returns:</strong>
1047
<li><code>void</code></li>
1053
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#setPadding" href="output/Ext.dd.DragDrop.html#setPadding">DragDrop</a></td>
1055
<tr class="method-row inherited expandable">
1056
<td class="micon"><a class="exi" href="#expand"> </a></td>
1058
<a id="Ext.dd.DDTarget-setXConstraint"></a>
1059
<b>setXConstraint</b>( <code>int iLeft</code>, <code>int iRight</code>, <code>int iTickSize</code> ) : void <div class="mdesc">
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>
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">
1066
<strong>Parameters:</strong>
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>
1071
<strong>Returns:</strong>
1073
<li><code>void</code></li>
1079
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#setXConstraint" href="output/Ext.dd.DragDrop.html#setXConstraint">DragDrop</a></td>
1081
<tr class="method-row inherited alt expandable">
1082
<td class="micon"><a class="exi" href="#expand"> </a></td>
1084
<a id="Ext.dd.DDTarget-setYConstraint"></a>
1085
<b>setYConstraint</b>( <code>int iUp</code>, <code>int iDown</code>, <code>int iTickSize</code> ) : void <div class="mdesc">
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>
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">
1092
<strong>Parameters:</strong>
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>
1095
<strong>Returns:</strong>
1097
<li><code>void</code></li>
1103
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#setYConstraint" href="output/Ext.dd.DragDrop.html#setYConstraint">DragDrop</a></td>
1105
<tr class="method-row inherited expandable">
1106
<td class="micon"><a class="exi" href="#expand"> </a></td>
1108
<a id="Ext.dd.DDTarget-startDrag"></a>
1109
<b>startDrag</b>( <code>int X</code>, <code>int Y</code> ) : void <div class="mdesc">
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>
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">
1115
<strong>Parameters:</strong>
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>
1117
<strong>Returns:</strong>
1119
<li><code>void</code></li>
1125
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#startDrag" href="output/Ext.dd.DragDrop.html#startDrag">DragDrop</a></td>
1127
<tr class="method-row inherited alt expandable">
1128
<td class="micon"><a class="exi" href="#expand"> </a></td>
1130
<a id="Ext.dd.DDTarget-toString"></a>
1131
<b>toString</b>() : string <div class="mdesc">
1132
<div class="short">toString method</div>
1134
toString method <div class="mdetail-params">
1135
<strong>Parameters:</strong>
1136
<ul><li>None.</li> </ul>
1137
<strong>Returns:</strong>
1139
<li><code>string</code><div class="sub-desc">string representation of the dd obj</div></li>
1145
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#toString" href="output/Ext.dd.DragDrop.html#toString">DragDrop</a></td>
1147
<tr class="method-row inherited expandable">
1148
<td class="micon"><a class="exi" href="#expand"> </a></td>
1150
<a id="Ext.dd.DDTarget-unlock"></a>
1151
<b>unlock</b>() : void <div class="mdesc">
1152
<div class="short">Unlock this instace</div>
1154
Unlock this instace <div class="mdetail-params">
1155
<strong>Parameters:</strong>
1156
<ul><li>None.</li> </ul>
1157
<strong>Returns:</strong>
1159
<li><code>void</code></li>
1165
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#unlock" href="output/Ext.dd.DragDrop.html#unlock">DragDrop</a></td>
1167
<tr class="method-row inherited alt expandable">
1168
<td class="micon"><a class="exi" href="#expand"> </a></td>
1170
<a id="Ext.dd.DDTarget-unreg"></a>
1171
<b>unreg</b>() : void <div class="mdesc">
1172
<div class="short">Remove all drag and drop hooks for this element</div>
1174
Remove all drag and drop hooks for this element <div class="mdetail-params">
1175
<strong>Parameters:</strong>
1176
<ul><li>None.</li> </ul>
1177
<strong>Returns:</strong>
1179
<li><code>void</code></li>
1185
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#unreg" href="output/Ext.dd.DragDrop.html#unreg">DragDrop</a></td>
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>