blob: c06ccc4f4a97a71f866d114c6596e3fa7e8b3253 (
plain)
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
|
/* ************************************************************************
#module(Smokeping)
************************************************************************ */
/**
* The widget showing a detail graph
*/
qx.Class.define('Smokeping.ui.LoadingAnimation',
{
extend: qx.ui.layout.CanvasLayout,
/*
*****************************************************************************
CONSTRUCTOR
*****************************************************************************
*/
/**
* @param graph_url {String} Url to the explorable graph
*
*/
construct: function () {
this.base(arguments);
this.set({
width: '100%',
height: '100%'
});
var plane = new qx.ui.basic.Terminator();
plane.set({
width: '100%',
height: '100%',
backgroundColor: '#f0f0f0',
opacity: 1
});
this.add(plane);
var centerbox = new qx.ui.layout.BoxLayout();
centerbox.set({
width: '100%',
height: '100%',
horizontalChildrenAlign: 'center',
verticalChildrenAlign: 'middle'
});
var animation = new qx.ui.basic.Image(qx.io.Alias.getInstance().resolve('SP/image/ajax-loader.gif'));
centerbox.add(animation);
this.add(centerbox);
}
});
|