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:

var container1 = 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

Reply via email to