PlotCurveDefParam.js 1.21 KB
/**
  * Project      :  AMDA-NG
  * Name         : PlotCurveDefParam.js
  * @plugin 	  amdaPlotObj.PlotCurveDefParam
  * @extends 	  Ext.data.Model
  * @brief		 Data model for plot params curve definition
  * @author Benjamin
  * @version $Id: PlotCurveDefParam.js $
  ********************************************************************************
  *    FT Id     :   Date   : Name - Description
  *******************************************************************************
  *  :          
  */

Ext.define('amdaPlotObj.PlotCurveDefParam', {
	    extend: 'Ext.data.Model',
	    
	    fields : [
	            {name: 'name', mapping: '@name', type: 'string'},
	            {name: 'internal', mapping: '@internal', type: 'boolean'},
	    		{name: 'defaultValue', mapping: '@defaultValue', type:'float'}
	    ],
	    
	    associations : [
	                    {
	                    	type  : 'belongsTo',
	                    	model : 'amdaPlotObj.PlotCurveDef',
	                    	ownerName  : 'curve',
	                    	getterName : 'getCurve'
	                    }
        ],
	       
	    proxy: {
	    	type: 'ajax',
	    	reader: {
	    		type: 'xml',
	        	root: 'params',
	        	record : 'param'
	    	}
	    }
});