2 |
aperonnet |
1 |
<div class="body-wrap">
|
|
|
2 |
<div class="top-tools">
|
|
|
3 |
<a class="inner-link" href="#Ext.dd.DD-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
|
|
|
4 |
<a class="inner-link" href="#Ext.dd.DD-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
|
|
|
5 |
<a class="inner-link" href="#Ext.dd.DD-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
|
|
|
6 |
<a class="bookmark" href="../docs/?class=Ext.dd.DD"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
|
|
|
7 |
</div>
|
|
|
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"/>DD</pre></div>
|
|
|
11 |
<h1>Class Ext.dd.DD</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="../source/dd/DDCore.js" target="_blank">DDCore.js</a></td></tr>
|
|
|
15 |
<tr><td class="label">Class:</td><td class="hd-info">DD</td></tr>
|
|
|
16 |
<tr><td class="label">Subclasses:</td><td class="hd-info"><a ext:cls="Ext.dd.DDProxy" href="output/Ext.dd.DDProxy.html">DDProxy</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>
|
|
|
18 |
</table>
|
|
|
19 |
<div class="description">
|
|
|
20 |
A DragDrop implementation where the linked element follows the
|
|
|
21 |
mouse cursor during a drag. </div>
|
|
|
22 |
|
|
|
23 |
<div class="hr"></div>
|
|
|
24 |
<a id="Ext.dd.DD-props"></a>
|
|
|
25 |
<h2>Public Properties</h2>
|
|
|
26 |
<table cellspacing="0" class="member-table">
|
|
|
27 |
<tr>
|
|
|
28 |
<th class="sig-header" colspan="2">Property</th>
|
|
|
29 |
<th class="msource-header">Defined By</th>
|
|
|
30 |
</tr>
|
|
|
31 |
<tr class="property-row inherited">
|
|
|
32 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
33 |
<td class="sig">
|
|
|
34 |
<a id="Ext.dd.DD-available"></a>
|
|
|
35 |
<b>available</b> : boolean <div class="mdesc">
|
|
|
36 |
The availabe property is false until the linked dom element is accessible. </div>
|
|
|
37 |
</td>
|
|
|
38 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#available" href="output/Ext.dd.DragDrop.html#available">DragDrop</a></td>
|
|
|
39 |
</tr>
|
|
|
40 |
<tr class="property-row inherited alt">
|
|
|
41 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
42 |
<td class="sig">
|
|
|
43 |
<a id="Ext.dd.DD-config"></a>
|
|
|
44 |
<b>config</b> : object <div class="mdesc">
|
|
|
45 |
Configuration attributes passed into the constructor </div>
|
|
|
46 |
</td>
|
|
|
47 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#config" href="output/Ext.dd.DragDrop.html#config">DragDrop</a></td>
|
|
|
48 |
</tr>
|
|
|
49 |
<tr class="property-row inherited expandable">
|
|
|
50 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
51 |
<td class="sig">
|
|
|
52 |
<a id="Ext.dd.DD-groups"></a>
|
|
|
53 |
<b>groups</b> : object <div class="mdesc">
|
|
|
54 |
<div class="short">The group defines a logical collection of DragDrop objects that are
|
|
|
55 |
related. Instances only get events when interact...</div>
|
|
|
56 |
<div class="long">
|
|
|
57 |
The group defines a logical collection of DragDrop objects that are
|
|
|
58 |
related. Instances only get events when interacting with other
|
|
|
59 |
DragDrop object in the same group. This lets us define multiple
|
|
|
60 |
groups using a single DragDrop subclass if we want. </div>
|
|
|
61 |
</div>
|
|
|
62 |
</td>
|
|
|
63 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#groups" href="output/Ext.dd.DragDrop.html#groups">DragDrop</a></td>
|
|
|
64 |
</tr>
|
|
|
65 |
<tr class="property-row inherited alt expandable">
|
|
|
66 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
67 |
<td class="sig">
|
|
|
68 |
<a id="Ext.dd.DD-hasOuterHandles"></a>
|
|
|
69 |
<b>hasOuterHandles</b> : boolean <div class="mdesc">
|
|
|
70 |
<div class="short">By default, drags can only be initiated if the mousedown occurs in the
|
|
|
71 |
region the linked element is. This is done in...</div>
|
|
|
72 |
<div class="long">
|
|
|
73 |
By default, drags can only be initiated if the mousedown occurs in the
|
|
|
74 |
region the linked element is. This is done in part to work around a
|
|
|
75 |
bug in some browsers that mis-report the mousedown if the previous
|
|
|
76 |
mouseup happened outside of the window. This property is set to true
|
|
|
77 |
if outer handles are defined. </div>
|
|
|
78 |
</div>
|
|
|
79 |
</td>
|
|
|
80 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#hasOuterHandles" href="output/Ext.dd.DragDrop.html#hasOuterHandles">DragDrop</a></td>
|
|
|
81 |
</tr>
|
|
|
82 |
<tr class="property-row inherited expandable">
|
|
|
83 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
84 |
<td class="sig">
|
|
|
85 |
<a id="Ext.dd.DD-id"></a>
|
|
|
86 |
<b>id</b> : String <div class="mdesc">
|
|
|
87 |
<div class="short">The id of the element associated with this object. This is what we
|
|
|
88 |
refer to as the "linked element" because the size...</div>
|
|
|
89 |
<div class="long">
|
|
|
90 |
The id of the element associated with this object. This is what we
|
|
|
91 |
refer to as the "linked element" because the size and position of
|
|
|
92 |
this element is used to determine when the drag and drop objects have
|
|
|
93 |
interacted. </div>
|
|
|
94 |
</div>
|
|
|
95 |
</td>
|
|
|
96 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#id" href="output/Ext.dd.DragDrop.html#id">DragDrop</a></td>
|
|
|
97 |
</tr>
|
|
|
98 |
<tr class="property-row inherited alt">
|
|
|
99 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
100 |
<td class="sig">
|
|
|
101 |
<a id="Ext.dd.DD-invalidHandleClasses"></a>
|
|
|
102 |
<b>invalidHandleClasses</b> : string[] <div class="mdesc">
|
|
|
103 |
An indexted array of css class names for elements that will be ignored
|
|
|
104 |
if clicked. </div>
|
|
|
105 |
</td>
|
|
|
106 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#invalidHandleClasses" href="output/Ext.dd.DragDrop.html#invalidHandleClasses">DragDrop</a></td>
|
|
|
107 |
</tr>
|
|
|
108 |
<tr class="property-row inherited">
|
|
|
109 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
110 |
<td class="sig">
|
|
|
111 |
<a id="Ext.dd.DD-invalidHandleIds"></a>
|
|
|
112 |
<b>invalidHandleIds</b> : string: <div class="mdesc">
|
|
|
113 |
An associative array of ids for elements that will be ignored if clicked </div>
|
|
|
114 |
</td>
|
|
|
115 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#invalidHandleIds" href="output/Ext.dd.DragDrop.html#invalidHandleIds">DragDrop</a></td>
|
|
|
116 |
</tr>
|
|
|
117 |
<tr class="property-row inherited alt">
|
|
|
118 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
119 |
<td class="sig">
|
|
|
120 |
<a id="Ext.dd.DD-invalidHandleTypes"></a>
|
|
|
121 |
<b>invalidHandleTypes</b> : string: <div class="mdesc">
|
|
|
122 |
An associative array of HTML tags that will be ignored if clicked. </div>
|
|
|
123 |
</td>
|
|
|
124 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#invalidHandleTypes" href="output/Ext.dd.DragDrop.html#invalidHandleTypes">DragDrop</a></td>
|
|
|
125 |
</tr>
|
|
|
126 |
<tr class="property-row inherited">
|
|
|
127 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
128 |
<td class="sig">
|
|
|
129 |
<a id="Ext.dd.DD-isTarget"></a>
|
|
|
130 |
<b>isTarget</b> : boolean <div class="mdesc">
|
|
|
131 |
By default, all insances can be a drop target. This can be disabled by
|
|
|
132 |
setting isTarget to false. </div>
|
|
|
133 |
</td>
|
|
|
134 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#isTarget" href="output/Ext.dd.DragDrop.html#isTarget">DragDrop</a></td>
|
|
|
135 |
</tr>
|
|
|
136 |
<tr class="property-row inherited alt expandable">
|
|
|
137 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
138 |
<td class="sig">
|
|
|
139 |
<a id="Ext.dd.DD-maintainOffset"></a>
|
|
|
140 |
<b>maintainOffset</b> : boolean <div class="mdesc">
|
|
|
141 |
<div class="short">Maintain offsets when we resetconstraints. Set to true when you want
|
|
|
142 |
the position of the element relative to its par...</div>
|
|
|
143 |
<div class="long">
|
|
|
144 |
Maintain offsets when we resetconstraints. Set to true when you want
|
|
|
145 |
the position of the element relative to its parent to stay the same
|
|
|
146 |
when the page changes </div>
|
|
|
147 |
</div>
|
|
|
148 |
</td>
|
|
|
149 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#maintainOffset" href="output/Ext.dd.DragDrop.html#maintainOffset">DragDrop</a></td>
|
|
|
150 |
</tr>
|
|
|
151 |
<tr class="property-row inherited">
|
|
|
152 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
153 |
<td class="sig">
|
|
|
154 |
<a id="Ext.dd.DD-padding"></a>
|
|
|
155 |
<b>padding</b> : int[] <div class="mdesc">
|
|
|
156 |
The padding configured for this drag and drop object for calculating
|
|
|
157 |
the drop zone intersection with this object. </div>
|
|
|
158 |
</td>
|
|
|
159 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#padding" href="output/Ext.dd.DragDrop.html#padding">DragDrop</a></td>
|
|
|
160 |
</tr>
|
|
|
161 |
<tr class="property-row inherited alt expandable">
|
|
|
162 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
163 |
<td class="sig">
|
|
|
164 |
<a id="Ext.dd.DD-primaryButtonOnly"></a>
|
|
|
165 |
<b>primaryButtonOnly</b> : boolean <div class="mdesc">
|
|
|
166 |
<div class="short">By default the drag and drop instance will only respond to the primary
|
|
|
167 |
button click (left button for a right-handed m...</div>
|
|
|
168 |
<div class="long">
|
|
|
169 |
By default the drag and drop instance will only respond to the primary
|
|
|
170 |
button click (left button for a right-handed mouse). Set to true to
|
|
|
171 |
allow drag and drop to start with any mouse click that is propogated
|
|
|
172 |
by the browser </div>
|
|
|
173 |
</div>
|
|
|
174 |
</td>
|
|
|
175 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#primaryButtonOnly" href="output/Ext.dd.DragDrop.html#primaryButtonOnly">DragDrop</a></td>
|
|
|
176 |
</tr>
|
|
|
177 |
<tr class="property-row expandable">
|
|
|
178 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
179 |
<td class="sig">
|
|
|
180 |
<a id="Ext.dd.DD-scroll"></a>
|
|
|
181 |
<b>scroll</b> : boolean <div class="mdesc">
|
|
|
182 |
<div class="short">When set to true, the utility automatically tries to scroll the browser
|
|
|
183 |
window wehn a drag and drop element is dragge...</div>
|
|
|
184 |
<div class="long">
|
|
|
185 |
When set to true, the utility automatically tries to scroll the browser
|
|
|
186 |
window wehn a drag and drop element is dragged near the viewport boundary.
|
|
|
187 |
Defaults to true. </div>
|
|
|
188 |
</div>
|
|
|
189 |
</td>
|
|
|
190 |
<td class="msource">DD</td>
|
|
|
191 |
</tr>
|
|
|
192 |
<tr class="property-row inherited alt expandable">
|
|
|
193 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
194 |
<td class="sig">
|
|
|
195 |
<a id="Ext.dd.DD-xTicks"></a>
|
|
|
196 |
<b>xTicks</b> : int[] <div class="mdesc">
|
|
|
197 |
<div class="short">Array of pixel locations the element will snap to if we specified a
|
|
|
198 |
horizontal graduation/interval. This array is ge...</div>
|
|
|
199 |
<div class="long">
|
|
|
200 |
Array of pixel locations the element will snap to if we specified a
|
|
|
201 |
horizontal graduation/interval. This array is generated automatically
|
|
|
202 |
when you define a tick interval. </div>
|
|
|
203 |
</div>
|
|
|
204 |
</td>
|
|
|
205 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#xTicks" href="output/Ext.dd.DragDrop.html#xTicks">DragDrop</a></td>
|
|
|
206 |
</tr>
|
|
|
207 |
<tr class="property-row inherited expandable">
|
|
|
208 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
209 |
<td class="sig">
|
|
|
210 |
<a id="Ext.dd.DD-yTicks"></a>
|
|
|
211 |
<b>yTicks</b> : int[] <div class="mdesc">
|
|
|
212 |
<div class="short">Array of pixel locations the element will snap to if we specified a
|
|
|
213 |
vertical graduation/interval. This array is gene...</div>
|
|
|
214 |
<div class="long">
|
|
|
215 |
Array of pixel locations the element will snap to if we specified a
|
|
|
216 |
vertical graduation/interval. This array is generated automatically
|
|
|
217 |
when you define a tick interval. </div>
|
|
|
218 |
</div>
|
|
|
219 |
</td>
|
|
|
220 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#yTicks" href="output/Ext.dd.DragDrop.html#yTicks">DragDrop</a></td>
|
|
|
221 |
</tr>
|
|
|
222 |
</table>
|
|
|
223 |
<a id="Ext.dd.DD-methods"></a>
|
|
|
224 |
<h2>Public Methods</h2>
|
|
|
225 |
<table cellspacing="0" class="member-table">
|
|
|
226 |
<tr>
|
|
|
227 |
<th class="sig-header" colspan="2">Method</th>
|
|
|
228 |
<th class="msource-header">Defined By</th>
|
|
|
229 |
</tr>
|
|
|
230 |
<tr class="method-row expandable">
|
|
|
231 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
232 |
<td class="sig">
|
|
|
233 |
<a id="Ext.dd.DD-DD"></a>
|
|
|
234 |
<b>DD</b>( <code>String id</code>, <code>String sGroup</code>, <code>object config</code> ) <div class="mdesc">
|
|
|
235 |
<div class="short"></div>
|
|
|
236 |
<div class="long">
|
|
|
237 |
<div class="mdetail-params">
|
|
|
238 |
<strong>Parameters:</strong>
|
|
|
239 |
<ul><li><code>id</code> : String<div class="sub-desc">the id of the linked element</div></li><li><code>sGroup</code> : String<div class="sub-desc">the group of related DragDrop items</div></li><li><code>config</code> : object<div class="sub-desc">an object containing configurable attributes
|
|
|
240 |
Valid properties for DD:
|
|
|
241 |
scroll</div></li> </ul>
|
|
|
242 |
<strong>Returns:</strong>
|
|
|
243 |
<ul>
|
|
|
244 |
<li><code></code></li>
|
|
|
245 |
</ul>
|
|
|
246 |
</div>
|
|
|
247 |
</div>
|
|
|
248 |
</div>
|
|
|
249 |
</td>
|
|
|
250 |
<td class="msource">DD</td>
|
|
|
251 |
</tr>
|
|
|
252 |
<tr class="method-row inherited alt expandable">
|
|
|
253 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
254 |
<td class="sig">
|
|
|
255 |
<a id="Ext.dd.DD-addInvalidHandleClass"></a>
|
|
|
256 |
<b>addInvalidHandleClass</b>( <code>string cssClass</code> ) : void <div class="mdesc">
|
|
|
257 |
<div class="short">Lets you specify a css class of elements that will not initiate a drag</div>
|
|
|
258 |
<div class="long">
|
|
|
259 |
Lets you specify a css class of elements that will not initiate a drag <div class="mdetail-params">
|
|
|
260 |
<strong>Parameters:</strong>
|
|
|
261 |
<ul><li><code>cssClass</code> : string<div class="sub-desc">the class of the elements you wish to ignore</div></li> </ul>
|
|
|
262 |
<strong>Returns:</strong>
|
|
|
263 |
<ul>
|
|
|
264 |
<li><code>void</code></li>
|
|
|
265 |
</ul>
|
|
|
266 |
</div>
|
|
|
267 |
</div>
|
|
|
268 |
</div>
|
|
|
269 |
</td>
|
|
|
270 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#addInvalidHandleClass" href="output/Ext.dd.DragDrop.html#addInvalidHandleClass">DragDrop</a></td>
|
|
|
271 |
</tr>
|
|
|
272 |
<tr class="method-row inherited expandable">
|
|
|
273 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
274 |
<td class="sig">
|
|
|
275 |
<a id="Ext.dd.DD-addInvalidHandleId"></a>
|
|
|
276 |
<b>addInvalidHandleId</b>( <code>string id</code> ) : void <div class="mdesc">
|
|
|
277 |
<div class="short">Lets you to specify an element id for a child of a drag handle
|
|
|
278 |
that should not initiate a drag</div>
|
|
|
279 |
<div class="long">
|
|
|
280 |
Lets you to specify an element id for a child of a drag handle
|
|
|
281 |
that should not initiate a drag <div class="mdetail-params">
|
|
|
282 |
<strong>Parameters:</strong>
|
|
|
283 |
<ul><li><code>id</code> : string<div class="sub-desc">the element id of the element you wish to ignore</div></li> </ul>
|
|
|
284 |
<strong>Returns:</strong>
|
|
|
285 |
<ul>
|
|
|
286 |
<li><code>void</code></li>
|
|
|
287 |
</ul>
|
|
|
288 |
</div>
|
|
|
289 |
</div>
|
|
|
290 |
</div>
|
|
|
291 |
</td>
|
|
|
292 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#addInvalidHandleId" href="output/Ext.dd.DragDrop.html#addInvalidHandleId">DragDrop</a></td>
|
|
|
293 |
</tr>
|
|
|
294 |
<tr class="method-row inherited alt expandable">
|
|
|
295 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
296 |
<td class="sig">
|
|
|
297 |
<a id="Ext.dd.DD-addInvalidHandleType"></a>
|
|
|
298 |
<b>addInvalidHandleType</b>( <code>string tagName</code> ) : void <div class="mdesc">
|
|
|
299 |
<div class="short">Allows you to specify a tag name that should not start a drag operation
|
|
|
300 |
when clicked. This is designed to facilitate...</div>
|
|
|
301 |
<div class="long">
|
|
|
302 |
Allows you to specify a tag name that should not start a drag operation
|
|
|
303 |
when clicked. This is designed to facilitate embedding links within a
|
|
|
304 |
drag handle that do something other than start the drag. <div class="mdetail-params">
|
|
|
305 |
<strong>Parameters:</strong>
|
|
|
306 |
<ul><li><code>tagName</code> : string<div class="sub-desc">the type of element to exclude</div></li> </ul>
|
|
|
307 |
<strong>Returns:</strong>
|
|
|
308 |
<ul>
|
|
|
309 |
<li><code>void</code></li>
|
|
|
310 |
</ul>
|
|
|
311 |
</div>
|
|
|
312 |
</div>
|
|
|
313 |
</div>
|
|
|
314 |
</td>
|
|
|
315 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#addInvalidHandleType" href="output/Ext.dd.DragDrop.html#addInvalidHandleType">DragDrop</a></td>
|
|
|
316 |
</tr>
|
|
|
317 |
<tr class="method-row inherited expandable">
|
|
|
318 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
319 |
<td class="sig">
|
|
|
320 |
<a id="Ext.dd.DD-addToGroup"></a>
|
|
|
321 |
<b>addToGroup</b>( <code>sGroup {string}</code> ) : void <div class="mdesc">
|
|
|
322 |
<div class="short">Add this instance to a group of related drag/drop objects. All
|
|
|
323 |
instances belong to at least one group, and can belon...</div>
|
|
|
324 |
<div class="long">
|
|
|
325 |
Add this instance to a group of related drag/drop objects. All
|
|
|
326 |
instances belong to at least one group, and can belong to as many
|
|
|
327 |
groups as needed. <div class="mdetail-params">
|
|
|
328 |
<strong>Parameters:</strong>
|
|
|
329 |
<ul><li><code>{string}</code> : sGroup<div class="sub-desc">the name of the group</div></li> </ul>
|
|
|
330 |
<strong>Returns:</strong>
|
|
|
331 |
<ul>
|
|
|
332 |
<li><code>void</code></li>
|
|
|
333 |
</ul>
|
|
|
334 |
</div>
|
|
|
335 |
</div>
|
|
|
336 |
</div>
|
|
|
337 |
</td>
|
|
|
338 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#addToGroup" href="output/Ext.dd.DragDrop.html#addToGroup">DragDrop</a></td>
|
|
|
339 |
</tr>
|
|
|
340 |
<tr class="method-row alt expandable">
|
|
|
341 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
342 |
<td class="sig">
|
|
|
343 |
<a id="Ext.dd.DD-alignElWithMouse"></a>
|
|
|
344 |
<b>alignElWithMouse</b>( <code>HTMLElement el</code>, <code>int iPageX</code>, <code>int iPageY</code> ) : void <div class="mdesc">
|
|
|
345 |
<div class="short">Sets the element to the location of the mousedown or click event,
|
|
|
346 |
maintaining the cursor location relative to the loc...</div>
|
|
|
347 |
<div class="long">
|
|
|
348 |
Sets the element to the location of the mousedown or click event,
|
|
|
349 |
maintaining the cursor location relative to the location on the element
|
|
|
350 |
that was clicked. Override this if you want to place the element in a
|
|
|
351 |
location other than where the cursor is. <div class="mdetail-params">
|
|
|
352 |
<strong>Parameters:</strong>
|
|
|
353 |
<ul><li><code>el</code> : HTMLElement<div class="sub-desc">the element to move</div></li><li><code>iPageX</code> : int<div class="sub-desc">the X coordinate of the mousedown or drag event</div></li><li><code>iPageY</code> : int<div class="sub-desc">the Y coordinate of the mousedown or drag event</div></li> </ul>
|
|
|
354 |
<strong>Returns:</strong>
|
|
|
355 |
<ul>
|
|
|
356 |
<li><code>void</code></li>
|
|
|
357 |
</ul>
|
|
|
358 |
</div>
|
|
|
359 |
</div>
|
|
|
360 |
</div>
|
|
|
361 |
</td>
|
|
|
362 |
<td class="msource">DD</td>
|
|
|
363 |
</tr>
|
|
|
364 |
<tr class="method-row inherited expandable">
|
|
|
365 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
366 |
<td class="sig">
|
|
|
367 |
<a id="Ext.dd.DD-applyConfig"></a>
|
|
|
368 |
<b>applyConfig</b>() : void <div class="mdesc">
|
|
|
369 |
<div class="short">Applies the configuration parameters that were passed into the constructor.
|
|
|
370 |
This is supposed to happen at each level ...</div>
|
|
|
371 |
<div class="long">
|
|
|
372 |
Applies the configuration parameters that were passed into the constructor.
|
|
|
373 |
This is supposed to happen at each level through the inheritance chain. So
|
|
|
374 |
a DDProxy implentation will execute apply config on DDProxy, DD, and
|
|
|
375 |
DragDrop in order to get all of the parameters that are available in
|
|
|
376 |
each object. <div class="mdetail-params">
|
|
|
377 |
<strong>Parameters:</strong>
|
|
|
378 |
<ul><li>None.</li> </ul>
|
|
|
379 |
<strong>Returns:</strong>
|
|
|
380 |
<ul>
|
|
|
381 |
<li><code>void</code></li>
|
|
|
382 |
</ul>
|
|
|
383 |
</div>
|
|
|
384 |
</div>
|
|
|
385 |
</div>
|
|
|
386 |
</td>
|
|
|
387 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#applyConfig" href="output/Ext.dd.DragDrop.html#applyConfig">DragDrop</a></td>
|
|
|
388 |
</tr>
|
|
|
389 |
<tr class="method-row alt expandable">
|
|
|
390 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
391 |
<td class="sig">
|
|
|
392 |
<a id="Ext.dd.DD-autoOffset"></a>
|
|
|
393 |
<b>autoOffset</b>( <code>int iPageX</code>, <code>int iPageY</code> ) : void <div class="mdesc">
|
|
|
394 |
<div class="short">Sets the pointer offset to the distance between the linked element's top
|
|
|
395 |
left corner and the location the element was...</div>
|
|
|
396 |
<div class="long">
|
|
|
397 |
Sets the pointer offset to the distance between the linked element's top
|
|
|
398 |
left corner and the location the element was clicked <div class="mdetail-params">
|
|
|
399 |
<strong>Parameters:</strong>
|
|
|
400 |
<ul><li><code>iPageX</code> : int<div class="sub-desc">the X coordinate of the click</div></li><li><code>iPageY</code> : int<div class="sub-desc">the Y coordinate of the click</div></li> </ul>
|
|
|
401 |
<strong>Returns:</strong>
|
|
|
402 |
<ul>
|
|
|
403 |
<li><code>void</code></li>
|
|
|
404 |
</ul>
|
|
|
405 |
</div>
|
|
|
406 |
</div>
|
|
|
407 |
</div>
|
|
|
408 |
</td>
|
|
|
409 |
<td class="msource">DD</td>
|
|
|
410 |
</tr>
|
|
|
411 |
<tr class="method-row expandable">
|
|
|
412 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
413 |
<td class="sig">
|
|
|
414 |
<a id="Ext.dd.DD-cachePosition"></a>
|
|
|
415 |
<b>cachePosition</b>( <code>iPageX the</code>, <code>iPageY the</code> ) : void <div class="mdesc">
|
|
|
416 |
<div class="short">Saves the most recent position so that we can reset the constraints and
|
|
|
417 |
tick marks on-demand. We need to know this s...</div>
|
|
|
418 |
<div class="long">
|
|
|
419 |
Saves the most recent position so that we can reset the constraints and
|
|
|
420 |
tick marks on-demand. We need to know this so that we can calculate the
|
|
|
421 |
number of pixels the element is offset from its original position. <div class="mdetail-params">
|
|
|
422 |
<strong>Parameters:</strong>
|
|
|
423 |
<ul><li><code>the</code> : iPageX<div class="sub-desc">current x position (optional, this just makes it so we
|
|
|
424 |
don't have to look it up again)</div></li><li><code>the</code> : iPageY<div class="sub-desc">current y position (optional, this just makes it so we
|
|
|
425 |
don't have to look it up again)</div></li> </ul>
|
|
|
426 |
<strong>Returns:</strong>
|
|
|
427 |
<ul>
|
|
|
428 |
<li><code>void</code></li>
|
|
|
429 |
</ul>
|
|
|
430 |
</div>
|
|
|
431 |
</div>
|
|
|
432 |
</div>
|
|
|
433 |
</td>
|
|
|
434 |
<td class="msource">DD</td>
|
|
|
435 |
</tr>
|
|
|
436 |
<tr class="method-row inherited alt expandable">
|
|
|
437 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
438 |
<td class="sig">
|
|
|
439 |
<a id="Ext.dd.DD-clearConstraints"></a>
|
|
|
440 |
<b>clearConstraints</b>() : void <div class="mdesc">
|
|
|
441 |
<div class="short">Clears any constraints applied to this instance. Also clears ticks
|
|
|
442 |
since they can't exist independent of a constrain...</div>
|
|
|
443 |
<div class="long">
|
|
|
444 |
Clears any constraints applied to this instance. Also clears ticks
|
|
|
445 |
since they can't exist independent of a constraint at this time. <div class="mdetail-params">
|
|
|
446 |
<strong>Parameters:</strong>
|
|
|
447 |
<ul><li>None.</li> </ul>
|
|
|
448 |
<strong>Returns:</strong>
|
|
|
449 |
<ul>
|
|
|
450 |
<li><code>void</code></li>
|
|
|
451 |
</ul>
|
|
|
452 |
</div>
|
|
|
453 |
</div>
|
|
|
454 |
</div>
|
|
|
455 |
</td>
|
|
|
456 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#clearConstraints" href="output/Ext.dd.DragDrop.html#clearConstraints">DragDrop</a></td>
|
|
|
457 |
</tr>
|
|
|
458 |
<tr class="method-row inherited expandable">
|
|
|
459 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
460 |
<td class="sig">
|
|
|
461 |
<a id="Ext.dd.DD-clearTicks"></a>
|
|
|
462 |
<b>clearTicks</b>() : void <div class="mdesc">
|
|
|
463 |
<div class="short">Clears any tick interval defined for this instance</div>
|
|
|
464 |
<div class="long">
|
|
|
465 |
Clears any tick interval defined for this instance <div class="mdetail-params">
|
|
|
466 |
<strong>Parameters:</strong>
|
|
|
467 |
<ul><li>None.</li> </ul>
|
|
|
468 |
<strong>Returns:</strong>
|
|
|
469 |
<ul>
|
|
|
470 |
<li><code>void</code></li>
|
|
|
471 |
</ul>
|
|
|
472 |
</div>
|
|
|
473 |
</div>
|
|
|
474 |
</div>
|
|
|
475 |
</td>
|
|
|
476 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#clearTicks" href="output/Ext.dd.DragDrop.html#clearTicks">DragDrop</a></td>
|
|
|
477 |
</tr>
|
|
|
478 |
<tr class="method-row inherited alt expandable">
|
|
|
479 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
480 |
<td class="sig">
|
|
|
481 |
<a id="Ext.dd.DD-endDrag"></a>
|
|
|
482 |
<b>endDrag</b>( <code>Event e</code> ) : void <div class="mdesc">
|
|
|
483 |
<div class="short">Fired when we are done dragging the object</div>
|
|
|
484 |
<div class="long">
|
|
|
485 |
Fired when we are done dragging the object <div class="mdetail-params">
|
|
|
486 |
<strong>Parameters:</strong>
|
|
|
487 |
<ul><li><code>e</code> : Event<div class="sub-desc">the mouseup event</div></li> </ul>
|
|
|
488 |
<strong>Returns:</strong>
|
|
|
489 |
<ul>
|
|
|
490 |
<li><code>void</code></li>
|
|
|
491 |
</ul>
|
|
|
492 |
</div>
|
|
|
493 |
</div>
|
|
|
494 |
</div>
|
|
|
495 |
</td>
|
|
|
496 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#endDrag" href="output/Ext.dd.DragDrop.html#endDrag">DragDrop</a></td>
|
|
|
497 |
</tr>
|
|
|
498 |
<tr class="method-row inherited expandable">
|
|
|
499 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
500 |
<td class="sig">
|
|
|
501 |
<a id="Ext.dd.DD-getDragEl"></a>
|
|
|
502 |
<b>getDragEl</b>() : HTMLElement <div class="mdesc">
|
|
|
503 |
<div class="short">Returns a reference to the actual element to drag. By default this is
|
|
|
504 |
the same as the html element, but it can be as...</div>
|
|
|
505 |
<div class="long">
|
|
|
506 |
Returns a reference to the actual element to drag. By default this is
|
|
|
507 |
the same as the html element, but it can be assigned to another
|
|
|
508 |
element. An example of this can be found in Ext.dd.DDProxy <div class="mdetail-params">
|
|
|
509 |
<strong>Parameters:</strong>
|
|
|
510 |
<ul><li>None.</li> </ul>
|
|
|
511 |
<strong>Returns:</strong>
|
|
|
512 |
<ul>
|
|
|
513 |
<li><code>HTMLElement</code><div class="sub-desc">the html element</div></li>
|
|
|
514 |
</ul>
|
|
|
515 |
</div>
|
|
|
516 |
</div>
|
|
|
517 |
</div>
|
|
|
518 |
</td>
|
|
|
519 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#getDragEl" href="output/Ext.dd.DragDrop.html#getDragEl">DragDrop</a></td>
|
|
|
520 |
</tr>
|
|
|
521 |
<tr class="method-row inherited alt expandable">
|
|
|
522 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
523 |
<td class="sig">
|
|
|
524 |
<a id="Ext.dd.DD-getEl"></a>
|
|
|
525 |
<b>getEl</b>() : HTMLElement <div class="mdesc">
|
|
|
526 |
<div class="short">Returns a reference to the linked element</div>
|
|
|
527 |
<div class="long">
|
|
|
528 |
Returns a reference to the linked element <div class="mdetail-params">
|
|
|
529 |
<strong>Parameters:</strong>
|
|
|
530 |
<ul><li>None.</li> </ul>
|
|
|
531 |
<strong>Returns:</strong>
|
|
|
532 |
<ul>
|
|
|
533 |
<li><code>HTMLElement</code><div class="sub-desc">the html element</div></li>
|
|
|
534 |
</ul>
|
|
|
535 |
</div>
|
|
|
536 |
</div>
|
|
|
537 |
</div>
|
|
|
538 |
</td>
|
|
|
539 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#getEl" href="output/Ext.dd.DragDrop.html#getEl">DragDrop</a></td>
|
|
|
540 |
</tr>
|
|
|
541 |
<tr class="method-row inherited expandable">
|
|
|
542 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
543 |
<td class="sig">
|
|
|
544 |
<a id="Ext.dd.DD-init"></a>
|
|
|
545 |
<b>init</b>( <code>id the</code>, <code>String sGroup</code>, <code>object config</code> ) : void <div class="mdesc">
|
|
|
546 |
<div class="short">Sets up the DragDrop object. Must be called in the constructor of any
|
|
|
547 |
Ext.dd.DragDrop subclass</div>
|
|
|
548 |
<div class="long">
|
|
|
549 |
Sets up the DragDrop object. Must be called in the constructor of any
|
|
|
550 |
Ext.dd.DragDrop subclass <div class="mdetail-params">
|
|
|
551 |
<strong>Parameters:</strong>
|
|
|
552 |
<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>
|
|
|
553 |
<strong>Returns:</strong>
|
|
|
554 |
<ul>
|
|
|
555 |
<li><code>void</code></li>
|
|
|
556 |
</ul>
|
|
|
557 |
</div>
|
|
|
558 |
</div>
|
|
|
559 |
</div>
|
|
|
560 |
</td>
|
|
|
561 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#init" href="output/Ext.dd.DragDrop.html#init">DragDrop</a></td>
|
|
|
562 |
</tr>
|
|
|
563 |
<tr class="method-row inherited alt expandable">
|
|
|
564 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
565 |
<td class="sig">
|
|
|
566 |
<a id="Ext.dd.DD-initTarget"></a>
|
|
|
567 |
<b>initTarget</b>( <code>id the</code>, <code>String sGroup</code>, <code>object config</code> ) : void <div class="mdesc">
|
|
|
568 |
<div class="short">Initializes Targeting functionality only... the object does not
|
|
|
569 |
get a mousedown handler.</div>
|
|
|
570 |
<div class="long">
|
|
|
571 |
Initializes Targeting functionality only... the object does not
|
|
|
572 |
get a mousedown handler. <div class="mdetail-params">
|
|
|
573 |
<strong>Parameters:</strong>
|
|
|
574 |
<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>
|
|
|
575 |
<strong>Returns:</strong>
|
|
|
576 |
<ul>
|
|
|
577 |
<li><code>void</code></li>
|
|
|
578 |
</ul>
|
|
|
579 |
</div>
|
|
|
580 |
</div>
|
|
|
581 |
</div>
|
|
|
582 |
</td>
|
|
|
583 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#initTarget" href="output/Ext.dd.DragDrop.html#initTarget">DragDrop</a></td>
|
|
|
584 |
</tr>
|
|
|
585 |
<tr class="method-row inherited expandable">
|
|
|
586 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
587 |
<td class="sig">
|
|
|
588 |
<a id="Ext.dd.DD-isLocked"></a>
|
|
|
589 |
<b>isLocked</b>() : boolean <div class="mdesc">
|
|
|
590 |
<div class="short">Returns true if this instance is locked, or the drag drop mgr is locked
|
|
|
591 |
(meaning that all drag/drop is disabled on th...</div>
|
|
|
592 |
<div class="long">
|
|
|
593 |
Returns true if this instance is locked, or the drag drop mgr is locked
|
|
|
594 |
(meaning that all drag/drop is disabled on the page.) <div class="mdetail-params">
|
|
|
595 |
<strong>Parameters:</strong>
|
|
|
596 |
<ul><li>None.</li> </ul>
|
|
|
597 |
<strong>Returns:</strong>
|
|
|
598 |
<ul>
|
|
|
599 |
<li><code>boolean</code><div class="sub-desc">true if this obj or all drag/drop is locked, else false</div></li>
|
|
|
600 |
</ul>
|
|
|
601 |
</div>
|
|
|
602 |
</div>
|
|
|
603 |
</div>
|
|
|
604 |
</td>
|
|
|
605 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#isLocked" href="output/Ext.dd.DragDrop.html#isLocked">DragDrop</a></td>
|
|
|
606 |
</tr>
|
|
|
607 |
<tr class="method-row inherited alt expandable">
|
|
|
608 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
609 |
<td class="sig">
|
|
|
610 |
<a id="Ext.dd.DD-isValidHandleChild"></a>
|
|
|
611 |
<b>isValidHandleChild</b>( <code>HTMLElement node</code> ) : boolean <div class="mdesc">
|
|
|
612 |
<div class="short">Checks the tag exclusion list to see if this click should be ignored</div>
|
|
|
613 |
<div class="long">
|
|
|
614 |
Checks the tag exclusion list to see if this click should be ignored <div class="mdetail-params">
|
|
|
615 |
<strong>Parameters:</strong>
|
|
|
616 |
<ul><li><code>node</code> : HTMLElement<div class="sub-desc">the HTMLElement to evaluate</div></li> </ul>
|
|
|
617 |
<strong>Returns:</strong>
|
|
|
618 |
<ul>
|
|
|
619 |
<li><code>boolean</code><div class="sub-desc">true if this is a valid tag type, false if not</div></li>
|
|
|
620 |
</ul>
|
|
|
621 |
</div>
|
|
|
622 |
</div>
|
|
|
623 |
</div>
|
|
|
624 |
</td>
|
|
|
625 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#isValidHandleChild" href="output/Ext.dd.DragDrop.html#isValidHandleChild">DragDrop</a></td>
|
|
|
626 |
</tr>
|
|
|
627 |
<tr class="method-row inherited expandable">
|
|
|
628 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
629 |
<td class="sig">
|
|
|
630 |
<a id="Ext.dd.DD-lock"></a>
|
|
|
631 |
<b>lock</b>() : void <div class="mdesc">
|
|
|
632 |
<div class="short">Lock this instance</div>
|
|
|
633 |
<div class="long">
|
|
|
634 |
Lock this instance <div class="mdetail-params">
|
|
|
635 |
<strong>Parameters:</strong>
|
|
|
636 |
<ul><li>None.</li> </ul>
|
|
|
637 |
<strong>Returns:</strong>
|
|
|
638 |
<ul>
|
|
|
639 |
<li><code>void</code></li>
|
|
|
640 |
</ul>
|
|
|
641 |
</div>
|
|
|
642 |
</div>
|
|
|
643 |
</div>
|
|
|
644 |
</td>
|
|
|
645 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#lock" href="output/Ext.dd.DragDrop.html#lock">DragDrop</a></td>
|
|
|
646 |
</tr>
|
|
|
647 |
<tr class="method-row inherited alt expandable">
|
|
|
648 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
649 |
<td class="sig">
|
|
|
650 |
<a id="Ext.dd.DD-onAvailable"></a>
|
|
|
651 |
<b>onAvailable</b>() : void <div class="mdesc">
|
|
|
652 |
<div class="short">Override the onAvailable method to do what is needed after the initial
|
|
|
653 |
position was determined.</div>
|
|
|
654 |
<div class="long">
|
|
|
655 |
Override the onAvailable method to do what is needed after the initial
|
|
|
656 |
position was determined. <div class="mdetail-params">
|
|
|
657 |
<strong>Parameters:</strong>
|
|
|
658 |
<ul><li>None.</li> </ul>
|
|
|
659 |
<strong>Returns:</strong>
|
|
|
660 |
<ul>
|
|
|
661 |
<li><code>void</code></li>
|
|
|
662 |
</ul>
|
|
|
663 |
</div>
|
|
|
664 |
</div>
|
|
|
665 |
</div>
|
|
|
666 |
</td>
|
|
|
667 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onAvailable" href="output/Ext.dd.DragDrop.html#onAvailable">DragDrop</a></td>
|
|
|
668 |
</tr>
|
|
|
669 |
<tr class="method-row inherited expandable">
|
|
|
670 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
671 |
<td class="sig">
|
|
|
672 |
<a id="Ext.dd.DD-onDrag"></a>
|
|
|
673 |
<b>onDrag</b>( <code>Event e</code> ) : void <div class="mdesc">
|
|
|
674 |
<div class="short">Abstract method called during the onMouseMove event while dragging an
|
|
|
675 |
object.</div>
|
|
|
676 |
<div class="long">
|
|
|
677 |
Abstract method called during the onMouseMove event while dragging an
|
|
|
678 |
object. <div class="mdetail-params">
|
|
|
679 |
<strong>Parameters:</strong>
|
|
|
680 |
<ul><li><code>e</code> : Event<div class="sub-desc">the mousemove event</div></li> </ul>
|
|
|
681 |
<strong>Returns:</strong>
|
|
|
682 |
<ul>
|
|
|
683 |
<li><code>void</code></li>
|
|
|
684 |
</ul>
|
|
|
685 |
</div>
|
|
|
686 |
</div>
|
|
|
687 |
</div>
|
|
|
688 |
</td>
|
|
|
689 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onDrag" href="output/Ext.dd.DragDrop.html#onDrag">DragDrop</a></td>
|
|
|
690 |
</tr>
|
|
|
691 |
<tr class="method-row inherited alt expandable">
|
|
|
692 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
693 |
<td class="sig">
|
|
|
694 |
<a id="Ext.dd.DD-onDragDrop"></a>
|
|
|
695 |
<b>onDragDrop</b>( <code>Event e</code>, <code>String|DragDrop[] id</code> ) : void <div class="mdesc">
|
|
|
696 |
<div class="short">Abstract method called when this item is dropped on another DragDrop
|
|
|
697 |
obj</div>
|
|
|
698 |
<div class="long">
|
|
|
699 |
Abstract method called when this item is dropped on another DragDrop
|
|
|
700 |
obj <div class="mdetail-params">
|
|
|
701 |
<strong>Parameters:</strong>
|
|
|
702 |
<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
|
|
|
703 |
id this was dropped on. In INTERSECT mode, an array of dd items this
|
|
|
704 |
was dropped on.</div></li> </ul>
|
|
|
705 |
<strong>Returns:</strong>
|
|
|
706 |
<ul>
|
|
|
707 |
<li><code>void</code></li>
|
|
|
708 |
</ul>
|
|
|
709 |
</div>
|
|
|
710 |
</div>
|
|
|
711 |
</div>
|
|
|
712 |
</td>
|
|
|
713 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onDragDrop" href="output/Ext.dd.DragDrop.html#onDragDrop">DragDrop</a></td>
|
|
|
714 |
</tr>
|
|
|
715 |
<tr class="method-row inherited expandable">
|
|
|
716 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
717 |
<td class="sig">
|
|
|
718 |
<a id="Ext.dd.DD-onDragEnter"></a>
|
|
|
719 |
<b>onDragEnter</b>( <code>Event e</code>, <code>String|DragDrop[] id</code> ) : void <div class="mdesc">
|
|
|
720 |
<div class="short">Abstract method called when this element fist begins hovering over
|
|
|
721 |
another DragDrop obj</div>
|
|
|
722 |
<div class="long">
|
|
|
723 |
Abstract method called when this element fist begins hovering over
|
|
|
724 |
another DragDrop obj <div class="mdetail-params">
|
|
|
725 |
<strong>Parameters:</strong>
|
|
|
726 |
<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
|
|
|
727 |
id this is hovering over. In INTERSECT mode, an array of one or more
|
|
|
728 |
dragdrop items being hovered over.</div></li> </ul>
|
|
|
729 |
<strong>Returns:</strong>
|
|
|
730 |
<ul>
|
|
|
731 |
<li><code>void</code></li>
|
|
|
732 |
</ul>
|
|
|
733 |
</div>
|
|
|
734 |
</div>
|
|
|
735 |
</div>
|
|
|
736 |
</td>
|
|
|
737 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onDragEnter" href="output/Ext.dd.DragDrop.html#onDragEnter">DragDrop</a></td>
|
|
|
738 |
</tr>
|
|
|
739 |
<tr class="method-row inherited alt expandable">
|
|
|
740 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
741 |
<td class="sig">
|
|
|
742 |
<a id="Ext.dd.DD-onDragOut"></a>
|
|
|
743 |
<b>onDragOut</b>( <code>Event e</code>, <code>String|DragDrop[] id</code> ) : void <div class="mdesc">
|
|
|
744 |
<div class="short">Abstract method called when we are no longer hovering over an element</div>
|
|
|
745 |
<div class="long">
|
|
|
746 |
Abstract method called when we are no longer hovering over an element <div class="mdetail-params">
|
|
|
747 |
<strong>Parameters:</strong>
|
|
|
748 |
<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
|
|
|
749 |
id this was hovering over. In INTERSECT mode, an array of dd items
|
|
|
750 |
that the mouse is no longer over.</div></li> </ul>
|
|
|
751 |
<strong>Returns:</strong>
|
|
|
752 |
<ul>
|
|
|
753 |
<li><code>void</code></li>
|
|
|
754 |
</ul>
|
|
|
755 |
</div>
|
|
|
756 |
</div>
|
|
|
757 |
</div>
|
|
|
758 |
</td>
|
|
|
759 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onDragOut" href="output/Ext.dd.DragDrop.html#onDragOut">DragDrop</a></td>
|
|
|
760 |
</tr>
|
|
|
761 |
<tr class="method-row inherited expandable">
|
|
|
762 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
763 |
<td class="sig">
|
|
|
764 |
<a id="Ext.dd.DD-onDragOver"></a>
|
|
|
765 |
<b>onDragOver</b>( <code>Event e</code>, <code>String|DragDrop[] id</code> ) : void <div class="mdesc">
|
|
|
766 |
<div class="short">Abstract method called when this element is hovering over another
|
|
|
767 |
DragDrop obj</div>
|
|
|
768 |
<div class="long">
|
|
|
769 |
Abstract method called when this element is hovering over another
|
|
|
770 |
DragDrop obj <div class="mdetail-params">
|
|
|
771 |
<strong>Parameters:</strong>
|
|
|
772 |
<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
|
|
|
773 |
id this is hovering over. In INTERSECT mode, an array of dd items
|
|
|
774 |
being hovered over.</div></li> </ul>
|
|
|
775 |
<strong>Returns:</strong>
|
|
|
776 |
<ul>
|
|
|
777 |
<li><code>void</code></li>
|
|
|
778 |
</ul>
|
|
|
779 |
</div>
|
|
|
780 |
</div>
|
|
|
781 |
</div>
|
|
|
782 |
</td>
|
|
|
783 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onDragOver" href="output/Ext.dd.DragDrop.html#onDragOver">DragDrop</a></td>
|
|
|
784 |
</tr>
|
|
|
785 |
<tr class="method-row inherited alt expandable">
|
|
|
786 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
787 |
<td class="sig">
|
|
|
788 |
<a id="Ext.dd.DD-onInvalidDrop"></a>
|
|
|
789 |
<b>onInvalidDrop</b>( <code>Event e</code> ) : void <div class="mdesc">
|
|
|
790 |
<div class="short">Abstract method called when this item is dropped on an area with no
|
|
|
791 |
drop target</div>
|
|
|
792 |
<div class="long">
|
|
|
793 |
Abstract method called when this item is dropped on an area with no
|
|
|
794 |
drop target <div class="mdetail-params">
|
|
|
795 |
<strong>Parameters:</strong>
|
|
|
796 |
<ul><li><code>e</code> : Event<div class="sub-desc">the mouseup event</div></li> </ul>
|
|
|
797 |
<strong>Returns:</strong>
|
|
|
798 |
<ul>
|
|
|
799 |
<li><code>void</code></li>
|
|
|
800 |
</ul>
|
|
|
801 |
</div>
|
|
|
802 |
</div>
|
|
|
803 |
</div>
|
|
|
804 |
</td>
|
|
|
805 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onInvalidDrop" href="output/Ext.dd.DragDrop.html#onInvalidDrop">DragDrop</a></td>
|
|
|
806 |
</tr>
|
|
|
807 |
<tr class="method-row inherited expandable">
|
|
|
808 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
809 |
<td class="sig">
|
|
|
810 |
<a id="Ext.dd.DD-onMouseDown"></a>
|
|
|
811 |
<b>onMouseDown</b>( <code>Event e</code> ) : void <div class="mdesc">
|
|
|
812 |
<div class="short">Event handler that fires when a drag/drop obj gets a mousedown</div>
|
|
|
813 |
<div class="long">
|
|
|
814 |
Event handler that fires when a drag/drop obj gets a mousedown <div class="mdetail-params">
|
|
|
815 |
<strong>Parameters:</strong>
|
|
|
816 |
<ul><li><code>e</code> : Event<div class="sub-desc">the mousedown event</div></li> </ul>
|
|
|
817 |
<strong>Returns:</strong>
|
|
|
818 |
<ul>
|
|
|
819 |
<li><code>void</code></li>
|
|
|
820 |
</ul>
|
|
|
821 |
</div>
|
|
|
822 |
</div>
|
|
|
823 |
</div>
|
|
|
824 |
</td>
|
|
|
825 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onMouseDown" href="output/Ext.dd.DragDrop.html#onMouseDown">DragDrop</a></td>
|
|
|
826 |
</tr>
|
|
|
827 |
<tr class="method-row inherited alt expandable">
|
|
|
828 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
829 |
<td class="sig">
|
|
|
830 |
<a id="Ext.dd.DD-onMouseUp"></a>
|
|
|
831 |
<b>onMouseUp</b>( <code>Event e</code> ) : void <div class="mdesc">
|
|
|
832 |
<div class="short">Event handler that fires when a drag/drop obj gets a mouseup</div>
|
|
|
833 |
<div class="long">
|
|
|
834 |
Event handler that fires when a drag/drop obj gets a mouseup <div class="mdetail-params">
|
|
|
835 |
<strong>Parameters:</strong>
|
|
|
836 |
<ul><li><code>e</code> : Event<div class="sub-desc">the mouseup event</div></li> </ul>
|
|
|
837 |
<strong>Returns:</strong>
|
|
|
838 |
<ul>
|
|
|
839 |
<li><code>void</code></li>
|
|
|
840 |
</ul>
|
|
|
841 |
</div>
|
|
|
842 |
</div>
|
|
|
843 |
</div>
|
|
|
844 |
</td>
|
|
|
845 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#onMouseUp" href="output/Ext.dd.DragDrop.html#onMouseUp">DragDrop</a></td>
|
|
|
846 |
</tr>
|
|
|
847 |
<tr class="method-row inherited expandable">
|
|
|
848 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
849 |
<td class="sig">
|
|
|
850 |
<a id="Ext.dd.DD-removeFromGroup"></a>
|
|
|
851 |
<b>removeFromGroup</b>( <code>string sGroup</code> ) : void <div class="mdesc">
|
|
|
852 |
<div class="short">Remove's this instance from the supplied interaction group</div>
|
|
|
853 |
<div class="long">
|
|
|
854 |
Remove's this instance from the supplied interaction group <div class="mdetail-params">
|
|
|
855 |
<strong>Parameters:</strong>
|
|
|
856 |
<ul><li><code>sGroup</code> : string<div class="sub-desc">The group to drop</div></li> </ul>
|
|
|
857 |
<strong>Returns:</strong>
|
|
|
858 |
<ul>
|
|
|
859 |
<li><code>void</code></li>
|
|
|
860 |
</ul>
|
|
|
861 |
</div>
|
|
|
862 |
</div>
|
|
|
863 |
</div>
|
|
|
864 |
</td>
|
|
|
865 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#removeFromGroup" href="output/Ext.dd.DragDrop.html#removeFromGroup">DragDrop</a></td>
|
|
|
866 |
</tr>
|
|
|
867 |
<tr class="method-row inherited alt expandable">
|
|
|
868 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
869 |
<td class="sig">
|
|
|
870 |
<a id="Ext.dd.DD-removeInvalidHandleClass"></a>
|
|
|
871 |
<b>removeInvalidHandleClass</b>( <code>string cssClass</code> ) : void <div class="mdesc">
|
|
|
872 |
<div class="short">Unsets an invalid css class</div>
|
|
|
873 |
<div class="long">
|
|
|
874 |
Unsets an invalid css class <div class="mdetail-params">
|
|
|
875 |
<strong>Parameters:</strong>
|
|
|
876 |
<ul><li><code>cssClass</code> : string<div class="sub-desc">the class of the element(s) you wish to
|
|
|
877 |
re-enable</div></li> </ul>
|
|
|
878 |
<strong>Returns:</strong>
|
|
|
879 |
<ul>
|
|
|
880 |
<li><code>void</code></li>
|
|
|
881 |
</ul>
|
|
|
882 |
</div>
|
|
|
883 |
</div>
|
|
|
884 |
</div>
|
|
|
885 |
</td>
|
|
|
886 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#removeInvalidHandleClass" href="output/Ext.dd.DragDrop.html#removeInvalidHandleClass">DragDrop</a></td>
|
|
|
887 |
</tr>
|
|
|
888 |
<tr class="method-row inherited expandable">
|
|
|
889 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
890 |
<td class="sig">
|
|
|
891 |
<a id="Ext.dd.DD-removeInvalidHandleId"></a>
|
|
|
892 |
<b>removeInvalidHandleId</b>( <code>string id</code> ) : void <div class="mdesc">
|
|
|
893 |
<div class="short">Unsets an invalid handle id</div>
|
|
|
894 |
<div class="long">
|
|
|
895 |
Unsets an invalid handle id <div class="mdetail-params">
|
|
|
896 |
<strong>Parameters:</strong>
|
|
|
897 |
<ul><li><code>id</code> : string<div class="sub-desc">the id of the element to re-enable</div></li> </ul>
|
|
|
898 |
<strong>Returns:</strong>
|
|
|
899 |
<ul>
|
|
|
900 |
<li><code>void</code></li>
|
|
|
901 |
</ul>
|
|
|
902 |
</div>
|
|
|
903 |
</div>
|
|
|
904 |
</div>
|
|
|
905 |
</td>
|
|
|
906 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#removeInvalidHandleId" href="output/Ext.dd.DragDrop.html#removeInvalidHandleId">DragDrop</a></td>
|
|
|
907 |
</tr>
|
|
|
908 |
<tr class="method-row inherited alt expandable">
|
|
|
909 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
910 |
<td class="sig">
|
|
|
911 |
<a id="Ext.dd.DD-removeInvalidHandleType"></a>
|
|
|
912 |
<b>removeInvalidHandleType</b>( <code>string tagName</code> ) : void <div class="mdesc">
|
|
|
913 |
<div class="short">Unsets an excluded tag name set by addInvalidHandleType</div>
|
|
|
914 |
<div class="long">
|
|
|
915 |
Unsets an excluded tag name set by addInvalidHandleType <div class="mdetail-params">
|
|
|
916 |
<strong>Parameters:</strong>
|
|
|
917 |
<ul><li><code>tagName</code> : string<div class="sub-desc">the type of element to unexclude</div></li> </ul>
|
|
|
918 |
<strong>Returns:</strong>
|
|
|
919 |
<ul>
|
|
|
920 |
<li><code>void</code></li>
|
|
|
921 |
</ul>
|
|
|
922 |
</div>
|
|
|
923 |
</div>
|
|
|
924 |
</div>
|
|
|
925 |
</td>
|
|
|
926 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#removeInvalidHandleType" href="output/Ext.dd.DragDrop.html#removeInvalidHandleType">DragDrop</a></td>
|
|
|
927 |
</tr>
|
|
|
928 |
<tr class="method-row inherited expandable">
|
|
|
929 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
930 |
<td class="sig">
|
|
|
931 |
<a id="Ext.dd.DD-resetConstraints"></a>
|
|
|
932 |
<b>resetConstraints</b>( <code>boolean maintainOffset</code> ) : void <div class="mdesc">
|
|
|
933 |
<div class="short">resetConstraints must be called if you manually reposition a dd element.</div>
|
|
|
934 |
<div class="long">
|
|
|
935 |
resetConstraints must be called if you manually reposition a dd element. <div class="mdetail-params">
|
|
|
936 |
<strong>Parameters:</strong>
|
|
|
937 |
<ul><li><code>maintainOffset</code> : boolean<div class="sub-desc"></div></li> </ul>
|
|
|
938 |
<strong>Returns:</strong>
|
|
|
939 |
<ul>
|
|
|
940 |
<li><code>void</code></li>
|
|
|
941 |
</ul>
|
|
|
942 |
</div>
|
|
|
943 |
</div>
|
|
|
944 |
</div>
|
|
|
945 |
</td>
|
|
|
946 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#resetConstraints" href="output/Ext.dd.DragDrop.html#resetConstraints">DragDrop</a></td>
|
|
|
947 |
</tr>
|
|
|
948 |
<tr class="method-row alt expandable">
|
|
|
949 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
950 |
<td class="sig">
|
|
|
951 |
<a id="Ext.dd.DD-setDelta"></a>
|
|
|
952 |
<b>setDelta</b>( <code>int iDeltaX</code>, <code>int iDeltaY</code> ) : void <div class="mdesc">
|
|
|
953 |
<div class="short">Sets the pointer offset. You can call this directly to force the
|
|
|
954 |
offset to be in a particular location (e.g., pass i...</div>
|
|
|
955 |
<div class="long">
|
|
|
956 |
Sets the pointer offset. You can call this directly to force the
|
|
|
957 |
offset to be in a particular location (e.g., pass in 0,0 to set it
|
|
|
958 |
to the center of the object) <div class="mdetail-params">
|
|
|
959 |
<strong>Parameters:</strong>
|
|
|
960 |
<ul><li><code>iDeltaX</code> : int<div class="sub-desc">the distance from the left</div></li><li><code>iDeltaY</code> : int<div class="sub-desc">the distance from the top</div></li> </ul>
|
|
|
961 |
<strong>Returns:</strong>
|
|
|
962 |
<ul>
|
|
|
963 |
<li><code>void</code></li>
|
|
|
964 |
</ul>
|
|
|
965 |
</div>
|
|
|
966 |
</div>
|
|
|
967 |
</div>
|
|
|
968 |
</td>
|
|
|
969 |
<td class="msource">DD</td>
|
|
|
970 |
</tr>
|
|
|
971 |
<tr class="method-row inherited expandable">
|
|
|
972 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
973 |
<td class="sig">
|
|
|
974 |
<a id="Ext.dd.DD-setDragElId"></a>
|
|
|
975 |
<b>setDragElId</b>( <code>id {string}</code> ) : void <div class="mdesc">
|
|
|
976 |
<div class="short">Allows you to specify that an element other than the linked element
|
|
|
977 |
will be moved with the cursor during a drag</div>
|
|
|
978 |
<div class="long">
|
|
|
979 |
Allows you to specify that an element other than the linked element
|
|
|
980 |
will be moved with the cursor during a drag <div class="mdetail-params">
|
|
|
981 |
<strong>Parameters:</strong>
|
|
|
982 |
<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>
|
|
|
983 |
<strong>Returns:</strong>
|
|
|
984 |
<ul>
|
|
|
985 |
<li><code>void</code></li>
|
|
|
986 |
</ul>
|
|
|
987 |
</div>
|
|
|
988 |
</div>
|
|
|
989 |
</div>
|
|
|
990 |
</td>
|
|
|
991 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#setDragElId" href="output/Ext.dd.DragDrop.html#setDragElId">DragDrop</a></td>
|
|
|
992 |
</tr>
|
|
|
993 |
<tr class="method-row alt expandable">
|
|
|
994 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
995 |
<td class="sig">
|
|
|
996 |
<a id="Ext.dd.DD-setDragElPos"></a>
|
|
|
997 |
<b>setDragElPos</b>( <code>int iPageX</code>, <code>int iPageY</code> ) : void <div class="mdesc">
|
|
|
998 |
<div class="short">Sets the drag element to the location of the mousedown or click event,
|
|
|
999 |
maintaining the cursor location relative to th...</div>
|
|
|
1000 |
<div class="long">
|
|
|
1001 |
Sets the drag element to the location of the mousedown or click event,
|
|
|
1002 |
maintaining the cursor location relative to the location on the element
|
|
|
1003 |
that was clicked. Override this if you want to place the element in a
|
|
|
1004 |
location other than where the cursor is. <div class="mdetail-params">
|
|
|
1005 |
<strong>Parameters:</strong>
|
|
|
1006 |
<ul><li><code>iPageX</code> : int<div class="sub-desc">the X coordinate of the mousedown or drag event</div></li><li><code>iPageY</code> : int<div class="sub-desc">the Y coordinate of the mousedown or drag event</div></li> </ul>
|
|
|
1007 |
<strong>Returns:</strong>
|
|
|
1008 |
<ul>
|
|
|
1009 |
<li><code>void</code></li>
|
|
|
1010 |
</ul>
|
|
|
1011 |
</div>
|
|
|
1012 |
</div>
|
|
|
1013 |
</div>
|
|
|
1014 |
</td>
|
|
|
1015 |
<td class="msource">DD</td>
|
|
|
1016 |
</tr>
|
|
|
1017 |
<tr class="method-row inherited expandable">
|
|
|
1018 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
1019 |
<td class="sig">
|
|
|
1020 |
<a id="Ext.dd.DD-setHandleElId"></a>
|
|
|
1021 |
<b>setHandleElId</b>( <code>id {string}</code> ) : void <div class="mdesc">
|
|
|
1022 |
<div class="short">Allows you to specify a child of the linked element that should be
|
|
|
1023 |
used to initiate the drag operation. An example o...</div>
|
|
|
1024 |
<div class="long">
|
|
|
1025 |
Allows you to specify a child of the linked element that should be
|
|
|
1026 |
used to initiate the drag operation. An example of this would be if
|
|
|
1027 |
you have a content div with text and links. Clicking anywhere in the
|
|
|
1028 |
content area would normally start the drag operation. Use this method
|
|
|
1029 |
to specify that an element inside of the content div is the element
|
|
|
1030 |
that starts the drag operation. <div class="mdetail-params">
|
|
|
1031 |
<strong>Parameters:</strong>
|
|
|
1032 |
<ul><li><code>{string}</code> : id<div class="sub-desc">the id of the element that will be used to
|
|
|
1033 |
initiate the drag.</div></li> </ul>
|
|
|
1034 |
<strong>Returns:</strong>
|
|
|
1035 |
<ul>
|
|
|
1036 |
<li><code>void</code></li>
|
|
|
1037 |
</ul>
|
|
|
1038 |
</div>
|
|
|
1039 |
</div>
|
|
|
1040 |
</div>
|
|
|
1041 |
</td>
|
|
|
1042 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#setHandleElId" href="output/Ext.dd.DragDrop.html#setHandleElId">DragDrop</a></td>
|
|
|
1043 |
</tr>
|
|
|
1044 |
<tr class="method-row inherited alt expandable">
|
|
|
1045 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
1046 |
<td class="sig">
|
|
|
1047 |
<a id="Ext.dd.DD-setInitialPosition"></a>
|
|
|
1048 |
<b>setInitialPosition</b>( <code>int diffX</code>, <code>int diffY</code> ) : void <div class="mdesc">
|
|
|
1049 |
<div class="short">Stores the initial placement of the linked element.</div>
|
|
|
1050 |
<div class="long">
|
|
|
1051 |
Stores the initial placement of the linked element. <div class="mdetail-params">
|
|
|
1052 |
<strong>Parameters:</strong>
|
|
|
1053 |
<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>
|
|
|
1054 |
<strong>Returns:</strong>
|
|
|
1055 |
<ul>
|
|
|
1056 |
<li><code>void</code></li>
|
|
|
1057 |
</ul>
|
|
|
1058 |
</div>
|
|
|
1059 |
</div>
|
|
|
1060 |
</div>
|
|
|
1061 |
</td>
|
|
|
1062 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#setInitialPosition" href="output/Ext.dd.DragDrop.html#setInitialPosition">DragDrop</a></td>
|
|
|
1063 |
</tr>
|
|
|
1064 |
<tr class="method-row inherited expandable">
|
|
|
1065 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
1066 |
<td class="sig">
|
|
|
1067 |
<a id="Ext.dd.DD-setOuterHandleElId"></a>
|
|
|
1068 |
<b>setOuterHandleElId</b>( <code>id the</code> ) : void <div class="mdesc">
|
|
|
1069 |
<div class="short">Allows you to set an element outside of the linked element as a drag
|
|
|
1070 |
handle</div>
|
|
|
1071 |
<div class="long">
|
|
|
1072 |
Allows you to set an element outside of the linked element as a drag
|
|
|
1073 |
handle <div class="mdetail-params">
|
|
|
1074 |
<strong>Parameters:</strong>
|
|
|
1075 |
<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>
|
|
|
1076 |
<strong>Returns:</strong>
|
|
|
1077 |
<ul>
|
|
|
1078 |
<li><code>void</code></li>
|
|
|
1079 |
</ul>
|
|
|
1080 |
</div>
|
|
|
1081 |
</div>
|
|
|
1082 |
</div>
|
|
|
1083 |
</td>
|
|
|
1084 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#setOuterHandleElId" href="output/Ext.dd.DragDrop.html#setOuterHandleElId">DragDrop</a></td>
|
|
|
1085 |
</tr>
|
|
|
1086 |
<tr class="method-row inherited alt expandable">
|
|
|
1087 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
1088 |
<td class="sig">
|
|
|
1089 |
<a id="Ext.dd.DD-setPadding"></a>
|
|
|
1090 |
<b>setPadding</b>( <code>int iTop</code>, <code>int iRight</code>, <code>int iBot</code>, <code>int iLeft</code> ) : void <div class="mdesc">
|
|
|
1091 |
<div class="short">Configures the padding for the target zone in px. Effectively expands
|
|
|
1092 |
(or reduces) the virtual object size for targe...</div>
|
|
|
1093 |
<div class="long">
|
|
|
1094 |
Configures the padding for the target zone in px. Effectively expands
|
|
|
1095 |
(or reduces) the virtual object size for targeting calculations.
|
|
|
1096 |
Supports css-style shorthand; if only one parameter is passed, all sides
|
|
|
1097 |
will have that padding, and if only two are passed, the top and bottom
|
|
|
1098 |
will have the first param, the left and right the second. <div class="mdetail-params">
|
|
|
1099 |
<strong>Parameters:</strong>
|
|
|
1100 |
<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>
|
|
|
1101 |
<strong>Returns:</strong>
|
|
|
1102 |
<ul>
|
|
|
1103 |
<li><code>void</code></li>
|
|
|
1104 |
</ul>
|
|
|
1105 |
</div>
|
|
|
1106 |
</div>
|
|
|
1107 |
</div>
|
|
|
1108 |
</td>
|
|
|
1109 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#setPadding" href="output/Ext.dd.DragDrop.html#setPadding">DragDrop</a></td>
|
|
|
1110 |
</tr>
|
|
|
1111 |
<tr class="method-row inherited expandable">
|
|
|
1112 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
1113 |
<td class="sig">
|
|
|
1114 |
<a id="Ext.dd.DD-setXConstraint"></a>
|
|
|
1115 |
<b>setXConstraint</b>( <code>int iLeft</code>, <code>int iRight</code>, <code>int iTickSize</code> ) : void <div class="mdesc">
|
|
|
1116 |
<div class="short">By default, the element can be dragged any place on the screen. Use
|
|
|
1117 |
this method to limit the horizontal travel of th...</div>
|
|
|
1118 |
<div class="long">
|
|
|
1119 |
By default, the element can be dragged any place on the screen. Use
|
|
|
1120 |
this method to limit the horizontal travel of the element. Pass in
|
|
|
1121 |
0,0 for the parameters if you want to lock the drag to the y axis. <div class="mdetail-params">
|
|
|
1122 |
<strong>Parameters:</strong>
|
|
|
1123 |
<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
|
|
|
1124 |
right</div></li><li><code>iTickSize</code> : int<div class="sub-desc">optional parameter for specifying that the
|
|
|
1125 |
element
|
|
|
1126 |
should move iTickSize pixels at a time.</div></li> </ul>
|
|
|
1127 |
<strong>Returns:</strong>
|
|
|
1128 |
<ul>
|
|
|
1129 |
<li><code>void</code></li>
|
|
|
1130 |
</ul>
|
|
|
1131 |
</div>
|
|
|
1132 |
</div>
|
|
|
1133 |
</div>
|
|
|
1134 |
</td>
|
|
|
1135 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#setXConstraint" href="output/Ext.dd.DragDrop.html#setXConstraint">DragDrop</a></td>
|
|
|
1136 |
</tr>
|
|
|
1137 |
<tr class="method-row inherited alt expandable">
|
|
|
1138 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
1139 |
<td class="sig">
|
|
|
1140 |
<a id="Ext.dd.DD-setYConstraint"></a>
|
|
|
1141 |
<b>setYConstraint</b>( <code>int iUp</code>, <code>int iDown</code>, <code>int iTickSize</code> ) : void <div class="mdesc">
|
|
|
1142 |
<div class="short">By default, the element can be dragged any place on the screen. Set
|
|
|
1143 |
this to limit the vertical travel of the element...</div>
|
|
|
1144 |
<div class="long">
|
|
|
1145 |
By default, the element can be dragged any place on the screen. Set
|
|
|
1146 |
this to limit the vertical travel of the element. Pass in 0,0 for the
|
|
|
1147 |
parameters if you want to lock the drag to the x axis. <div class="mdetail-params">
|
|
|
1148 |
<strong>Parameters:</strong>
|
|
|
1149 |
<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
|
|
|
1150 |
element should move iTickSize pixels at a time.</div></li> </ul>
|
|
|
1151 |
<strong>Returns:</strong>
|
|
|
1152 |
<ul>
|
|
|
1153 |
<li><code>void</code></li>
|
|
|
1154 |
</ul>
|
|
|
1155 |
</div>
|
|
|
1156 |
</div>
|
|
|
1157 |
</div>
|
|
|
1158 |
</td>
|
|
|
1159 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#setYConstraint" href="output/Ext.dd.DragDrop.html#setYConstraint">DragDrop</a></td>
|
|
|
1160 |
</tr>
|
|
|
1161 |
<tr class="method-row inherited expandable">
|
|
|
1162 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
1163 |
<td class="sig">
|
|
|
1164 |
<a id="Ext.dd.DD-startDrag"></a>
|
|
|
1165 |
<b>startDrag</b>( <code>int X</code>, <code>int Y</code> ) : void <div class="mdesc">
|
|
|
1166 |
<div class="short">Abstract method called after a drag/drop object is clicked
|
|
|
1167 |
and the drag or mousedown time thresholds have beeen met.</div>
|
|
|
1168 |
<div class="long">
|
|
|
1169 |
Abstract method called after a drag/drop object is clicked
|
|
|
1170 |
and the drag or mousedown time thresholds have beeen met. <div class="mdetail-params">
|
|
|
1171 |
<strong>Parameters:</strong>
|
|
|
1172 |
<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>
|
|
|
1173 |
<strong>Returns:</strong>
|
|
|
1174 |
<ul>
|
|
|
1175 |
<li><code>void</code></li>
|
|
|
1176 |
</ul>
|
|
|
1177 |
</div>
|
|
|
1178 |
</div>
|
|
|
1179 |
</div>
|
|
|
1180 |
</td>
|
|
|
1181 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#startDrag" href="output/Ext.dd.DragDrop.html#startDrag">DragDrop</a></td>
|
|
|
1182 |
</tr>
|
|
|
1183 |
<tr class="method-row inherited alt expandable">
|
|
|
1184 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
1185 |
<td class="sig">
|
|
|
1186 |
<a id="Ext.dd.DD-toString"></a>
|
|
|
1187 |
<b>toString</b>() : string <div class="mdesc">
|
|
|
1188 |
<div class="short">toString method</div>
|
|
|
1189 |
<div class="long">
|
|
|
1190 |
toString method <div class="mdetail-params">
|
|
|
1191 |
<strong>Parameters:</strong>
|
|
|
1192 |
<ul><li>None.</li> </ul>
|
|
|
1193 |
<strong>Returns:</strong>
|
|
|
1194 |
<ul>
|
|
|
1195 |
<li><code>string</code><div class="sub-desc">string representation of the dd obj</div></li>
|
|
|
1196 |
</ul>
|
|
|
1197 |
</div>
|
|
|
1198 |
</div>
|
|
|
1199 |
</div>
|
|
|
1200 |
</td>
|
|
|
1201 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#toString" href="output/Ext.dd.DragDrop.html#toString">DragDrop</a></td>
|
|
|
1202 |
</tr>
|
|
|
1203 |
<tr class="method-row inherited expandable">
|
|
|
1204 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
1205 |
<td class="sig">
|
|
|
1206 |
<a id="Ext.dd.DD-unlock"></a>
|
|
|
1207 |
<b>unlock</b>() : void <div class="mdesc">
|
|
|
1208 |
<div class="short">Unlock this instace</div>
|
|
|
1209 |
<div class="long">
|
|
|
1210 |
Unlock this instace <div class="mdetail-params">
|
|
|
1211 |
<strong>Parameters:</strong>
|
|
|
1212 |
<ul><li>None.</li> </ul>
|
|
|
1213 |
<strong>Returns:</strong>
|
|
|
1214 |
<ul>
|
|
|
1215 |
<li><code>void</code></li>
|
|
|
1216 |
</ul>
|
|
|
1217 |
</div>
|
|
|
1218 |
</div>
|
|
|
1219 |
</div>
|
|
|
1220 |
</td>
|
|
|
1221 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#unlock" href="output/Ext.dd.DragDrop.html#unlock">DragDrop</a></td>
|
|
|
1222 |
</tr>
|
|
|
1223 |
<tr class="method-row inherited alt expandable">
|
|
|
1224 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
1225 |
<td class="sig">
|
|
|
1226 |
<a id="Ext.dd.DD-unreg"></a>
|
|
|
1227 |
<b>unreg</b>() : void <div class="mdesc">
|
|
|
1228 |
<div class="short">Remove all drag and drop hooks for this element</div>
|
|
|
1229 |
<div class="long">
|
|
|
1230 |
Remove all drag and drop hooks for this element <div class="mdetail-params">
|
|
|
1231 |
<strong>Parameters:</strong>
|
|
|
1232 |
<ul><li>None.</li> </ul>
|
|
|
1233 |
<strong>Returns:</strong>
|
|
|
1234 |
<ul>
|
|
|
1235 |
<li><code>void</code></li>
|
|
|
1236 |
</ul>
|
|
|
1237 |
</div>
|
|
|
1238 |
</div>
|
|
|
1239 |
</div>
|
|
|
1240 |
</td>
|
|
|
1241 |
<td class="msource"><a ext:cls="Ext.dd.DragDrop" ext:member="#unreg" href="output/Ext.dd.DragDrop.html#unreg">DragDrop</a></td>
|
|
|
1242 |
</tr>
|
|
|
1243 |
</table>
|
|
|
1244 |
<a id="Ext.dd.DD-events"></a>
|
|
|
1245 |
<h2>Public Events</h2>
|
|
|
1246 |
<div class="no-members">This class has no public events.</div>
|
|
|
1247 |
</div>
|