FeedbackModule.js 994 Bytes
/**
  * Project      :  AMDA-NG
  * Name         : FeedbackModule.js
  * @plugin 	  amdaDesktop.FeedbackModule
  * @extends 	  amdaDesktop.AmdaModule
  * @brief		 Feedback controller
  * @author Benjamin
  * @version $Id: FeedbackModule.js 965 2012-06-28 16:05:30Z benjamin $        
  */

Ext.define('amdaDesktop.FeedbackModule', {
		
	extend: 'amdaDesktop.AmdaModule',

	requires : [
		'amdaUI.FeedbackUI'
	],
    
	contentId : 'feedUI',
    
	createWindow : function(){
		var desktop = this.app.getDesktop();
		var win = desktop.getWindow(this.id);
		
		if(!win){
			win = desktop.createWindow({		  
				id: this.id,
				title:this.title, 
				layout: 'fit',
				width: 600,
				height: 550,  
				modal: true,
				iconCls: this.icon,
				animCollapse:false,
				constrainHeader:true,
				bodyPadding : 5,
				stateful : true,
				stateId  : this.id,
				stateEvents: ['move','show','resize'],
				items : [{
					xtype: 'panelFeedback'
				}]
			});
		} 
		win.show();
		return win;
	}
});