/** * 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: 'TimeTable' }, 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'); else this.set('iconCls', 'icon-' + this.get('text').toLowerCase()); }, localMenuItems : function() { var menuItems = [{ fnId : 'leaf-editLeaf', text : 'Edit Time Table', hidden : true },{ fnId : 'leaf-plotTT', text : 'Plot Time Table', hidden : true },{ fnId : 'leaf-generateCatalog', text : 'Generate Catalog', hidden : true }]; return menuItems; }, getAllContextMenuItems: function(){ return this.localMenuItems(); } });