VisuModule.js
1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* 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);
},
});