Hey David,

I did that, but the error still occurs. Do I have to somehow import the 
new class in my Application.js?
I have looked through the examples but so far, there are no obvious 
differences between my class declaration
and the ones in, e.g. the demobrowser.

Thanks for answering,

Chris
> Christian,
>
> You'll have to run 'make' in the project directory after creating a class.
>
> David
>
> Christian Zyweck wrote:
>   
>> Hi!
>>
>> I have been experimenting with qooxdoo for some time now and have 
>> encountered a few problems which, so far, I haven't been able to work 
>> out myself, so a little help to get things going would be greatly 
>> appreciated!
>>
>> First thing I want to do is create a class called MyBoolean, which 
>> inherits from qx.ui.table.cellrenderer.Boolean that uses other graphics. 
>> So what I did was adding a class to my own project and placeing it in 
>> the custom folder next to my application.js for simplicity. The code 
>> looks pretty much like this:
>>
>> qx.Class.define("custom.MyBoolean",
>> {
>>   extend : qx.ui.table.cellrenderer.Boolean,
>>   construct : function()
>>   {
>>     this.base(arguments);
>>
>>     this._iconUrlTrue = 
>> qx.io.Alias.getInstance().resolve("path\to\my\image.png");
>>     this._iconUrlFalse = 
>> qx.io.Alias.getInstance().resolve("path\to\my\image.png");
>>     this._iconUrlNull = 
>> qx.io.Alias.getInstance().resolve("path\to\my\image.png");
>>   }
>> });
>>
>> I'm not sure if this is right, but I think that, since I only want to 
>> change the images used, it would suffice to override the constructor.
>>
>> However, when trying to apply the new class to the tablecolumnmodel via
>>
>> tcm.setDataCellRenderer(2, new custom.MyBoolean);
>>
>> I get an error that says: "custom.MyBoolean is not a constructor" - I am 
>> pretty new to OO Javascript, but I guess that MyBoolean is not loaded 
>> correctly.
>> I think I missed something very basic here, but I just can't figure out 
>> what!
>>     

-------------------------------------------------------------------------
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
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to