Mouse Hover on a GWT ListBox

443 views
Skip to first unread message

birwin

unread,
May 30, 2008, 12:41:30 PM5/30/08
to Google Web Toolkit
Hi,

I have a ListBox that displays data. I am displaying a name and in
some cases, there are multiple names in the ListBox that are
identical. My users are confused. They see two John Doe names and they
do not know which one to choose.

I want to provide more information to the user by using the mouse
hover event. Possibly display age, address, etc... of the ListBox item
being hovered over.

I have no idea how to do this. Any input? I know that I can display
this data on an onChange Event, but I don't want to make the user
select items just to see the data.

walden

unread,
May 30, 2008, 2:33:51 PM5/30/08
to Google Web Toolkit
Amazingly, the <option> element accepts a title attribute! You would
probably need to extend ListBox and overload the add and insert
methods to include an argument which would be used by set the title.

I would say though, on a stylistic note, that this is taking the
ListBox a bit far, and you might be better working with a table of
some sort.

Walden
Reply all
Reply to author
Forward
0 new messages