Blame view

js/app/models/sharedCatalogNode.js 1.38 KB
169f14d2   Benjamin Renard   Add shared object...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/** 
 * Project  : AMDA-NG4
 * Name     : sharedCatalogNode.js
 * @class   amdaModel.sharedCatalogNode
 * @extends amdaModel.InteractiveNode
 * @brief   Basic Model of Node corresponding to a amda Shared Catalog
 * @author  
 * @version $Id: sharedCatalogNode.js 1916 2013-11-26 10:58:49Z elena $
 */

Ext.define('amdaModel.sharedCatalogNode', {

    extend: 'amdaModel.InteractiveNode',
    
    statics: {
        nodeType:   'sharedcatalog',
        objectName: 'Catalog'
    },

    constructor : function(config){	
        this.callParent(arguments);
        this.set('moduleId',myDesktopApp.dynamicModules.catalog.id);
        this.set('objectDataModel','amdaModel.Catalog');      
        if (this.get('leaf')) this.set('iconCls', 'icon-catalog');
4a9e0229   Elena.Budnik   icones for shared...
25
26
        else this.set('iconCls', 'icon-' + this.get('text').toLowerCase());
           
169f14d2   Benjamin Renard   Add shared object...
27
28
29
30
31
32
33
34
    },
  
    localMenuItems : function() {
        var menuItems =
         [{
            fnId : 'leaf-editLeaf',
            text : 'Edit Catalog',
            hidden : true
9b93ada1   Hacene SI HADJ MOHAND   shared cat to tt ok
35
        },{
84a1734b   Hacene SI HADJ MOHAND   us 7833 plot TT c...
36
37
38
39
            fnId : 'leaf-plotTT',
            text : 'Plot Catalog',
            hidden : true
        },{
9b93ada1   Hacene SI HADJ MOHAND   shared cat to tt ok
40
41
42
43
44
45
            fnId : 'leaf-generateTT',
            text : 'Generate Time Table ',
            hidden : true
                }

           ];
169f14d2   Benjamin Renard   Add shared object...
46
47
48
49
50
51
52
     
        return menuItems;
    },
    
    getAllContextMenuItems: function(){

        return this.localMenuItems();
9b93ada1   Hacene SI HADJ MOHAND   shared cat to tt ok
53
54
    } 

169f14d2   Benjamin Renard   Add shared object...
55
});