sharedTimeTableNode.js 1.55 KB
/** 
 * 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 $
 * @todo
 *******************************************************************************
 *    FT Id     :   Date   : Name - Description
 *******************************************************************************
 *  :           :08/06/2011: CDA - Migration extjs4
 *  :           :09/06/2011: elena - all generic methods are now of InteractiveNode class
 */

Ext.define('amdaModel.sharedTimeTableNode', {

    extend: 'amdaModel.InteractiveNode',
    
    statics: {
        nodeType: 'sharedtimeTable',
        objectName: 'Time Table'
    },

    constructor : function(config){	
        this.callParent(arguments);

        this.set('nodeType',amdaModel.sharedTimeTableNode.nodeType);
        this.set('moduleId',myDesktopApp.dynamicModules.tt.id);//'timetab-win');
        this.set('objectDataModel','amdaModel.TimeTable');
        this.set('ownerTreeId',amdaUI.ExplorerUI.RESRC_TAB.TREE_ID);
        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();
    }
});