summaryrefslogtreecommitdiffstats
path: root/qooxdoo/source/class/Smokeping/ui/LoadingAnimation.js
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2007-11-18 13:04:33 +0100
committerTobi Oetiker <tobi@oetiker.ch>2007-11-18 13:04:33 +0100
commit823d40c77053c8fb30359de896d7e30b85de2a3a (patch)
tree5ce8ce26c5c22e1d70162ce53ad10257fd675fe0 /qooxdoo/source/class/Smokeping/ui/LoadingAnimation.js
parent688bea6958d0f12613fab7bfefe5f94e831ce05f (diff)
downloadsmokeping-823d40c77053c8fb30359de896d7e30b85de2a3a.tar.gz
smokeping-823d40c77053c8fb30359de896d7e30b85de2a3a.tar.xz
more updates
Diffstat (limited to 'qooxdoo/source/class/Smokeping/ui/LoadingAnimation.js')
-rw-r--r--qooxdoo/source/class/Smokeping/ui/LoadingAnimation.js52
1 files changed, 52 insertions, 0 deletions
diff --git a/qooxdoo/source/class/Smokeping/ui/LoadingAnimation.js b/qooxdoo/source/class/Smokeping/ui/LoadingAnimation.js
new file mode 100644
index 0000000..c06ccc4
--- /dev/null
+++ b/qooxdoo/source/class/Smokeping/ui/LoadingAnimation.js
@@ -0,0 +1,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);
+ }
+});
+
+