Sorry for the repost, but I took some code out of the snippet below. Unfortunately an important part as well...
--snip--
construct : function()
{
this.debug("initializing left screen.");
this.setLayout(new qx.ui.layout.VBox(5));
//add content areas
this.add(this.__getLogo());
},
--snip--
Am Dienstag, den 24.08.2010, 11:56 +0200 schrieb Claus Straube:
> Hi all,
>
> I want to extend the Composite class with that code:
>
> --snip--
> qx.Class.define("qooxdoo_test.LeftScreen",
> {
> extend: qx.ui.container.Composite,
>
> construct : function()
> {
>
> this.debug("initializing left screen.");
>
> //add content areas
> this.add(this.__getLogo());
>
>
> },
>
>
> members :
> {
> __getLogo: function(){
> this.debug("create logo in container --> " + this);
> var header = new qx.ui.container.Composite(new
> qx.ui.layout.HBox());
> header.add(new
> qx.ui.basic.Image("qooxdoo_test/images/logo.png"));
> header.add(new
> qx.ui.core.Widget().set({backgroundColor: "#FFFFFF"}),
> { flex: 2 });
>
> return header;
> }
>
> }
> });
> --snip--
>
> the debug results are:
> 001882 initializing left screen.
> 001883 create logo in container --> qooxdoo_test.LeftScreen[undefined]
>
> and I'm getting this error:
> this.$$parent.getContentElement() is null
> [Break on this error] this.$$parent.getContentElement().add(container);
>
> Do I have a mistake in my code or is it not allowed to add children to a
> composite in the constructor?
>
> Thanks in advance - Claus
>
>
>
>
>
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users
> worldwide. Take advantage of special opportunities to increase revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________ qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
--
claus straube
phone +49-89-1265-3103
mobile +49-176-49673717
skype clausstraube
web http://www.catify.com
office room 1.122, heßstr. 89, 80797 munich
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
