TimeTableModule.js 1.31 KB
/**
 * Project   : AMDA-NG
 * Name      : TimeTableModule.js
 * @class    amdaDesktop.TimeTableModule
 * @extends  amdaDesktop.InteractiveModule
 * @brief  	 Time Table Module controller definition 
 * @author   Myriam
 * @version $Id: TimeTableModule.js 1605 2013-06-11 13:38:47Z myriam $ 
 ******************************************************************************
 *    FT Id     :   Date   : Name - Description
 ******************************************************************************
 *	           08/06/2011: Myriam - Migration extjs4
 */

Ext.define('amdaDesktop.TimeTableModule', {
	extend: 'amdaDesktop.InteractiveModule',
	
	requires: [
         'amdaUI.TimeTableUI'
    ],
    
	contentId : 'timeTableUi',
	
    /**
     * @cfg {String} data models
     * @required
     */
	nodeDataModel : 'amdaModel.TimeTableNode',
	
    /**
     * @cfg {String} window definitions
     * @required
     */
	width : 850,
	height: 650,
	uiType : 'panelTimeTable',
	helpTitle : 'Help on Time Table Module',
	helpFile : 'timetableHelp',
	
	/**
	 * @override
	 */
	createWindow : function(onshowfn) {

	    this.callParent(arguments);
	    var win = this.app.getDesktop().getWindow(this.id);	

		if (win) {
			/* Reset if form in form ( OperationsTT in TimeTable ) */
			this.getUiContent().down('form').getForm().reset();
		}
	} 
 
});