Loïc Bresson -- Novlog wrote:
> Hi Jared.
>
>   
>> Since the SelectBox widget can only ever have a single value selected, 
>> shouldn't the SelectBox object override getSelection() such that it 
>> returns a single value only and not always a one element array?
>>     
> The current getSelection() is coherent with the rest of the selection API, 
> and 
> IMHO it is fine. This way when you want the selection of a widget, you don't 
> have to ask yourself "Do I get an array or do I get one widget ? Let's go 
> check 
> the doc". Furthermore, you can implement generic algorithms which retrieve 
> the 
> selected elements of several different widgets. Having a different return 
> type 
> would make it necessary to check the classname of the widget.
>
>   
I see your point.  That makes sense.



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to