PlotCurveDefParam.js
1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* 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'
}
}
});