Jim Hunter schrieb:
I forgot, this is in qooxdoo .6.6, thanks.
This was the critical hint ;-) The issue you are facing the the good old appearance overwrites user value bug in the older qooxdoo releases. This is now fixed in svn and will be solved with the next release but for 0.6.6 you will have to redefine the appearance for the content cell: 'list-view-content-cell':

var theme =  
qx.manager.object.AppearanceManager.getInstance().getAppearanceTheme();
var apar = theme.getAppearance('text-field');
apar.state = function(vTheme, vStates) {
 return {
   backgroundColor : vStates.selected ? this.bgcolor_selected : "yellow",
   color : vStates.selected ? this.color_selected : null
 };
}


Best Fabian


On 5/3/07, *Jim Hunter* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    I am trying to do some modification of the ListView in order to
    provide colored background for rows and I'm not getting what I
    would expect. In preparation for final changes I tried some brute
    force changes but got nothing. I placed a line right after this line:

    vCell = new vColumns[vCol].contentClass;

    to set the background color of all cells to yellow but it stayed
    white. I did something similar to this in the Table by changing
    the Row element background and that worked fine, but the ListView
    does not have a row element. Is there some other place that the
    background is getting changed that I am not seeing? Here is what
    the code now looks like, I tried both the qooxdoo method and I
    tried setting the DOM property:

            vCell = new vColumns[vCol].contentClass;
            vCell.setBackgroundColor('yellow');
            vCell.setStyleProperty('backgroundColor', 'yellow');

    Does anyone have an idea of where I can look to get this working?

    Thanks,
    Jim
    www.D4PHP.org <http://www.D4PHP.org>
    www.D4PHP-Hosting.com <http://www.D4PHP-Hosting.com>


------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


--
Fabian Jakobs
JavaScript Framework Developer

1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Hans-Henning Doerr, Ralph Dommermuth, Matthias 
Ehrlich Andreas Gauger, Matthias Greve, Robert Hoffmann, Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to