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

           ];
     
        return menuItems;
    },
    
    getAllContextMenuItems: function(){

        return this.localMenuItems();
    } 

});