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® 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel