sharedTimeTableNode.js
1.05 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
42
/**
* 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 $
*/
Ext.define('amdaModel.sharedTimeTableNode', {
extend: 'amdaModel.InteractiveNode',
statics: {
nodeType: 'sharedtimeTable',
objectName: 'Time Table'
},
constructor : function(config){
this.callParent(arguments);
this.set('moduleId',myDesktopApp.dynamicModules.tt.id);
this.set('objectDataModel','amdaModel.TimeTable');
if (this.get('leaf')) this.set('iconCls', 'icon-timetable');
},
localMenuItems : function() {
var menuItems =
[{
fnId : 'leaf-editLeaf',
text : 'Edit Time Table',
hidden : true
}];
return menuItems;
},
getAllContextMenuItems: function(){
return this.localMenuItems();
}
});