From c34f404e3fe41e7ca3890fa66a8b4625ee3269ac Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Thu, 15 Nov 2007 06:22:46 +0000 Subject: added a missing file --- qooxdoo/source/class/Smokeping/ui/Graphs.js | 87 +++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 qooxdoo/source/class/Smokeping/ui/Graphs.js diff --git a/qooxdoo/source/class/Smokeping/ui/Graphs.js b/qooxdoo/source/class/Smokeping/ui/Graphs.js new file mode 100644 index 0000000..9508eee --- /dev/null +++ b/qooxdoo/source/class/Smokeping/ui/Graphs.js @@ -0,0 +1,87 @@ +/* ************************************************************************ +#module(Smokeping) +************************************************************************ */ + +/** + * a widget showing the smokeping graph overview + */ + +qx.Class.define('Smokeping.ui.Graphs', +{ + extend: qx.ui.layout.FlowLayout, + + /* + ***************************************************************************** + CONSTRUCTOR + ***************************************************************************** + */ + + /** + * @param base_url {String} Path to the location of the image generator + * + */ + + construct: function (url) { + + with(this){ + base(arguments,'root node'); + setOverflow('scrollY'); + setBackgroundColor('white'); + setBorder('inset'); + setWidth('100%'); + setHeight('100%'); + setVerticalSpacing(10); + setHorizontalSpacing(10); + }; + for(var i=0;i<2000;i++){ + var button = new qx.ui.basic.Atom(i.toString()); + this.add(button); + } + }, + + /* + ***************************************************************************** + Statics + ***************************************************************************** + */ + + statics : + { + + /* + --------------------------------------------------------------------------- + CORE METHODS + --------------------------------------------------------------------------- + */ + + /** + * Create the tree based on input from the Server + * + * @type member + * + * @param {void} + * + * @return BaseUrl {Strings} + */ + + + __fill_folder: function(node,data){ + // in data[0] we have the id of the folder + var folder = new qx.ui.tree.TreeFolder(data[1]); + node.add(folder); + var length = data.length; + for (var i=2;i