On Wed, Jun 16, 2010 at 04:57, Fritz Zaucker <[email protected]>wrote:
> Hi,
>
> I'd like to implememt a class by extending qx.ui.table.Table. The class
> should use qx.ui.table.columnmodel.Resize.
>
> Is this possible? I couldn't figure out how to set the tablecolumnmodel
> except in the call to qx.ui.table.Table (passing a custom map as second
> parameter).
>
Yup, that's the way you do it. You just have to set that up in your
subclass' constructor:
qx.Class.define("custom.ResizeTable",
{
extend : qx.ui.table.Table,
construct : function(tableModel, custom)
{
// If no custom map was provided, initialize an empty one.
if (! custom)
{
custom = {};
}
// If no column model was provided...
if (! custom.tableColumnModel)
{
// ... then use the resize column model
custom.tableColumnModel =
function(obj)
{
return new qx.ui.table.columnmodel.Resize(obj);
};
}
// Call the superclass
this.base(arguments, tableModel, custom);
}
});
Derrell
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel