/** * Project  : AMDA-NG * Name : PlotInstantSpectroObject.js * @class amdaPlotObj.PlotInstantSpectroObject * @extends Ext.data.Model * @brief Plot Instant Spectro Business Object Definition * @author Benjamin Renard * @version $Id: PlotInstantSpectroObject.js benjamin $ ****************************************************************************** * FT Id : Date : Name - Description ****************************************************************************** * : :28/08/2015: BRE - file creation */ Ext.define('amdaPlotObj.PlotInstantSpectroObject', { extend: 'Ext.data.Model', requires: [ 'amdaPlotObj.PlotObjectConfig' ], fields : [ {name: 'ispectro-dimonxaxis', type: 'int'} ], constructor: function(){ var me = this; me.callParent(arguments); if ((arguments.length > 0) && arguments[0]) { } else { //new object, set default fields values me.setDefaultValues(); } this.dirty = false; }, setDefaultValues: function() { this.set('ispectro-dimonxaxis', 0); }, getJsonValues : function() { var ispectroValues = new Object(); ispectroValues['ispectro-dimonxaxis'] = this.get('ispectro-dimonxaxis'); return ispectroValues; } });