diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2011-08-23 15:59:15 +0200 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2011-08-23 15:59:15 +0200 |
commit | 55490b1bfb539386b63e25a8fd90e56c0200c1e8 (patch) | |
tree | 8ab5e31b7d1579ae8640dd006c4aa01daf7f8aaa /qx08/source/class/tr/ui/Link.js | |
parent | a1fbf832f9f0ba3043c3300aa0ca3a3d841ce41c (diff) | |
download | smokeping-55490b1bfb539386b63e25a8fd90e56c0200c1e8.tar.gz smokeping-55490b1bfb539386b63e25a8fd90e56c0200c1e8.tar.xz |
clean out smoketrace
Diffstat (limited to 'qx08/source/class/tr/ui/Link.js')
-rw-r--r-- | qx08/source/class/tr/ui/Link.js | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/qx08/source/class/tr/ui/Link.js b/qx08/source/class/tr/ui/Link.js deleted file mode 100644 index d7bd28b..0000000 --- a/qx08/source/class/tr/ui/Link.js +++ /dev/null @@ -1,54 +0,0 @@ -/* ************************************************************************ -#module(Tr) -************************************************************************ */ - -/** - * A label with the ability to link out. Based on Label. - */ -qx.Class.define('tr.ui.Link', { - extend : qx.ui.basic.Label, - - - - - /* - ***************************************************************************** - CONSTRUCTOR - ***************************************************************************** - */ - - /** - * @param text {String} Initial label - * @param url {String} Where to link to - * @param color {String} Hex Color for the text - * @param font {String} Font from string representation - */ - construct : function(text, url, color, font) { - this.base(arguments, text); - - if (color) { - this.setTextColor(color); - } - - if (font) { - this.setFont(qx.bom.Font.fromString(font)); - } - - this.set({ - cursor : 'pointer', - opacity : 0.9 - }); - - this.addListener('click', function(e) { - window.open(url, '__new'); - }); - - this.addListener('mouseover', function(e) { - this.setOpacity(1); - }, this); - - this.addListener('mouseout', function(e) { - this.setOpacity(0.7); - }, this); - } -});
\ No newline at end of file |