Kevin,

What happens when you select "apple" or "banana" is that an event is
fired. You can add an event handler to the list box to process that
event and react in any way you wish, such as by updating the displayed
text. As I recall you were looking for a way to display images in a
list box. In your case, I imagine you would want to replace the word
"box" with an image of the selected fruit.

- Isaac

On Fri, Oct 10, 2008 at 4:47 PM, Kevin <[EMAIL PROTECTED]> wrote:
>
> Hey,
>
> Please let me know if a DropDownListBox widget exists.
>
> I've looked and searched but found nothing.
>
> If you can't provide me with one, please tell me how this widget
> works.
>
> DropDownListBox<String> listBox = new DropDownListBox<String>("BOX");
> // Add an item
> listBox.addItem("<i>Apple</i>", "apple");
> // Add an item with a tooltip
> listBox.addItem("<b>Banana</b>", "banana", "A yellow fruit");
>
> I got this example from Isaac, a GWT Forum contributor. When I tested
> it, it's a ListBox with "BOX" written in the ListBox, then two
> dropdown options: apple and banana. But when you select apple or
> banana, nothing happens other than the options go away, but "BOX"
> appears still.
>
> Thanks,
> Kevin
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to