Nevermind, problem solved by looking through the demobrowser code, the
constructor body has to be :

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

Fred

On Fri, May 17, 2013 at 5:38 PM, Frédéric Ménez <f...@appsule.net> wrote:

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


-- 
  Appsule Inc! New media r&d <http://appsule.net/>

Frédéric Ménez  +33 6 83 74 06 97  f...@appsule.net
LinkedIn <http://www.linkedin.com/in/fredm>
Twitter<https://twitter.com/Appsule_Inc>
------------------------------------------------------------------------------
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