Hi Christian,
> 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!
>   
You class looks ok. If you have based you Application on the skeleton 
please make sure the class is placed in 
"source/class/custom/MyBoolean.js". This is where qooxdoo expects a 
class named "custom.MyBoolean". Further each time you add classes to 
your project you have to rerun make. Normally the build system detects 
dependencies automatically and it should not have any problems with your 
code.

Best Fabian

-- 
Fabian Jakobs
JavaScript Framework Developer

1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, 
Matthias Greve, Robert Hoffmann, Norbert Lang, 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
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to