Hi,
you should have a look at:
http://demo.qooxdoo.org/current/apiviewer/#qx.core.Object
This class is the "mother" of all Qooxdoo classes and defines the
methods "get" and "set".
This methods are used to set properties (of a "Qooxdoo object") by a
plain javascript map.
If you do not know about properties or OO aspects you should have a
look at:
http://qooxdoo.org/documentation/1.1/oo_feature_summary#properties
Regards,
Rob
>>> "Cui,Daojun" <[email protected]> 6/25/2010 10:43 >>>
Hi,
I try to answer the question myself.
The Class Composite inherited the properties width, height etc etc from
super class qx.ui.core.LayoutItem.
So it can use the set-method to initialize its height and width,
Am I correct?
Regards,Daojun
Von:Cui,Daojun [mailto:[email protected]]
Gesendet: Freitag, 25. Juni 2010 10:36
An: qooxdoo Development
Betreff: [qooxdoo-devel] Setting the Container/Widgets
Hello devs,
I am playing around with the qooxdoo widgets.
I find that the way how the properties or attributes of a qooxdoo
widget are set is similar to the java swing, isn*t it?
And I got a question in the snippet:
// Create container with fixed dimensions for the left:
varcontainer1 = new qx.ui.container.Composite(new
qx.ui.layout.Grow).set({
width: 200,
height: 100,
decorator : "main"
});
I noticed that all the examples in the qooxdoo demo use the method
.set() to initialize the widget.
The width, height etc. can be set in the same line where the widget is
declared.
It is quite comfortable,
but I can not find the explanation for this *set-method* in API
document for *qx.ui.container.Composite*.
Am I missing some background knowledge here or I looked into the wrong
documentation?
Any hint will be appreciate.
Best Regards,
Daojun
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel