Hello people :)

this will be my first mail to the qooxdoo ML and before I start to
questioning you, I want to say "Thank You" to you developers of Qooxdoo
(when you are working for 1&1 and you are living in Karlsruhe or
somewhere near, please get in touch with me to buy you a beer ;))

Now for the question:

Is it possible to switch widgets during runtime inside a layout item?

Let's assume this:

var container=new qx.ui.container.Composite(new qx.ui.layout.VBox(5));
var widget1=new qx.ui.form.SelectBox()
var widget2=new qx.ui.form.SelectBox()
var button1=new qx.ui.form.Button("Switch");
container.add(widget1);
container.add(widget2);
container.add(button1);
widget1.show();
widget2.hide();

button1.addListener("execute",function(e) {
                widget1.hide();
                widget2.show();
},this);


now, when you image the layout, it should look like this:

+------------------+
| widget1 (shown)  |
| widget2 (hiding) |
| button1 (shown)  |
+------------------+

The space widget2 occopies is lost space. What I want to do is to
"replace widget2 with widget1" so that only one item is shown during
runtime, at the same place as widget1.

Sadly (could be that I'm too "stupid" to RTFM correctly), I didn't
found any hints on achieving this goal.

So if this is not possible, ok, but if it is possible, can someone
point me to a document describing that.

Anyways, after evaluating several Javascript "frameworks" I found
qooxdoo as the only one which makes RIA application really easy.

Sproutcore looks promising, but it's far away from the potential of
Qooxdoo.

When you want to know on what I'm working, you can find a video on
http://archive.ubuntu-server.eu/faimanager-faiconfig-defaultclasses-3.ogv

(hint: I'm an ubuntu developer + sysadmin, but I'm not connected to
the commercial sponsor of Ubuntu named Canonical). 

This application is meant to be a frontend to FAI and Puppet and it
it's going to be opensource.

Kind regards,

\sh

PS: You can find me normally on Freenode IRC, sadly in
#qoox...@freenode there is not much action ;)

--

| Stephan '\sh' Hermann    | OSS Dev / SysAdmin         |
| JID: [email protected] | http://www.sourcecode.de/  | 
| GPG ID: 0xC098EFA8       | http://leonov.tv/          |
| FP: 3D8B 5138 0852 DA7A B83F DCCB C189 E733 C098 EFA8 |

------------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to