I can see two problems.

The first problem is with this line:

>        this.base(this.caption);

You should always supply the "arguments" parameter when calling a 
superclass constructor.
So the line above should be:
     this.base(arguments, this.caption);


The second problem:
In your TableWindow class constructor, you're trying to access a member 
(caption) of a child class. This is problematic for two reasons:
(a) the extending class might not yet have been fully constructed since 
you're still constructing the superclass.
(b) it's bad practise - think about what would happen if you would 
create a TableWindow without extending it.

A better way to do this would be to pass the caption to the superclass 
constructor as an argument.
In code:

qx.Class.define("lino.TableWindow",
{
   extend : qx.ui.window.Window,

   construct : function(app, caption) {
       console.log('lino.TableWindow.construct()',this,app);
       this.base(arguments, caption);
       console.log('lino.TableWindow.construct.base ok');
       this.__app = app;
   ...
}

qx.Class.define("lino.CountriesCitiesTable", {
   extend : lino.TableWindow,

   construct : function() {
     this.base(arguments, this.caption);
   },

   members : {
     caption : 'Städte',
   ...
}


I hope this helps.

Marc

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to