In each ListItem set the value using .setModel(Value):
http://demo.qooxdoo.org/devel/apiviewer/#qx.ui.form.ListItem~setModel
And use selectbox.getModelSelection() to get the array of selected values:
http://demo.qooxdoo.org/devel/apiviewer/#qx.ui.form.MModelSelection~getModelSelection
It returns an array of values just to be coherent with the selection API
used everywhere else in the framework.
On Wed, Oct 21, 2009 at 6:10 PM, JB <[email protected]> wrote:
> How the heck to the get the value of the selected item? That seems a
> little more complicated than it probably should be. I'm scouring the
> documentation and not coming up with anything. Where the heck is the
> selected value actually stored?
>
> Here is what I know already:
> SelectBox is derived from List and provides getSelection() which returns
> an array of type Widget.
>
> Here is what I do not quite understand:
> In the case of a SelectBox that would be what, an array with 1 element?
> Not sure why you would do that in the case of a derived SelectBox which
> can only ever have a single selection anyway but OK, so now you have a
> one element array containing a Widget object which again as far as I can
> tell from the documentation has no property or function with which to
> retrieve the actual value??
>
> Jared
>
>
>
> ------------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------------
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