~testplan-team/testplan/source-collection

« back to all changes in this revision

Viewing changes to htmlunit-2.4/src/test/resources/ExtJS/2.2/air/samples/tasks/js/TaskWindow.js

  • Committer: edA-qa mort-ora-y
  • Date: 2010-04-07 10:54:57 UTC
  • Revision ID: eda-qa@disemia.com-20100407105457-g46bvbsrjqtjujab
updating hmltunit src

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Ext JS Library 0.20
3
 
 * Copyright(c) 2006-2008, Ext JS, LLC.
4
 
 * licensing@extjs.com
5
 
 * 
6
 
 * http://extjs.com/license
7
 
 */
8
 
 
9
 
Ext.air.NativeWindowManager.getTaskWindow = function(taskId){
10
 
        var win, winId = 'task' + taskId;
11
 
        if(win = this.get(winId)) {
12
 
                win.instance.orderToFront();
13
 
        } else {
14
 
                win = new Ext.air.NativeWindow({
15
 
                        id: winId,
16
 
                        file: 'task.html?taskId=' + taskId,
17
 
                        width: 500,
18
 
                        height:350
19
 
                });
20
 
        }
21
 
        return win;
22
 
}
23
 
 
24
 
Ext.air.NativeWindowManager.getReminderWindow = function(taskId){
25
 
        var win, winId = 'reminder' + taskId;
26
 
        if(win = this.get(winId)) {
27
 
                win.instance.orderToFront();
28
 
        } else {
29
 
                win = new Ext.air.NativeWindow({
30
 
                        id: winId,
31
 
                        file: 'reminder.html?taskId=' + taskId,
32
 
                        width:400,
33
 
                        height:140,
34
 
                        maximizable: false,
35
 
                        resizable: false
36
 
                });
37
 
        }
38
 
        return win;
39
 
}
40
 
 
41
 
Ext.air.NativeWindowManager.getAboutWindow = function(){
42
 
        var win, winId = 'about';
43
 
        if(win = this.get(winId)) {
44
 
                win.instance.orderToFront();
45
 
        } else {
46
 
                win = new Ext.air.NativeWindow({
47
 
                        id: winId,
48
 
                        file: 'about.html',
49
 
                        width:350,
50
 
                        height:300,
51
 
                        resizable: false,
52
 
            type:'utility'
53
 
        });
54
 
        }
55
 
        return win;
56
 
}
57
 
 
58
 
Ext.air.NativeWindowManager.getPrefWindow = function(){
59
 
        var win, winId = 'prefs';
60
 
        if(win = this.get(winId)) {
61
 
                win.instance.orderToFront();
62
 
        } else {
63
 
                win = new Ext.air.NativeWindow({
64
 
                        id: winId,
65
 
                        file: 'preferences.html',
66
 
                        width:240,
67
 
                        height:150,
68
 
                        resizable: false,
69
 
            type:'utility'
70
 
        });
71
 
        }
72
 
        return win;
73
 
}