SearchModule.js 1.3 KB

/** 
 * 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'); 
    }
});