The X Toolkit API

X.loadable

/**
* Injective mix-in for all loadable objects.
*
* @constructor
*/
var l = new X.loadable();
/**
* The file of this loadable object.
*
* @type {?X.file}
* @protected
*/
l._file = $_FILE;
/**
* The file data.
*
* @type {?ArrayBuffer}
* @protected
*/
l._filedata = $_FILEDATA;
/**
* Get the associated X.file for this object.
*
* @return {string} The associated file path or null if no file is associated.
*/
var _file = l.file;
/**
* Load this object from a file path or reset the associated file path.
*
* @param {?string|Array} filepath The file path/URL to load. If null, reset the
*          associated file. If an array is given, load multiple files (this
*          only works for DICOM so far).
*/
l.file = $FILEPATH;
/**
* Get the possibly attached file data for this object.
*
* @return {?string} The associated file data or null if none is attached.
*/
var _filedata = l.filedata;
/**
* Set raw file data for this object. Doing so, skips any additional loading and
* just parses this raw data.
*
* @param {?string|Array} filedata The raw file data to parse.
*/
l.filedata = $FILEDATA;


CONSTRUCTORS
X.loadable

PROPERTIES
_file
_filedata

GETTERS/SETTERS
file
filedata

FUNCTIONS

STATIC



SOURCECODE