Learning qooxdoo-1

Source: Internet
Author: User
Qooxdoo is a comprehensive and innovative Ajax application
Framework. Leveraging object-oriented JavaScript allows developers to build
Impressive cross-browser applications. No HTML, CSS nor Dom knowledge is
Needed.

I follow the "Hello World" tutorial and setup my
First qooxdoo application.

It's amazing that through a single Python command, we can generate four
Different type of solution for an application. They are "source version
Debug support, build version, API reference, unit testing ".

In qooxdoo, all things are exist inside JavaScript class. Developers do not
Even contact with HTML page. See the generated default
Class:

qx.Class.define("helloworld.Application", { extend: qx.application.Standalone, members: { 

 main: function() {

 this.base(arguments);

 if (qx.core.Variant.isSet("qx.debug", "on")) {

 qx.log.appender.Native;

 qx.log.appender.Console;

 }

 var button1 = new qx.ui.form.Button("My First Button", "helloworld/test.png");

 var doc = this.getRoot();

 doc.add(button1, {

 left: 200,

 top: 50

 });

 button1.addListener("execute",

 function(e) {

 alert("Hello World!");

 });

 }

 }

});

When I generated the release version, this code was compressed and merged
With the framework code into a single file:

 

(function() {

 var d = "helloworld.Application",

 c = "First Button",

 b = "helloworld/test.png",

 a = "execute";

 qx.Class.define(d, {

 extend: qx.application.Standalone,

 members: {

 main: function() {

 arguments.callee.base.call(this); {};

 var f = new qx.ui.form.Button(c, b);

 var e = this.getRoot();

 e.add(f, {

 left: 100,

 top: 50

 });

 f.addListener(a,

 function(e) {

 alert("Hello World!");

 });

 }

 }

 });

})();

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.