I can't imagine why this is not working. I needed a cell renderer
change and was able to change the core class and my change worked
great. So I extracted the changes and made a Mixin class for it and
then patched the original class. Firebug tells me that my Mixin class
exists and that it has been added to the original class, but when that
method is exercised the original code is run not my patched code. Can
anyone think of a reason this would happen?

Here is my Mixin class:


qx.Mixin.define("swep.patchAbstractCellRenderer",
{
        "members"       :
        {
                createDataCellHtml      : function(cellInfo, htmlArr)
                {
                        htmlArr.push('<div class="', 
this._getCellClass(cellInfo), '"
style="', 'left:', cellInfo.styleLeft, 'px;', this._getCellSizeStyle(
                                        cellInfo.styleWidth, 
cellInfo.styleHeight, this._insetX, this._insetY
                                ), this._getCellStyle(cellInfo), (typeof
cellInfo.table.gIMColEditable != 'undefined')
                                                ? 
((cellInfo.table.gIMColEditable[cellInfo.col] == false) ?
'background-color:#ccffff"' : '"')
                                                : '"',
                                this._getCellAttributes(cellInfo), '>' +
this._getContentHtml(cellInfo), '</div>'
                        );
                }
        }
});
qx.Class.patch(qx.ui.table.cellrenderer.Abstract,
swep.patchAbstractCellRenderer);


I thought that there might be an issue patching an 'abstract' class so
I tried to also patch qx.ui.table.cellrenderer.Default but still the
base class method was called.
Anyone have an idea here? I could simply hack the base class and be
done with it, but I want to do things the correct way to save myself a
lot of code management in the future.

Thanks,
Jim

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to