RemoteFile.js 822 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // Copyright (c) 2006-2020, JGraph Ltd
  2. /**
  3. */
  4. RemoteFile = function(ui, data, title)
  5. {
  6. DrawioFile.call(this, ui, data);
  7. this.title = title;
  8. this.mode = null;
  9. };
  10. //Extends mxEventSource
  11. mxUtils.extend(RemoteFile, DrawioFile);
  12. /**
  13. * Translates this point by the given vector.
  14. *
  15. * @param {number} dx X-coordinate of the translation.
  16. * @param {number} dy Y-coordinate of the translation.
  17. */
  18. RemoteFile.prototype.isAutosave = function()
  19. {
  20. return false;
  21. };
  22. /**
  23. *
  24. */
  25. RemoteFile.prototype.getMode = function()
  26. {
  27. return this.mode;
  28. };
  29. /**
  30. *
  31. */
  32. RemoteFile.prototype.getTitle = function()
  33. {
  34. return this.title;
  35. };
  36. /**
  37. *
  38. */
  39. RemoteFile.prototype.isRenamable = function()
  40. {
  41. return false;
  42. };
  43. /**
  44. */
  45. RemoteFile.prototype.open = function()
  46. {
  47. this.ui.setFileData(this.getData());
  48. this.installListeners();
  49. };