How to access the "model" property of a cell editor in a table?

View: New views
1 Messages — Rating Filter:   Alert me  

How to access the "model" property of a cell editor in a table?

by Anaël Ollier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Qooxdoo-fans,

I'm discovering Qooxdoo and so far I'm really impressed by the architecture and the range of possible uses it opens.
But I started recently to work with the (virtual) tables and I got stucked on a problem:
I'm using a SelectBox editor for some cells and I want to display a different value than the one which is actually stored internally (and then processed by the different listeners). When that kind of situation happens with a simple SelectBox, I just have to set the value I want to display with myListItem.setValue() and the value I want to process with myListItem.setModel().
Then, adding a changeSelection listener on the widget gives me the ListItem that has been selected and I can retrieve my value with getModel(). So far so good.

But how can I do that in a table? The only event I can listen to is "dataEdited" and it only contains the displayed values, without any way to access the original ListItem and its model.
Of course I can imagine some twisted ways to manage that differently, but I'd like to have something clean here. And I'm sure I'm not the only one with that issue.

Thanks in advance
--
Anaël
nanawel@...
The eyeos Project | www.eyeos.org | Web Desktop & Cloud Computing Operating System

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel