Adding a MouseOverHandler to CellList

788 views
Skip to first unread message

Sébastien Tromp

unread,
Aug 2, 2011, 5:47:08 PM8/2/11
to google-we...@googlegroups.com
Hello,

I am trying to adapt the example at http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellList to create a custom list based on the CellList.
One of my needs is to display a tooltip (with additional details) when the mouse is over each of the cells.

I tried overriding the onBrowserEvent2 method in the cellList, but the MouseOver is not an event caught by this method (the click is, though).
Registering MouseOverHandler to the list does not solve the issue either. 
I tried to handle things at the AbstractCell<T> level, but the only method I can use is onBrowserEvent, which leads to no result either.

Would anyone have an idea as to how to do this?
-- 
Sébastien Tromp

Sébastien Tromp

unread,
Aug 2, 2011, 6:27:52 PM8/2/11
to google-we...@googlegroups.com
More precisely, I need to add a tooltip to the Cell (not necessarily the MouseOverHandler).

2011/8/2 Sébastien Tromp <sebasti...@gmail.com>

Y2i

unread,
Aug 2, 2011, 6:46:47 PM8/2/11
to google-we...@googlegroups.com
AbstractCell<T>.onBrowserEvent() should be called if you call super("mouseover") in the constructor of an AbstractCell<T> subclass.

Sébastien Tromp

unread,
Aug 3, 2011, 3:15:30 AM8/3/11
to google-we...@googlegroups.com
Thanks, that's what I was looking for. Sorry to have overlooked that.
For information, I used this and the code snippet from there to build a custom popup, and hide it on "mouseout".
-- 
Sébastien Tromp

2011/8/3 Y2i <yur...@gmail.com>
AbstractCell<T>.onBrowserEvent() should be called if you call super("mouseover") in the constructor of an AbstractCell<T> subclass.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/mTt7bZn59SAJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Reply all
Reply to author
Forward
0 new messages