~cdparra/gelee/trunk

« back to all changes in this revision

Viewing changes to webui/extjs/source/core/Element.dd.js

  • Committer: parra
  • Date: 2010-03-15 15:56:56 UTC
  • Revision ID: svn-v4:ac5bba68-f036-4e09-846e-8f32731cc928:trunk/gelee:1448
merged gelee at svn

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Ext JS Library 3.0 RC2
 
3
 * Copyright(c) 2006-2009, Ext JS, LLC.
 
4
 * licensing@extjs.com
 
5
 * 
 
6
 * http://extjs.com/license
 
7
 */
 
8
 
 
9
/**
 
10
 * @class Ext.Element
 
11
 */
 
12
Ext.Element.addMethods({
 
13
    /**
 
14
     * Initializes a {@link Ext.dd.DD} drag drop object for this element.
 
15
     * @param {String} group The group the DD object is member of
 
16
     * @param {Object} config The DD config object
 
17
     * @param {Object} overrides An object containing methods to override/implement on the DD object
 
18
     * @return {Ext.dd.DD} The DD object
 
19
     */
 
20
    initDD : function(group, config, overrides){
 
21
        var dd = new Ext.dd.DD(Ext.id(this.dom), group, config);
 
22
        return Ext.apply(dd, overrides);
 
23
    },
 
24
 
 
25
    /**
 
26
     * Initializes a {@link Ext.dd.DDProxy} object for this element.
 
27
     * @param {String} group The group the DDProxy object is member of
 
28
     * @param {Object} config The DDProxy config object
 
29
     * @param {Object} overrides An object containing methods to override/implement on the DDProxy object
 
30
     * @return {Ext.dd.DDProxy} The DDProxy object
 
31
     */
 
32
    initDDProxy : function(group, config, overrides){
 
33
        var dd = new Ext.dd.DDProxy(Ext.id(this.dom), group, config);
 
34
        return Ext.apply(dd, overrides);
 
35
    },
 
36
 
 
37
    /**
 
38
     * Initializes a {@link Ext.dd.DDTarget} object for this element.
 
39
     * @param {String} group The group the DDTarget object is member of
 
40
     * @param {Object} config The DDTarget config object
 
41
     * @param {Object} overrides An object containing methods to override/implement on the DDTarget object
 
42
     * @return {Ext.dd.DDTarget} The DDTarget object
 
43
     */
 
44
    initDDTarget : function(group, config, overrides){
 
45
        var dd = new Ext.dd.DDTarget(Ext.id(this.dom), group, config);
 
46
        return Ext.apply(dd, overrides);
 
47
    }
 
48
});
 
 
b'\\ No newline at end of file'