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!

So much for the first problem, I fear my second one might be a little 
more complex! ;)

I would like to implement dnd into a table. The source would be a table 
and the target a tree (typical filemanager style). So far, there was no 
problem in making the whole table draggable, but, err, that's not really 
helping at all ;) I would love to make each row draggable as a whole, 
but since the acutal widgets are hidden to me (not quite sure how qx 
works here), I cannot attach the eventlistener to the appropriate 
widget. I've seen this work on the new GMX mailclient, so I'm sure this 
has to work somehow, but so far, I enlightenment has not struck me...

I really hope that you guys will be able to provide some help on these 
matters. I love working with qx so far, you did a great job!

Thanks in advance,

Chris

-------------------------------------------------------------------------
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