Hi,

It's indeed a nifty snake you get when using chaining. However, if you 
are not returning value there is no easy way of checking if a given call 
was successful or not. Of course, you can work it out by building 
last-call-error-code variables. Even if at the moment QX chooses not to 
return anything, if it needs to later, the future releases could be 
incompatible with "chaining versions".

Looks like -1 from me ;-)

Best,
--Tomek


Fabian Jakobs wrote:
> Hi,
> 
>  
> 
> Since the property system is about to be rewritten in a future release I 
> would like to make a feature request for this.
> 
> Currently setters do return the new value of the property. I would like 
> to have setters return the current object. This way it is possible to 
> chain setters.
> 
>  
> 
> Right now we have to write code like this:
> 
>  
> 
>        var fs = new qx.ui.groupbox.GroupBox("My first Fieldset");
> 
>  
> 
>       with(fs)
> 
>       {
> 
>         setWidth("40%");
> 
>         setBottom(48);
> 
>         setTop(48);
> 
>         setLeft(20);
> 
>  
> 
>         setMaxWidth(350);
> 
>         setMinWidth(250);
> 
>       };
> 
>  
> 
>  
> 
> With the new approach this code could be written like this:
> 
>  
> 
>      fs.
> 
> setWidth("40%").
> 
> setBottom(48).
> 
>             setTop(48).
> 
>             setLeft(20).
> 
> setMaxWidth(350).
> 
> setMinWidth(250);
> 
>  
> 
>  
> 
> Or just like this:
> 
>  
> 
>      
> fs.setWidth("40%").setBottom(48).setTop(48).setLeft(20).setMaxWidth(350).setMinWidth(250);
> 
>  
> 
>  
> 
> I don’t know if this change would brake current code so I suggest it for 
> the upcoming 0.7 release.
> 
>  
> 
> Best Fabian
> 
>  
> 
>  
> 
> BTW congrats to the 0.6 release!!
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to