Blame view

js/app/models/sharedTimeTableNode.js 1.35 KB
16035364   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
/** 
 * Project  : AMDA-NG4
 * Name     : TimeTableNode.js
 * @class   amdaModel.TimeTableNode
 * @extends amdaModel.InteractiveNode
 * @brief   Basic Model of Node corresponding to a amda Time Table
 * @author  
 * @version $Id: sharedTimeTableNode.js 1916 2013-11-26 10:58:49Z elena $
16035364   Benjamin Renard   First commit
9
10
11
12
13
14
15
 */

Ext.define('amdaModel.sharedTimeTableNode', {

    extend: 'amdaModel.InteractiveNode',
    
    statics: {
3a5f60a1   elena   proper use os sta...
16
        nodeType:   'sharedtimeTable',
4a9e0229   Elena.Budnik   icones for shared...
17
        objectName: 'TimeTable'
16035364   Benjamin Renard   First commit
18
19
20
21
    },

    constructor : function(config){	
        this.callParent(arguments);
3a5f60a1   elena   proper use os sta...
22
23
        this.set('moduleId',myDesktopApp.dynamicModules.tt.id);
        this.set('objectDataModel','amdaModel.TimeTable');      
16035364   Benjamin Renard   First commit
24
        if (this.get('leaf')) this.set('iconCls', 'icon-timetable');
4a9e0229   Elena.Budnik   icones for shared...
25
        else this.set('iconCls', 'icon-' + this.get('text').toLowerCase());
16035364   Benjamin Renard   First commit
26
27
28
29
30
31
32
33
    },
  
    localMenuItems : function() {
        var menuItems =
         [{
            fnId : 'leaf-editLeaf',
            text : 'Edit Time Table',
            hidden : true
3b63d483   Hacene SI HADJ MOHAND   shared in progress
34
        },{
84a1734b   Hacene SI HADJ MOHAND   us 7833 plot TT c...
35
36
37
38
            fnId : 'leaf-plotTT',
            text : 'Plot Time Table',
            hidden : true
        },{
3b63d483   Hacene SI HADJ MOHAND   shared in progress
39
40
41
            fnId : 'leaf-generateCatalog',
            text : 'Generate Catalog',
            hidden : true
16035364   Benjamin Renard   First commit
42
43
44
45
46
47
48
49
50
51
        }];
     
        return menuItems;
    },
    
    getAllContextMenuItems: function(){

        return this.localMenuItems();
    }
});