Blame view

js/app/models/PlotObjects/PlotStatusBarObject.js 1.41 KB
a0bf9157   Benjamin Renard   Add tick plot and...
1
2
/**
 * Project      : AMDA-NG
5b1abd71   Erdogan Furkan   7616 - Adding col...
3
4
 * Name         : PlotStatusBarObject.js
 * @class   amdaPlotObj.PlotStatusBarObject
a0bf9157   Benjamin Renard   Add tick plot and...
5
6
7
 * @extends Ext.data.Model
 * @brief   Plot Tick Bar Business Object Definition 
 * @author  Benjamin Renard
5b1abd71   Erdogan Furkan   7616 - Adding col...
8
 * @version $Id: PlotStatusBarObject.js benjamin $
a0bf9157   Benjamin Renard   Add tick plot and...
9
10
11
12
13
14
15
 ******************************************************************************
 *    FT Id     :   Date   : Name - Description
 ******************************************************************************
 *	:           :24/08/2015: BRE  - file creation
 */
 
 		
5b1abd71   Erdogan Furkan   7616 - Adding col...
16
Ext.define('amdaPlotObj.PlotStatusBarObject', {
a0bf9157   Benjamin Renard   Add tick plot and...
17
18
19
20
21
22
	extend: 'Ext.data.Model',
	
	requires: [
	           'amdaPlotObj.PlotObjectConfig'
	],
	
5b1abd71   Erdogan Furkan   7616 - Adding col...
23
24
    fields: [
        { name: 'statusbar-color', type: 'string', defaultValue: "none", },
a0bf9157   Benjamin Renard   Add tick plot and...
25
26
    ],
    
a971060f   Benjamin Renard   Fix some bugs
27
28
29
30
31
32
33
34
35
36
37
38
39
40
    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;
    },
    
a0bf9157   Benjamin Renard   Add tick plot and...
41
42
    setDefaultValues: function()
    {
5b1abd71   Erdogan Furkan   7616 - Adding col...
43
        this.set('statusbar-color', amdaPlotObj.PlotObjectConfig.defaultValues.statusbar.color);
a0bf9157   Benjamin Renard   Add tick plot and...
44
45
46
47
    },
    
    getJsonValues : function() 
    {
5b1abd71   Erdogan Furkan   7616 - Adding col...
48
49
        var statusBarValues = new Object();
        statusBarValues['statusbar-color'] = this.get('statusbar-color');
a0bf9157   Benjamin Renard   Add tick plot and...
50
    	
5b1abd71   Erdogan Furkan   7616 - Adding col...
51
        return statusBarValues;
a0bf9157   Benjamin Renard   Add tick plot and...
52
53
    }
});