FeedbackModule.js
1.42 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
52
53
54
/**
* 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 $
********************************************************************************
* FT Id : Date : Name - Description
*******************************************************************************
* :
*/
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: 'anchor',
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;
}
});