Blame view

js/app/models/DerivedParamNode.js 1.52 KB
16035364   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
/** 
 * Project  : AMDA-NG4
 * Name     : DerivedParamNode.js
 * @class   amdaModel.DerivedParamNode
 * @extends amdaModel.InteractiveNode
 * @brief   Model of Node corresponding to a derived parameter
 * @author  CDA
 * @version $Id: DerivedParamNode.js 2544 2014-10-03 10:21:56Z elena $
16035364   Benjamin Renard   First commit
9
10
11
12
13
14
15
16
17
18
19
 */

Ext.define('amdaModel.DerivedParamNode', {

    extend: 'amdaModel.InteractiveNode',
    
    statics:{
        nodeType: 'derivedParam',
        objectName: 'Parameter'
    },
 
63ac7745   Benjamin Renard   Support component...
20
     constructor : function(config){	
3a5f60a1   elena   proper use os sta...
21
        this.callParent(arguments);       
16035364   Benjamin Renard   First commit
22
23
24
        this.set('moduleId',myDesktopApp.dynamicModules.param.id);
        this.set('objectDataModel',amdaModel.Parameter.$className);
        this.set('ownerTreeId',amdaUI.ExplorerUI.RESRC_TAB.TREE_ID);
3a5f60a1   elena   proper use os sta...
25
	 if (this.get('leaf')) this.set('iconCls', 'icon-scalar');
16035364   Benjamin Renard   First commit
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
    },
    
    localMenuItems : function() {
        var menuItems =
                [{
                    fnId : 'leaf-plotParam',
                    text : 'Plot Parameter',
                    hidden : true
                }, {
                    fnId : 'leaf-downParam',
                    text : 'Download Parameter',
                    hidden : true
                }];     
        return menuItems;
    },
    
    getAllContextMenuItems: function(){
        
d18b535d   elena   catalog draft + c...
44
        var menuItems = this.allMenuItems();
16035364   Benjamin Renard   First commit
45
46
47
        var locMenuItems = this.localMenuItems();
        
        return  Ext.Array.merge(menuItems,locMenuItems);       
d18b535d   elena   catalog draft + c...
48
    },  
16035364   Benjamin Renard   First commit
49
50
51
52
53
54
    
    isParameter : function(){
        return this.get('isParameter');
    }

});