VisuModule.js 1.06 KB
/**
 * Project   AMDA-NG
 * Name      VisuModule.js
 * @class    amdaDesktop.VisuModule
 * @extends  amdaDesktop.InteractiveModule
 * @brief    Visualization Module controller definition
 * @author   elena
 */

Ext.define('amdaDesktop.VisuModule', {
	extend: 'amdaDesktop.InteractiveModule',

	 requires: [
         'amdaUI.VisuUI'
     ],

      contentId : 'visuUI',

    /**
     * @cfg {String} data models
     * @required
     */
	nodeDataModel : 'amdaModel.CatalogNode', //  'amdaModel.MyDataNode'

    /**
     * @cfg {String} window definitions
     * @required
     */
	width : 800,
	height: 700,
	uiType : 'panelVisu',
	helpTitle : 'Help on Visualization Module',
	helpFile : 'visuHelp',

  visualize : function(catObj) {
    var temporaryNode = Ext.create('amdaModel.CatalogNode', {leaf: true});
    if (temporaryNode)
        temporaryNode.set('object', catObj);
    this.setLinkedNode(temporaryNode);

    this.createWindow();
  },
  
   addCatalog: function(catalogObject) {
	     var uiContent = this.getUiContent();
	     uiContent.addCatalog(catalogObject);
	 },


});