2 * Ext JS Library 0.30
\r
3 * Copyright(c) 2006-2009, Ext JS, LLC.
\r
4 * licensing@extjs.com
\r
6 * http://extjs.com/license
\r
11 * @class Ext.air.DragType
\r
13 * Drag drop type constants
\r
17 Ext.air.DragType = {
\r
19 * Constant for text data
\r
21 TEXT : 'text/plain',
\r
23 * Constant for html data
\r
27 * Constant for url data
\r
29 URL : 'text/uri-list',
\r
31 * Constant for bitmap data
\r
33 BITMAP : 'image/x-vnd.adobe.air.bitmap',
\r
35 * Constant for file list data
\r
37 FILES : 'application/x-vnd.adobe.air.file-list'
\r
41 // workaround for DD dataTransfer Clipboard not having hasFormat
\r
43 Ext.apply(Ext.EventObjectImpl.prototype, {
\r
44 hasFormat : function(format){
\r
45 if (this.browserEvent.dataTransfer) {
\r
46 for (var i = 0, len = this.browserEvent.dataTransfer.types.length; i < len; i++) {
\r
47 if(this.browserEvent.dataTransfer.types[i] == format) {
\r
55 getData : function(type){
\r
56 return this.browserEvent.dataTransfer.getData(type);
\r