Blame view

js/app/controllers/VisuModule.js 951 Bytes
5cfea1f2   elena   vizu draft
1
2
3
4
5
/**
 * Project   AMDA-NG
 * Name      VisuModule.js
 * @class    amdaDesktop.VisuModule
 * @extends  amdaDesktop.InteractiveModule
b0720b91   Benjamin Renard   Finalize catalog ...
6
 * @brief    Visualization Module controller definition
5cfea1f2   elena   vizu draft
7
8
9
10
11
 * @author   elena
 */

Ext.define('amdaDesktop.VisuModule', {
	extend: 'amdaDesktop.InteractiveModule',
b0720b91   Benjamin Renard   Finalize catalog ...
12

5cfea1f2   elena   vizu draft
13
14
15
	 requires: [
         'amdaUI.VisuUI'
     ],
b0720b91   Benjamin Renard   Finalize catalog ...
16

5cfea1f2   elena   vizu draft
17
      contentId : 'visuUI',
b0720b91   Benjamin Renard   Finalize catalog ...
18

5cfea1f2   elena   vizu draft
19
20
21
22
23
    /**
     * @cfg {String} data models
     * @required
     */
	nodeDataModel : 'amdaModel.CatalogNode', //  'amdaModel.MyDataNode'
b0720b91   Benjamin Renard   Finalize catalog ...
24

5cfea1f2   elena   vizu draft
25
26
27
28
29
30
31
32
    /**
     * @cfg {String} window definitions
     * @required
     */
	width : 800,
	height: 700,
	uiType : 'panelVisu',
	helpTitle : 'Help on Visualization Module',
b0720b91   Benjamin Renard   Finalize catalog ...
33
34
35
36
37
38
39
40
41
42
43
	helpFile : 'visuHelp',

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

    this.createWindow();
  }

5cfea1f2   elena   vizu draft
44
});