summaryrefslogtreecommitdiffstats
path: root/web-gui/logging/source/class/logging/list/Line.js
diff options
context:
space:
mode:
Diffstat (limited to 'web-gui/logging/source/class/logging/list/Line.js')
-rw-r--r--web-gui/logging/source/class/logging/list/Line.js55
1 files changed, 55 insertions, 0 deletions
diff --git a/web-gui/logging/source/class/logging/list/Line.js b/web-gui/logging/source/class/logging/list/Line.js
new file mode 100644
index 0000000..1da9818
--- /dev/null
+++ b/web-gui/logging/source/class/logging/list/Line.js
@@ -0,0 +1,55 @@
+/* ************************************************************************
+
+ Copyright:
+
+ License:
+
+ Authors:
+
+************************************************************************ */
+
+/**
+ * This is the main application class of your custom application "logging"
+ */
+qx.Class.define("logging.list.Line",
+{
+extend : qx.ui.basic.Label,
+
+/*
+*****************************************************************************
+ PROPERTIES
+*****************************************************************************
+*/
+properties: {
+ appearance: {
+ refine: true,
+ init: "list-line"
+ },
+ even: {
+ init: false,
+ apply: "__applyEven",
+ check: "Boolean"
+ }
+},
+
+construct: function(text, even) {
+ this.base(arguments, text);
+ this.setEven(even);
+ this.setAllowGrowX(true);
+ this.setAllowShrinkX(false);
+ this.setRich(true);
+},
+
+/*
+*****************************************************************************
+ MEMBERS
+*****************************************************************************
+*/
+members :
+{
+ __applyEven: function(val) {
+ this.replaceState(val ? "odd" : "even", val ? "even" : "odd");
+ }
+}
+});
+