Hi.
> Here's a little code to make you an idea about using qx.Class.getByName.
>
> qx.Class.define("Bacon", {
> extend: qx.core.Object,
> construct: function(foo, bar) {
> this.foo = foo;
> this.bar = bar;
> }
> });
>
> var klass = qx.Class.getByName("Bacon");
> var obj = new klass("foo", "bar");
> this.debug(obj.foo);
IIRC, you also have to have something like #require("Bacon") or such in the
file where you want to instantiate Bacon objects, if you only instantiate Bacon
objects by name. Otherwise the build process won't know to include the Bacon
class in the generated script.
I don't have code at hand to look it up, but we used such stuff in our code, so
that's how I know it. The #require directive is described in the documentation,
so you can look it up.
br,
flj
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel