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-method-constructor'><span id='Ext-dd-DDTarget'>/**
28 </span></span> * @class Ext.dd.DDTarget
29 * A DragDrop implementation that does not move, but can be a drop
30 * target. You would get the same result by simply omitting implementation
31 * for the event callbacks, but this way we reduce the processing cost of the
32 * event listener and the callbacks.
33 * @extends Ext.dd.DragDrop
35 * @param {String} id the id of the element that is a drop target
36 * @param {String} sGroup the group of related DragDrop objects
37 * @param {object} config an object containing configurable attributes
38 * Valid properties for DDTarget in addition to those in
42 Ext.define('Ext.dd.DDTarget', {
43 extend: 'Ext.dd.DragDrop',
44 constructor: function(id, sGroup, config) {
46 this.initTarget(id, sGroup, config);
50 <span id='Ext-dd-DDTarget-method-getDragEl'> /**
52 * Overridden and disabled. A DDTarget does not support being dragged.
55 getDragEl: Ext.emptyFn,
56 <span id='Ext-dd-DDTarget-method-isValidHandleChild'> /**
58 * Overridden and disabled. A DDTarget does not support being dragged.
61 isValidHandleChild: Ext.emptyFn,
62 <span id='Ext-dd-DDTarget-method-startDrag'> /**
64 * Overridden and disabled. A DDTarget does not support being dragged.
67 startDrag: Ext.emptyFn,
68 <span id='Ext-dd-DDTarget-method-endDrag'> /**
70 * Overridden and disabled. A DDTarget does not support being dragged.
74 <span id='Ext-dd-DDTarget-method-onDrag'> /**
76 * Overridden and disabled. A DDTarget does not support being dragged.
80 <span id='Ext-dd-DDTarget-method-onDragDrop'> /**
82 * Overridden and disabled. A DDTarget does not support being dragged.
85 onDragDrop: Ext.emptyFn,
86 <span id='Ext-dd-DDTarget-method-onDragEnter'> /**
88 * Overridden and disabled. A DDTarget does not support being dragged.
91 onDragEnter: Ext.emptyFn,
92 <span id='Ext-dd-DDTarget-method-onDragOut'> /**
94 * Overridden and disabled. A DDTarget does not support being dragged.
97 onDragOut: Ext.emptyFn,
98 <span id='Ext-dd-DDTarget-method-onDragOver'> /**
100 * Overridden and disabled. A DDTarget does not support being dragged.
103 onDragOver: Ext.emptyFn,
104 <span id='Ext-dd-DDTarget-method-onInvalidDrop'> /**
106 * Overridden and disabled. A DDTarget does not support being dragged.
109 onInvalidDrop: Ext.emptyFn,
110 <span id='Ext-dd-DDTarget-method-onMouseDown'> /**
112 * Overridden and disabled. A DDTarget does not support being dragged.
115 onMouseDown: Ext.emptyFn,
116 <span id='Ext-dd-DDTarget-method-onMouseUp'> /**
118 * Overridden and disabled. A DDTarget does not support being dragged.
121 onMouseUp: Ext.emptyFn,
122 <span id='Ext-dd-DDTarget-method-setXConstraint'> /**
124 * Overridden and disabled. A DDTarget does not support being dragged.
127 setXConstraint: Ext.emptyFn,
128 <span id='Ext-dd-DDTarget-method-setYConstraint'> /**
130 * Overridden and disabled. A DDTarget does not support being dragged.
133 setYConstraint: Ext.emptyFn,
134 <span id='Ext-dd-DDTarget-method-resetConstraints'> /**
136 * Overridden and disabled. A DDTarget does not support being dragged.
139 resetConstraints: Ext.emptyFn,
140 <span id='Ext-dd-DDTarget-method-clearConstraints'> /**
142 * Overridden and disabled. A DDTarget does not support being dragged.
145 clearConstraints: Ext.emptyFn,
146 <span id='Ext-dd-DDTarget-method-clearTicks'> /**
148 * Overridden and disabled. A DDTarget does not support being dragged.
151 clearTicks: Ext.emptyFn,
152 <span id='Ext-dd-DDTarget-method-setInitPosition'> /**
154 * Overridden and disabled. A DDTarget does not support being dragged.
157 setInitPosition: Ext.emptyFn,
158 <span id='Ext-dd-DDTarget-method-setDragElId'> /**
160 * Overridden and disabled. A DDTarget does not support being dragged.
163 setDragElId: Ext.emptyFn,
164 <span id='Ext-dd-DDTarget-method-setHandleElId'> /**
166 * Overridden and disabled. A DDTarget does not support being dragged.
169 setHandleElId: Ext.emptyFn,
170 <span id='Ext-dd-DDTarget-method-setOuterHandleElId'> /**
172 * Overridden and disabled. A DDTarget does not support being dragged.
175 setOuterHandleElId: Ext.emptyFn,
176 <span id='Ext-dd-DDTarget-method-addInvalidHandleClass'> /**
178 * Overridden and disabled. A DDTarget does not support being dragged.
181 addInvalidHandleClass: Ext.emptyFn,
182 <span id='Ext-dd-DDTarget-method-addInvalidHandleId'> /**
184 * Overridden and disabled. A DDTarget does not support being dragged.
187 addInvalidHandleId: Ext.emptyFn,
188 <span id='Ext-dd-DDTarget-method-addInvalidHandleType'> /**
190 * Overridden and disabled. A DDTarget does not support being dragged.
193 addInvalidHandleType: Ext.emptyFn,
194 <span id='Ext-dd-DDTarget-method-removeInvalidHandleClass'> /**
196 * Overridden and disabled. A DDTarget does not support being dragged.
199 removeInvalidHandleClass: Ext.emptyFn,
200 <span id='Ext-dd-DDTarget-method-removeInvalidHandleId'> /**
202 * Overridden and disabled. A DDTarget does not support being dragged.
205 removeInvalidHandleId: Ext.emptyFn,
206 <span id='Ext-dd-DDTarget-method-removeInvalidHandleType'> /**
208 * Overridden and disabled. A DDTarget does not support being dragged.
211 removeInvalidHandleType: Ext.emptyFn,
213 toString: function() {
214 return ("DDTarget " + this.id);