On 22 oct, 14:27, LittleWaver <[email protected]> wrote:
> Hi,
> I have a list box (in single selection mode) filled with some items.
> What I need to achieve is following thing:
> User selects item X and the change event is fired.
> User opens the list box again and he clicks the item X again.
> Now,  the change event is not fired ... this is ok, because nothing
> changed.
>
> BUT I don't know what event should I catch when I want react also to
> the case when user selects the same item from the list box again.
>
> Implementing onChange method from ChangeHandler isn't the right way.
>
> Implementing the onClick method from ClickHandler doesn't work for me
> either, because it is fired the moment I click the list box (the roll-
> out arrow), not the moment I perform the click selecting the already
> selected item.
>
> So, any ideas how to solve my problem?

Do not use a ListBox. What you want is kind of a "drop-down menu",
where you perform actions when a user "activates" some item. ListBox
addresses a different use case: selection a value within a list (and
firing an event so you can react as the value changes).

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
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