I see a couple of problems here.

   1. You are extending qx.core.Object when in fact I think you mean to be
   extending qx.ui.core.Widget. Functionality of qx.ui.core.Widget is necessary
   to use your new widget in a form.
   2. There is not typically a main() field in either an extended Widget nor
   an extended Object. It looks like you're confusing the Gui object which has
   a main() field with Objects and Widgets which don't. They do, however, have
   a constructor which you probably want to be extending and calling, so it may
   be that instead of main: you mean construct:

It's probably worthwhile reviewing the wiki documentation on extending
widgets. Work your way through
http://qooxdoo.org/documentation/1.0#getting_started and I think the time
you spend there will save you oodles of time later.

Cheers,

Derrell

On Sun, Apr 11, 2010 at 12:13, dragon2k...@gmx.de <dragon2k...@gmx.de>wrote:

> I try  to add the editor   creation to an new class. The head looks like
> this
>
> qx.Class.define("go.system.editor.Main", {
>    extend: qx.core.Object,
>    members : {
>        htmlArea : null,
>
>    main : function() {
>        this.base(arguments);
>        var demoContent = '<h1>Test</h1>';
>
>        var htmlDecorator = new qx.ui.decoration.Single(1, "solid",
> "border-main");
>        htmlDecorator.setWidthTop(0);
>
>        this.htmlArea = new qx.ui.embed.HtmlArea(demoContent, null,
> "blank.html");
>        this.htmlArea.set( { width: 600, height: 400, decorator:
> htmlDecorator } );
>
>        var toolbar = this.__setupToolbar();
>
>        var vb = new qx.ui.layout.Grow();
>        var vbContainer = new qx.ui.container.Composite(vb);
>
>        vbContainer.add(toolbar);
>        vbContainer.add(this.htmlArea);
>        return  vbContainer;
>        },
>
>
> the return value is vbContainer
>
> and when i  take it in the above class
>
> this.widgets["memo"] = new gg.system.editor.Main();
> this.containerFormData[i].add(this.widgets["memo"]);
>
>
> i always see this error
> Fehler: child.getLayoutParent is not a function
>
>
> and the source is  this:
> /qooxdoo/framework/source/class/qx/ui/core/Widget.js
> Zeile: 1899
>
> What  is wrong?
> I hope you can help me to  solve this problem
>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>



-- 
"There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious
deficiencies."

                                               C.A.R Hoare
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to