DropboxLibrary.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // $Id = DriveFile.js,v 1.12 2010-01-02 09 =45 =14 gaudenz Exp $
  2. // Copyright (c) 2006-2014, JGraph Ltd
  3. /**
  4. * Constructs a new point for the optional x and y coordinates. If no
  5. * coordinates are given, then the default values for <x> and <y> are used.
  6. * @constructor
  7. * @class Implements a basic 2D point. Known subclassers = {@link mxRectangle}.
  8. * @param {number} x X-coordinate of the point.
  9. * @param {number} y Y-coordinate of the point.
  10. */
  11. DropboxLibrary = function(ui, data, stat)
  12. {
  13. DropboxFile.call(this, ui, data, stat);
  14. };
  15. //Extends mxEventSource
  16. mxUtils.extend(DropboxLibrary, DropboxFile);
  17. /**
  18. * Translates this point by the given vector.
  19. *
  20. * @param {number} dx X-coordinate of the translation.
  21. * @param {number} dy Y-coordinate of the translation.
  22. */
  23. DropboxLibrary.prototype.isAutosave = function()
  24. {
  25. return false;
  26. };
  27. /**
  28. * Overridden to avoid updating data with current file.
  29. */
  30. DropboxLibrary.prototype.doSave = function(title, success, error)
  31. {
  32. this.saveFile(title, false, success, error);
  33. };
  34. /**
  35. * Returns the location as a new object.
  36. * @type mx.Point
  37. */
  38. DropboxLibrary.prototype.open = function()
  39. {
  40. // Do nothing - this should never be called
  41. };