Ina Munteanu wrote:
> 
> The problem is that i don't want to change this color permanently, but
> depending on some action. 
> For example, when i press a button i want the
> "table-row-background-selected" to be "grey" and when i press another
> button, i want it to be red.
> 

Well, that is a pretty different subject! :-D

The simplest way which occurs to me to achieve this is to subclass the
default data row renderer "qx.ui.table.rowrenderer.Default" [1]. You'll have
to add code to process the button event so that it 1) changes some data row
renderer variable and 2) forces a table repaint. I believe that most of this
is already found in previous threads you may try a mailing list harvester,
such as Nabble [2], for code and other possible solutions. ;-)

Hope this helps,

  Helder Magalhães

[1]http://demo.qooxdoo.org/current/apiviewer/#qx.ui.table.rowrenderer.Default
[2]http://www.nabble.com/qooxdoo-devel-f3822.html
-- 
View this message in context: 
http://www.nabble.com/change-selection-background-color-for-Table%28qx.ui.table.model.Simple%29-tp16537274p16537488.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to