|How to highlight items with ListViewer when mouse moves? [message #503312]
||Fri, 11 December 2009 13:35
| Rick C.
Registered: July 2009
I have a ListViewer that has a List of items, I want to highlight any item when mouse moves over it:
final List list = listViewer.getList();
list.addMouseMoveListener( new MouseMoveListener()
public void mouseMove( MouseEvent e )
Point pt = new Point( e.x, e.y );
//how to get the item on which mouse just moved over?
The trouble is: either ListViewer or List has a getItem(Point p) implementation like Table.getItem(Point p). I am wondering if we have existing functionalities to achieve this?
Powered by FUDForum
. Page generated in 0.02666 seconds