Hi Kenny,
I have short node to your problem. You need to pass constructor
parameters to table constructor.
for example:
construct : function (a, b) {
this.base(arguments, a, b);
}
Was this your problem ?
Cheers
- Petr
2008/12/18 Kenny Tilton <[email protected]>:
> I wanted to subclass qx.ui.table.Table because of a commonality I could
> reuse:
>
> qx.Class.define("nuvia.explorer.widget.ItemTable", {
> extend : qx.ui.table.Table,
> construct : function () {
> this.base(arguments);
> <add common cellClick handler>
> }
> });
>
> Then I use it like this:
>
> var custom = {
> tableColumnModel : function(obj) {
> return new qx.ui.table.columnmodel.Resize(obj);
> }
> };
>
> var table = new nuvia.explorer.widget.ItemTable(m,custom);
> // this worked: var table = new qx.ui.table.Table(m, custom);
>
>
> ... but the constructor does not seem to work :
>
> var tcm = table.getTableColumnModel();
> var rb = tcm.getBehavior(); <-- fails saying Basic col model has no
> method "getBehavior"
>
> So why did qooxdoo not see the custom parameter? Or is this not how it
> works? I tried listing the arguments in the new constructor parameter
> list and passing them explicitly and a few other things but no luck.
>
> kt
>
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you. Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel