skar wrote:
> Vincent Vandenschrick wrote:
>   
>> Hi Skar,
>> Here is a renderer out of which you can get some inspiration. Basically, 
>> __labels is a hash of [value,translation] and __icons is a hash of 
>> [value,icons]. The cell model contains an enum value (e.g. "M" for 
>> "Male" and "F" for "Female").
>>   
>>     
> Thanks for the code and the tips. Now, I've got the renderer created and
> used like this:
>
>   
>> var atomrenderer = new openprotect.AtomRenderer(
>>         [{"value":"Male"},{"value":"Female"}], //labels array of
>> value:translation of labels
>>         [{"value":"male.png"},{"value":"female.png"}]
>>       );
>>       tcm.setDataCellRenderer(5, atomrenderer);
>>     
> Now, where's the logic which says use the Male label and icon if cell
> value is "M" and the female one in case of "F"? Should it be in the
> renderer or I set it as a conditional renderer?
>   
Never mind. I read the Atom widget's code and now using the
qx.util.ResourceManager.getInstance().toUri() and
qx.util.AliasManager.getInstance().resolve() did the job for me. Thanks
once again for the pointers.

cheers,
skar.

-- 
--
The life so short, the craft so long to learn. 

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to