/** * Project  : AMDA-NG * Name : FileObject.js * Description : * @class amdaModel.FileObject * @extends amdaModel.AmdaObject * * @author Elena * @version $Id: FileObject.js 1719 2013-08-30 14:26:56Z elena $ ****************************************************************************** * FT Id : Date : Name - Description ****************************************************************************** */ Ext.define('amdaModel.FileObject', { extend: 'amdaModel.AmdaObject', fields : [ {name: 'fileName', type: 'string'}, {name: 'file', type: 'string', convert: function(value, rec){ return rec.get('fileName'); } }, {name: 'mask', type: 'string', convert: function(value, rec){ if (!value) return rec.get('fileName'); else return value; } }, {name: 'minsampling', type: 'float'}, {name: 'maxsampling', type: 'float'}, {name: 'format', type: 'string'}, {name: 'vars'}, {name: 'startTime', type: 'string'}, {name: 'stopTime', type: 'string'}, {name: 'foundTime', type: 'boolean'} ] });