Sha256: 5e4dfa2dd8e32c981996a9c360f6c42e162d50e61dc5163258ccd5ba2fa2ca85

Contents?: true

Size: 1.21 KB

Versions: 35

Compression:

Stored size: 1.21 KB

Contents

// ========================================================================
// SproutCore -- JavaScript Application Framework
// Copyright ©2006-2008, Sprout Systems, Inc. and contributors.
// Portions copyright ©2008 Apple Inc.  All rights reserved.
// ========================================================================

require('system/drag') ;


/**
  @namespace

  This mixin can be used to implement a dynamic data source for a drag 
  operation.  You can return a set of allowed data types and then the 
  method will be used to actually get data in that format when requested.
*/
SC.DragDataSource = {

  /** @property
    Implement this property as an array of data types you want to support
    for drag operations.
  */
  dragDataTypes: [],

  /**
    Implement this method to return the data in the format passed.  Return
    null if the requested data type cannot be generated.
  
    @param {SC.Drag} drag The Drag instance managing this drag.
    @param {Object} dataType The proposed dataType to return.  This will 
      always be one of the data types declared in dragDataTypes.
    
    @returns The data object for the specified type
  */
  dragDataForType: function(drag, dataType) { return null; }
  
};


Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
sproutit-sproutcore-1.0.20090721145285 frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutcore-1.4.4-java lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutcore-1.4.4 lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutcore-1.4.3.1 lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutcore-1.4.3-java lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutcore-1.4.3 lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutcore-1.4.2-java lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutcore-1.4.2 lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutcore-1.4.1-java lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutcore-1.4.1 lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutcore-1.4.0-java lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutcore-1.4.0 lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutcore-1.4.0.rc.5 lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutcore-1.4.0.rc.4 lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutcore-1.4.0.rc.3 lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutcore-1.4.0.rc.2 lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutcore-1.4.0.rc lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutcore-1.0.1049.pre.2 lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutcore-1.0.1049.pre.1 frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js
sproutcore-1.0.1046 frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js