CatalogNode.js
785 Bytes
/**
* Project : AMDA-NG
* Name : CatalogNode.js
* @class amdaModel.CatalogNode
* @extends amdaModel.TimeTableNode
* @brief Basic Model of Node corresponding to a amda catalog
* @author elena
*/
Ext.define('amdaModel.CatalogNode', {
extend: 'amdaModel.ExecutableNode',
statics: {
nodeType: 'catalog',
objectName: 'Catalog'
},
constructor : function(config){//
this.callParent(arguments);
this.set('nodeType',amdaModel.CatalogNode.nodeType);
this.set('moduleId',myDesktopApp.dynamicModules.catalog.id);
this.set('ownerTreeId',amdaUI.ExplorerUI.RESRC_TAB.TREE_ID);
this.set('objectDataModel',amdaModel.Catalog.$className);
if (this.get('leaf')) this.set('iconCls', 'icon-catalog');
}
});