SearchModule.js
1.3 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
51
/**
* Project : AMDA-NG
* Name : SearchModule.js
* @class amdaDesktop.SearchModule
* @extends amdaDesktop.InteractiveModule
* @brief Search Module controller definition
* @author Myriam
* $Id: SearchModule.js 2153 2014-02-28 16:35:19Z elena $
*/
Ext.define('amdaDesktop.SearchModule', {
extend: 'amdaDesktop.InteractiveModule',
requires: [
'amdaUI.SearchUI'
],
contentId : 'searchUI',
/**
* @cfg {String} data models
* @required
*/
nodeDataModel : 'amdaModel.SearchNode',
/**
* @cfg {String} window definitions
* @required
*/
height: 580,
uiType : 'panelSearch',
helpTitle : 'Help on Data Mining Module',
helpFile : 'dataminingHelp',
saveState: function()
{
var uiContent = this.getUiContent();
var form = uiContent.down('form').getForm();
var values = form.getValues();
Ext.state.Manager.set('timeintervalMining', {'startDate' : values.startDate,'stopDate' : values.stopDate });
// Ext.state.Manager.set(this.id + '_form', values);
},
getState : function()
{
return Ext.state.Manager.get('timeintervalMining');
// return Ext.state.Manager.get(this.id + '_form');
}
});