Hi,

I've been digging on something which looks like a simple issue at first
sight : defining the constructor of a custom (subclassed) widget.

Basically, with qooxdoo 2.1.1 uncommenting the portion below regarding the
constructor seems to cause the subclassed widget not to appear. I have seen
such a constructor quoted in the user manual, so I don't understand I'm
doing wrong here.

Any ideas ?

Thanks in advance

Fred


qx.Class.define("subclassatom.Stuff",
{
  extend : qx.ui.basic.Atom

   /**
   * @lint ignoreUndefined(qxc)
   */
    // ,
    // construct : function()
    // {
    //     this.base(arguments);
    // }

});

With user code in Application.js simply doing :

var o = new subclassatom.Stuff("Hello",
"icon/22/apps/internet-web-browser.png"); // an related asset directive is
present at the top of the file
var c = new qx.ui.container.Composite(new qx.ui.layout.Basic);
c.add(o);
this.getRoot().add(c);
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to