diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2008-06-04 23:33:02 +0200 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2008-06-04 23:33:02 +0200 |
commit | 8364e6bbedf919008da50cc1b54dbb8a49dee88d (patch) | |
tree | 43000d161c268f626badf9723ff97b3e0e8527ee /qooxdoo/source/class/Mtr/ui/Cellrenderer.js | |
parent | 4940f51d54f1f4b994c02138defbcd8ff36a95ec (diff) | |
download | smokeping-8364e6bbedf919008da50cc1b54dbb8a49dee88d.tar.gz smokeping-8364e6bbedf919008da50cc1b54dbb8a49dee88d.tar.xz |
alter name to Tr since we do not use mtr anmore
Diffstat (limited to 'qooxdoo/source/class/Mtr/ui/Cellrenderer.js')
-rw-r--r-- | qooxdoo/source/class/Mtr/ui/Cellrenderer.js | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/qooxdoo/source/class/Mtr/ui/Cellrenderer.js b/qooxdoo/source/class/Mtr/ui/Cellrenderer.js deleted file mode 100644 index 2b2e45e..0000000 --- a/qooxdoo/source/class/Mtr/ui/Cellrenderer.js +++ /dev/null @@ -1,46 +0,0 @@ -/* ************************************************************************ - - Mtr Frontend - - Author: - * Tobias Oetiker - -************************************************************************ */ -/* ************************************************************************ -#module(Mtr) -************************************************************************ */ - -/** - * A configurable cell renderre - */ - -qx.Class.define('Mtr.ui.Cellrenderer', -{ - extend: qx.ui.table.cellrenderer.Number, - /** - * Format a number with a configurable number of fraction digits - * and add optional pre and postfix. - * @param digits {Integer} how many digits should there be. Default is 0. - * @param prefix {String} optional prefix. - * @param postfix {String} optional postfix. - */ - - construct: function (digits,postfix,prefix) { - if (digits == undefined){ - digits = 0; - } - this.base(arguments) - var format = new qx.util.format.NumberFormat(); - format.set({ - maximumFractionDigits: digits, - minimumFractionDigits: digits - }); - if (postfix != undefined){ - format.setPostfix(postfix); - } - if (prefix != undefined){ - format.setPrefix(prefix); - } - this.setNumberFormat(format); - } -}); |