>
> After searching in the demobrowser I found for example this code (table
> demo). The jscode starts with:
>
> qx.Class.define("demobrowser.demo.table.Table",{  extend :
> demobrowser.demo.table.TableDemo,  members :  {    getCaption : function()
> {
> return "Table";    },
> ....
>
> Häääh.... hmmh . No problem my thoughts. The same procedure. Copy and
> paste
> after my code snippet (creating a window) and changing the names
> (demobrowser.demo to qooximkerei.Application).

You're mixing Playground code and full class code. This is not good. You
can think of the Playground snippets as code that would go in an
Application.js class. So your copying it there is fine. But you cannot
embed a full class definition in another, so no
"qx.Class.define("something",...)" inside your
"qx.Class.define("qooximkerei.Application",...)".

If you want to utilize sample code from the Demobrowser, you can e.g. add
its "main" code to your own "main" method. You have to be more careful in
integrating the demo sample code in your own class code.

> qx.Class.define("qooximkerei.Application.table.Table",{  extend :
> qooximkerei.Application.table.TableDemo,  members :  {    getCaption :
> function() {      return "Table";    },
> ....

You cannot just copy arbitrary class structures. If you add new classes to
your application, they have to follow *your* applications name space
structure. E.g. you could add a class
"qx.Class.define("qooximkerei.MyTable",...)", and add the demo code there.

As the table.Table demo uses a helper class to derive from, you have to
mirror that in your own application too. Add e.g. a class
"qx.Class.define("qxooimkerei.MyTableDemo", ...)" and add the
table.TableDemo class code (you cannot do that through the Demobrowser
application; you have to find it in the qooxdoo SDK, under
application/demobrowser/source/class/demobrowser/demo/table/TableDemo.js).
You then can use it in your qooximkerei.MyTable class as "extend:
qooximkerei.MyTableDemo".

> Is there anywhere an example that shows the correct work with this
> framework.

Plenty. All the demo applications can serve this purpose. Take a look at
the Feedreader (application/feedreader/source/class). This shows nicely
how application classes can be layed out. The only thing I'd like to warn
you about is: The Feedreader uses part loading, which you don't want to
bother yourself with at the moment. If you come across a call to
qx.io.PartLoader.require in the Feedreader code, just look at it as if the
call wasn't there, but just the code in the call back function parameter.

> In my example there are to different syntaxes. The first one (window
> creation) in the playground browser and the second one (table defination)
> with literal notation in the demobrowser.

As explained above, the Playground provides the application class context
automatically.

> How can I create this table example in my environment? For example the
> table
> has to be inside the window.

See above. E.g. in your main code you can create the window and add an
instance of the MyTable class.

HTH,
T.


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to