"Jim Hunter" <[EMAIL PROTECTED]> writes:

> attaching it to the email has altered the file enough that the Apply Patch
> does not work with this file. Is it possible to have you ZIP it up and send
> it that way?

Zip isn't convenient, but here it is as an attachment instead of inline.  This
should be easily saved on your side without getting changed.  Sorry about
that.

In case it wasn't obvious, you'll want to create your own function to override
the class function qx.ui.table.TablePane.rowRenderCallback(), with something
like:

  qx.ui.tableTablePane.rowRenderCallback = function(rowElem, cellInfo)
  {
    /* do your stuff */
  }

and look at DataCellRenderer.js for all of the information in cellInfo.

Also, I've been following the instructions of Andreas Ecker, and not updating
my svn version during the past week.  This patch is against a version that's
about a week or so old.  If it doesn't apply cleanly, the changes are tiny
enough that you should be able to manually apply it.

Cheers,

Derrell

=== source/script/qx/ui/table/TablePane.js
==================================================================
--- source/script/qx/ui/table/TablePane.js	(revision 17114)
+++ source/script/qx/ui/table/TablePane.js	(local)
@@ -446,6 +446,9 @@
     }
     rowElem.style.color = cellInfo.selected ? TablePane.CONTENT_COL_SELECTED : TablePane.CONTENT_COL;
 
+    // Allow for custom row rendering
+    qx.ui.table.TablePane.rowRenderCallback(rowElem, cellInfo);
+
     if (!recyleRowElem || !onlySelectionOrFocusChanged) {
       var html = "";
       var left = 0;
@@ -533,6 +536,21 @@
   return qx.ui.basic.Terminator.prototype.dispose.call(this);
 }
 
+/**
+ * Function called during rendering, to customize a particular row's
+ * appearance.
+ *
+ * By default, no custom styles are applied.  Users of this class may provide
+ * a different function which optionally alters the appearance of the row.
+ *
+ * @param rowElem
+ *   The row element being created.  It can be manipulated by applying styles,
+ *   e.g. rowElem.style.backgroundcolor = 'red';
+ *
+ * @param cellInfo
+ *   See [EMAIL PROTECTED] #createDataCellHtml}.
+ */
+qx.Class.rowRenderCallback = function() { };
 
 qx.Class.USE_ARRAY_JOIN = false;
 qx.Class.USE_TABLE = false;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to