4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>The source code</title>
6 <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
7 <script type="text/javascript" src="../prettify/prettify.js"></script>
8 <style type="text/css">
9 .highlight { display: block; background-color: #ddd; }
11 <script type="text/javascript">
12 function highlight() {
13 document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
17 <body onload="prettyPrint(); highlight();">
18 <pre class="prettyprint lang-js">/*
19 * This is a derivative of the similarly named class in the YUI Library.
20 * The original license:
21 * Copyright (c) 2006, Yahoo! Inc. All rights reserved.
22 * Code licensed under the BSD License:
23 * http://developer.yahoo.net/yui/license.txt
27 <span id='Ext-dd-DDTarget'>/**
28 </span> * @class Ext.dd.DDTarget
29 * @extends Ext.dd.DragDrop
30 * A DragDrop implementation that does not move, but can be a drop
31 * target. You would get the same result by simply omitting implementation
32 * for the event callbacks, but this way we reduce the processing cost of the
33 * event listener and the callbacks.
35 Ext.define('Ext.dd.DDTarget', {
36 extend: 'Ext.dd.DragDrop',
38 <span id='Ext-dd-DDTarget-method-constructor'> /**
39 </span> * Creates new DDTarget.
40 * @param {String} id the id of the element that is a drop target
41 * @param {String} sGroup the group of related DragDrop objects
42 * @param {object} config an object containing configurable attributes.
43 * Valid properties for DDTarget in addition to those in DragDrop: none.
45 constructor: function(id, sGroup, config) {
47 this.initTarget(id, sGroup, config);
51 <span id='Ext-dd-DDTarget-method-getDragEl'> /**
53 * Overridden and disabled. A DDTarget does not support being dragged.
56 getDragEl: Ext.emptyFn,
57 <span id='Ext-dd-DDTarget-method-isValidHandleChild'> /**
59 * Overridden and disabled. A DDTarget does not support being dragged.
62 isValidHandleChild: Ext.emptyFn,
63 <span id='Ext-dd-DDTarget-method-startDrag'> /**
65 * Overridden and disabled. A DDTarget does not support being dragged.
68 startDrag: Ext.emptyFn,
69 <span id='Ext-dd-DDTarget-method-endDrag'> /**
71 * Overridden and disabled. A DDTarget does not support being dragged.
75 <span id='Ext-dd-DDTarget-method-onDrag'> /**
77 * Overridden and disabled. A DDTarget does not support being dragged.
81 <span id='Ext-dd-DDTarget-method-onDragDrop'> /**
83 * Overridden and disabled. A DDTarget does not support being dragged.
86 onDragDrop: Ext.emptyFn,
87 <span id='Ext-dd-DDTarget-method-onDragEnter'> /**
89 * Overridden and disabled. A DDTarget does not support being dragged.
92 onDragEnter: Ext.emptyFn,
93 <span id='Ext-dd-DDTarget-method-onDragOut'> /**
95 * Overridden and disabled. A DDTarget does not support being dragged.
98 onDragOut: Ext.emptyFn,
99 <span id='Ext-dd-DDTarget-method-onDragOver'> /**
101 * Overridden and disabled. A DDTarget does not support being dragged.
104 onDragOver: Ext.emptyFn,
105 <span id='Ext-dd-DDTarget-method-onInvalidDrop'> /**
107 * Overridden and disabled. A DDTarget does not support being dragged.
110 onInvalidDrop: Ext.emptyFn,
111 <span id='Ext-dd-DDTarget-method-onMouseDown'> /**
113 * Overridden and disabled. A DDTarget does not support being dragged.
116 onMouseDown: Ext.emptyFn,
117 <span id='Ext-dd-DDTarget-method-onMouseUp'> /**
119 * Overridden and disabled. A DDTarget does not support being dragged.
122 onMouseUp: Ext.emptyFn,
123 <span id='Ext-dd-DDTarget-method-setXConstraint'> /**
125 * Overridden and disabled. A DDTarget does not support being dragged.
128 setXConstraint: Ext.emptyFn,
129 <span id='Ext-dd-DDTarget-method-setYConstraint'> /**
131 * Overridden and disabled. A DDTarget does not support being dragged.
134 setYConstraint: Ext.emptyFn,
135 <span id='Ext-dd-DDTarget-method-resetConstraints'> /**
137 * Overridden and disabled. A DDTarget does not support being dragged.
140 resetConstraints: Ext.emptyFn,
141 <span id='Ext-dd-DDTarget-method-clearConstraints'> /**
143 * Overridden and disabled. A DDTarget does not support being dragged.
146 clearConstraints: Ext.emptyFn,
147 <span id='Ext-dd-DDTarget-method-clearTicks'> /**
149 * Overridden and disabled. A DDTarget does not support being dragged.
152 clearTicks: Ext.emptyFn,
153 <span id='Ext-dd-DDTarget-method-setInitPosition'> /**
155 * Overridden and disabled. A DDTarget does not support being dragged.
158 setInitPosition: Ext.emptyFn,
159 <span id='Ext-dd-DDTarget-method-setDragElId'> /**
161 * Overridden and disabled. A DDTarget does not support being dragged.
164 setDragElId: Ext.emptyFn,
165 <span id='Ext-dd-DDTarget-method-setHandleElId'> /**
167 * Overridden and disabled. A DDTarget does not support being dragged.
170 setHandleElId: Ext.emptyFn,
171 <span id='Ext-dd-DDTarget-method-setOuterHandleElId'> /**
173 * Overridden and disabled. A DDTarget does not support being dragged.
176 setOuterHandleElId: Ext.emptyFn,
177 <span id='Ext-dd-DDTarget-method-addInvalidHandleClass'> /**
179 * Overridden and disabled. A DDTarget does not support being dragged.
182 addInvalidHandleClass: Ext.emptyFn,
183 <span id='Ext-dd-DDTarget-method-addInvalidHandleId'> /**
185 * Overridden and disabled. A DDTarget does not support being dragged.
188 addInvalidHandleId: Ext.emptyFn,
189 <span id='Ext-dd-DDTarget-method-addInvalidHandleType'> /**
191 * Overridden and disabled. A DDTarget does not support being dragged.
194 addInvalidHandleType: Ext.emptyFn,
195 <span id='Ext-dd-DDTarget-method-removeInvalidHandleClass'> /**
197 * Overridden and disabled. A DDTarget does not support being dragged.
200 removeInvalidHandleClass: Ext.emptyFn,
201 <span id='Ext-dd-DDTarget-method-removeInvalidHandleId'> /**
203 * Overridden and disabled. A DDTarget does not support being dragged.
206 removeInvalidHandleId: Ext.emptyFn,
207 <span id='Ext-dd-DDTarget-method-removeInvalidHandleType'> /**
209 * Overridden and disabled. A DDTarget does not support being dragged.
212 removeInvalidHandleType: Ext.emptyFn,
214 toString: function() {
215 return ("DDTarget " + this.id);