summaryrefslogtreecommitdiffstats
path: root/qx08/source/class/tr/ui/Link.js
diff options
context:
space:
mode:
Diffstat (limited to 'qx08/source/class/tr/ui/Link.js')
-rw-r--r--qx08/source/class/tr/ui/Link.js54
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